Set title/h1 to something sensible when granting/revoking roles
This commit is contained in:
parent
1d59359202
commit
8a7040e155
3 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
<% form_tag request.request_uri do %>
|
||||
<%= hidden_field_tag 'nonce', @nonce %>
|
||||
<% @title = t('user_role.grant.heading') %>
|
||||
<h1><%= t('user_role.grant.heading') %></h1>
|
||||
<p><%= t('user_role.grant.are_you_sure', :name => params[:display_name], :role => params[:role]) %></p>
|
||||
<p><%= submit_tag t'user_role.grant.confirm' %></p>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<% form_tag request.request_uri do %>
|
||||
<%= hidden_field_tag 'nonce', @nonce %>
|
||||
<% @title = t('user_role.revoke.heading') %>
|
||||
<h1><%= t('user_role.revoke.heading') %></h1>
|
||||
<p><%= t('user_role.revoke.are_you_sure', :name => params[:display_name], :role => params[:role]) %></p>
|
||||
<p><%= submit_tag t'user_role.revoke.confirm' %></p>
|
||||
<% end %>
|
||||
|
|
|
@ -1013,10 +1013,14 @@ en:
|
|||
already_has_role: "The user already has role {{role}}."
|
||||
doesnt_have_role: "The user does not have role {{role}}."
|
||||
grant:
|
||||
title: Confirm role granting
|
||||
heading: Confirm role granting
|
||||
are_you_sure: "Are you sure you want to grant the role `{{role}}' to the user `{{name}}'?"
|
||||
confirm: "Confirm"
|
||||
fail: "Couldn't grant role `{{role}}' to user `{{name}}'. Please check that the user and role are both valid."
|
||||
revoke:
|
||||
title: Confirm role revoking
|
||||
heading: Confirm role revoking
|
||||
are_you_sure: "Are you sure you want to revoke the role `{{role}}' from the user `{{name}}'?"
|
||||
confirm: "Confirm"
|
||||
fail: "Couldn't revoke role `{{role}}' from user `{{name}}'. Please check that the user and role are both valid."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue