Sha256: a391599ac7126866c0b6a924f34a2ae9d4a03c5ceecd18a7dfc7b3b5ff504da0

Contents?: true

Size: 1013 Bytes

Versions: 4

Compression:

Stored size: 1013 Bytes

Contents

<% content_for :header do %>
  <div class="main-header--buttons">
  	<% if @structure.has_preview %>
	    <%= link_to "<i class=\"fas fa-link\"></i>#{ t 'binda.preview' } #{ @structure.name.humanize.split.map(&:capitalize).join(' ') }".html_safe, "#{binda.root_path}#{@structure.slug}/#{@instance.slug}", class: 'main-header--link b-btn b-btn-primary' %>
    <% end %>
    <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i>#{ t 'binda.new' } #{ @structure.name.humanize.split.map(&:capitalize).join(' ') }".html_safe, new_structure_component_path , class: 'main-header--link b-btn b-btn-primary' %>
  </div>
  <p class="main-header--title"><%= "#{ t :edit }".capitalize %> <%= @structure.name.humanize.split.map(&:capitalize).join(' ') %></p>
  <a href="<%= structure_components_path %>" class="main-header--back"><span class="glyphicon glyphicon-list"></span> <%= "#{ t :back_to_index }".capitalize %></a>
<% end %>

<% content_for :content do %>
	<%= render 'binda/fieldable/form_body' %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
binda-0.1.3 app/views/binda/components/edit.html.erb
binda-0.1.2 app/views/binda/components/edit.html.erb
binda-0.1.1 app/views/binda/components/edit.html.erb
binda-0.1.0 app/views/binda/components/edit.html.erb