Skip to content

Instantly share code, notes, and snippets.

@danhorst
Created April 8, 2014 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danhorst/10123928 to your computer and use it in GitHub Desktop.
Save danhorst/10123928 to your computer and use it in GitHub Desktop.
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
Copy link
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