Skip to content

Commit 70ecdf1

Browse files
Merge pull request #3241 from DMPRoadmap/org_type_tip
add popover for org_profile page and add explanation for public plan
2 parents 0fc240e + 6bb36e8 commit 70ecdf1

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

app/views/orgs/_profile_form.html.erb

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<%
44
shared_links_tooltip = _('Links will be displayed next to your organisation\'s logo')
55
org_config_info_tooltip = _('This information can only be changed by a system administrator. Contact the Help Desk if you have questions or to request changes.')
6+
org_types_tooltip = _(
7+
'This information can only be changed by a system administrator. Contact %{support_email} if you have questions or to request changes.' % { support_email: Rails.configuration.x.organisation.email}
8+
)
69
%>
710

811
<%= form_for(org, url: url, html: { multipart: true, method: method,
@@ -136,7 +139,13 @@
136139
<div class="row">
137140
<% if current_user.can_super_admin? %>
138141
<fieldset class="col-xs-8">
139-
<legend><%= _('Organisation Types') %></legend>
142+
<legend>
143+
<%= _('Organisation Types') %>
144+
&nbsp; <a href="#" aria-label="<%= _('Text') %>" data-toggle="tooltip" data-placement="right" title="<%= org_types_tooltip %>">
145+
<i class="fas fa-question-circle fa-reverse" ></i>
146+
<em class="sr-only"></em>
147+
</a>
148+
</legend>
140149
<div class="checkbox">
141150
<%= f.label :funder do %>
142151
<%= f.check_box :funder, { class: 'org_types', value: org.funder? }, "true", "false" %>
@@ -159,7 +168,13 @@
159168
<% else %>
160169
<div class="col-xs-8">
161170
<dl>
162-
<dt><%= _('Organisation type(s)') %></dt>
171+
<dt>
172+
<%= _('Organisation type(s)') %>
173+
&nbsp; <a href="#" aria-label="<%= _('Text') %>" data-toggle="tooltip" data-placement="right" title="<%= org_types_tooltip %>">
174+
<i class="fas fa-question-circle fa-reverse" ></i>
175+
<em class="sr-only"></em>
176+
</a>
177+
</dt>
163178
<dd><%= org.org_type_to_s %></dd>
164179
</dl>
165180
</div>

app/views/plans/_share_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<%= f.radio_button :visibility, :publicly_visible,
3535
data: { url: visibility_plan_path(@plan),
3636
remote: true, method: :post } %>
37-
<%= _('Public: anyone can view') %>
37+
<%= _('Public: anyone can view or download from the Public DMPs page') %>
3838
<% end %>
3939
</div>
4040
</div>

0 commit comments

Comments
 (0)