Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HYDRASIR-383
<div class="control-group required link-users" id="editors">
<span class="control-label">
<label class="required" for="<%=f.object.class.to_s.downcase%>_editors_attributes_0_name">
<%# NOTE: Whenever you just copy the HTML generated by Simple Form it breaks internationalization %>
<%= I18n.t('simple_form.required.html', default: '<abbr title="" data-original-title="required">*</abbr>').html_safe %>
<%= I18n.t('sufia.work.editor.individual.name' %>
<span class="help-inline"><%= I18n.t('sufia.work.editor.individual.help' %></span>
</label>
</span>
<%# Rest of the file ... %>
<div class="control-group required link-groups" id="groups">
<span class="control-label">
<label for="<%=f.object.class.to_s.downcase%>_editor_groups_attributes_0_title">
<%# NOTE: Whenever you just copy the HTML generated by Simple Form it breaks internationalization %>
<%= I18n.t('sufia.work.editor.group.name' %>
<span class="help-inline"><%= I18n.t('sufia.work.editor.group.help' %></span>
</label>
</span>
<%# Rest of the file ... %>
en:
sufia:
# Existing content goes here
work:
editor:
legend: "Content Editors"
caption: "Who should be able to make changes to this work?"
individual:
name: "Individual"
help: "At least one person should be able to edit this work"
group:
name: "Group"
help: "Add groups to allow others to collaboratively edit this work."
<fieldset>
<legend>
<%=t('sufia.work.editor.legend') %>
<small><%=t('sufia.work.editor.caption') %></small>
</legend>
<%# Content goes here ... %>
</fieldset>
@danhorst

This comment has been minimized.

Copy link
Owner Author

danhorst commented Apr 8, 2014

Full paths (other than the new view partial):

app/views/curation_concern/base/_linked_editors.html.erb
app/views/curation_concern/base/_linked_groups.html.erb
config/locales/sufia.en.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.