Newer
Older
dmpopidor / app / views / guidances / admin_new.html.erb
@briley briley on 13 Dec 2017 550 bytes added view all guidance buttons
<div class="row">
  <div class="col-md-12">
    <h1><%= _('New guidance') %></h1>
    <%= link_to _('View all guidance'), admin_index_guidance_path(current_user.org_id), class: 'btn btn-default pull-right' %>
  </div>
</div>

<div class="row">
  <div class="col-md-8">
    <%= form_for :guidance, url: {action: 'admin_create'}, html: {id: 'new_guidance_form'} do |f| %>
      <%= render partial: 'guidance_form', locals: { f: f, themes: @themes, guidance_groups: @guidance_groups, guidance: @guidance } %>
    <% end %>
  </div>
</div>