Skip to content

Commit

Permalink
Fix ap view files wrong titles
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Dec 14, 2018
1 parent 4036acb commit 85eadfe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions templates/app_files/app/views/hq/admins/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%i.fas.fa-edit
= yield :form_title
.card-body
= simple_form_for([:hq, admin], validate: true) do |f|
= simple_form_for([:hq, admin]) do |f|
= f.error_notification

.form-inputs
Expand All @@ -12,6 +12,6 @@
= f.input :email

.form-actions
- text = admin.id.present? ? t('view.btn.update') : t('view.btn.add')
- text = admin.persisted? ? t('view.btn.update') : t('view.btn.add')
= f.button :submit, text, class: 'btn btn-primary'
= link_to t('view.cancel'), hq_admins_path, class: 'btn'
2 changes: 1 addition & 1 deletion templates/app_files/app/views/hq/admins/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- content_for :form_title do
= t('view.tooltips.edit', resource_name: t('view.admin_info'))
= t('view.title.edit', resource_name: Admin.model_name.human)
= render 'form', admin: @admin
4 changes: 2 additions & 2 deletions templates/app_files/app/views/hq/users/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%i.fas.fa-edit
= yield :form_title
.card-body
= simple_form_for([:hq, user], validate: true) do |f|
= simple_form_for([:hq, user]) do |f|
= f.error_notification

.form-inputs
Expand All @@ -12,6 +12,6 @@
= f.input :email

.form-actions
- text = user.id.present? ? t('view.btn.update') : t('view.btn.add')
- text = user.persisted? ? t('view.btn.update') : t('view.btn.add')
= f.button :submit, text, class: 'btn btn-primary'
= link_to t('view.cancel'), hq_users_path, class: 'btn'
2 changes: 1 addition & 1 deletion templates/app_files/app/views/hq/users/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- content_for :form_title do
= t('view.tooltips.edit', resource_name: t('view.admin_info'))
= t('view.title.edit', resource_name: User.model_name.human)
= render 'form', user: @user
2 changes: 1 addition & 1 deletion templates/app_files/app/views/user/profile/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%i.icon-edit.icon-large
= yield :form_title
.card-body
= simple_form_for([:user, profile], url: user_profile_path, validate: true) do |f|
= simple_form_for([:user, profile], url: user_profile_path) do |f|
= f.error_notification

.form-inputs
Expand Down

0 comments on commit 85eadfe

Please sign in to comment.