Newer
Older
dmpopidor / app / views / guidance_groups / _guidance_group_form.html.erb
@John Pinto John Pinto on 6 Aug 2019 1 KB Enable spellcheck for text fields:
<div class="form-group">
  <%= f.label _('Name'), for: :name, class: "control-label" %>
  <%= f.text_field :name, as: :string, class: "form-control", 'data-toggle': 'tooltip',
      title: _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the organisation or department name.'),
      spellcheck: true, 'aria-required': true %>
</div>
<fieldset>
	<div class="checkbox">
	  <%= f.label :published do %>
      <%= f.check_box :published,
                      data: { toggle: 'tooltip' },
                      title: _('Check this box when you are ready for guidance associated with this group to appear on user\'s plans.')
      %>
      <%= _('Published') %>
    <% end %>
	</div>

	<div class="checkbox">
	  <%= f.label :optional_subset do %>
      <%= f.check_box :optional_subset,
                      data: { toggle: 'tooltip' },
                      title: _('If the guidance is only meant for a subset of users e.g. those in a specific college or institute, check this box.  Users will be able to select to display this subset guidance when answering questions in the \'create plan\' wizard.')
      %>
      <%= _('Optional Subset (e.g. School/Department)') %>
    <% end %>
	</div>
</fieldset>
<%= f.submit _('Save'), class: 'btn btn-primary' %>