Newer
Older
dmpopidor / app / views / guidance_groups / admin_new.html.erb
@xsrust xsrust on 11 Jul 2017 1 KB fixes formatting errors
<% javascript 'admin.js' %>

<h1>
  <%= _('Guidance group') %>
</h1>

<div class="content">
  <%= form_for :guidance_group, url: {action: "admin_create"}, html: {class: 'roadmap-form bordered'} do |f| %>
    <fieldset class="side-by-side">
      <div class="form-input">
        <%= f.label :name %>
        <%= f.text_field :name, as: :string, class: "input-medium required" %>
        <div class="inline">
          <a href="#" data-toggle="popover" rel: "popover" data-html: "true"
             data-content="<%= _('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 institution or department name.') %>">
          <span class="fa fa-question-circle"></span></a>
        </div>
      </div>
      <div class="form-input">
        <%= f.label :optional_subset %>
        <%= f.check_box :optional_subset %> <%= _('e.g. School/ Department') %>
        <div class="inline">
          <a href="#" data-toggle="popover" rel: "popover" data-html: "true"
             data-content="<%= _("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.") %>">
            <span class="fa fa-question-circle"></span></a>
        </div>
      </div>
      
      <!-- submit buttons -->
      <br />
      <div class="form-input">
        <div class="button-spacer">&nbsp;</div>
        <%= f.submit _('Save'), name: "draft", class: "btn btn-primary", role:"button"%>
      </div>
    </fieldset>
  <% end %>
</div>