Newer
Older
dmpopidor / app / views / guidance_groups / admin_edit.html.erb
@briley briley on 22 Jun 2017 2 KB css tweaks to guidance pages
<% javascript 'admin.js' %>

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

<div>
  <a href="<%= admin_index_guidance_path %>" class="link-as-button"><%= _('View all guidance') %></a>
</div>

<div class="content">
  <%= form_for(@guidance_group, url: admin_update_guidance_group_path(@guidance_group), html: {method: :put, class: 'roadmap-form'}) do |f| %>
		<div class="form-input">
      <%= f.label :name %>
      <%= f.text_field :name, as: :string, class: 'text_field' %>
			<div class="inline">
				<%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_title_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.')) %>
			</div>
		</div>
		
    <!-- if guidance group published then display check_box -->
    <% if @guidance_group.published == true then %>
      <div class="form-input">
        <%= f.label :published %>
        <%= f.check_box :published %>
        <div class="inline">
					<!--%= link_to( image_tag('help_button.png'), '#', :class => 'guidance_group_subset_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.'))%-->
        </div>
			</div>
    <% end %>

    <div class="form-input">
      <%= f.label :optional_subset %>
      <%= f.check_box :optional_subset %> <%= _('e.g. School/ Department') %>
      <div class="inline">
        <%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_subset_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.")) %>
      </div>
		</div>
       
    <!-- submit buttons -->
		<div class="form-input">
      <%= f.submit _('Save'), class: 'btn btn-primary' %>
      <% if @guidance_group.published == false then %>
        <%= f.submit _('Publish'), name: "save_publish", class: "btn btn-primary" %>
      <% end %>
    </div>
	<% end %>
</div>