mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Allow strings of modal to be replaced
This commit is contained in:
parent
6fe0d6b3df
commit
a188984ede
1 changed files with 20 additions and 6 deletions
|
@ -16,6 +16,12 @@
|
|||
# * 'invite_with_org_selector_and_role' => params: role
|
||||
# * organization: invite users to the specified organization
|
||||
# * role: all users are invited as the specified role
|
||||
# * (optional) text_title: custom title text for modal
|
||||
# * (optional) text_invite_heading: custom invite heading text for modal
|
||||
%>
|
||||
<%
|
||||
text_title ||= nil
|
||||
text_invite_heading ||= nil
|
||||
%>
|
||||
<div
|
||||
class="modal modal-invite-users"
|
||||
|
@ -37,10 +43,14 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">
|
||||
<% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %>
|
||||
<%= t('invite_users.to_org.title', organization: organization.name) %>
|
||||
<% if text_title %>
|
||||
<%= text_title %>
|
||||
<% else %>
|
||||
<%= t('invite_users.no_org.title') %>
|
||||
<% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %>
|
||||
<%= t('invite_users.to_org.title', organization: organization.name) %>
|
||||
<% else %>
|
||||
<%= t('invite_users.no_org.title') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</h4>
|
||||
</div>
|
||||
|
@ -48,10 +58,14 @@
|
|||
<div class="modal-body">
|
||||
<div data-role="step-form">
|
||||
<p>
|
||||
<% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %>
|
||||
<%= t('invite_users.to_org.heading', organization: organization.name) %>
|
||||
<% if text_invite_heading %>
|
||||
<%= text_invite_heading %>
|
||||
<% else %>
|
||||
<%= t('invite_users.no_org.heading') %>
|
||||
<% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %>
|
||||
<%= t('invite_users.to_org.heading', organization: organization.name) %>
|
||||
<% else %>
|
||||
<%= t('invite_users.no_org.heading') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue