Sha256: 731ed8601ab4fa04d88eddd61f058f210fe6311057a900ee9689aff0d5435abd
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
<% content_for :title do %> <%= "#{ t :edit }".capitalize %> <%= @structure.name.humanize.split.map(&:capitalize).join(' ') %> <% end %> <% content_for :header do %> <div class="main-header--buttons"> <% if @structure.has_preview %> <a href="<%= "#{binda.root_path}#{@structure.slug}/#{@instance.slug}" %>" class="main-header--link b-btn b-btn-primary"> <i class="fas fa-link"></i> <%= t 'binda.preview' %> <%= @structure.name.humanize.split.map(&:capitalize).join(' ') %> </a> <% end %> <a href="<%= new_structure_component_path %>" class="main-header--link b-btn b-btn-primary"> <i class="fa fa-plus" aria-hidden="true"></i> <%= t 'binda.new' %> <%= @structure.name.humanize.split.map(&:capitalize).join(' ') %> </a> </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"> <i class="fas fa-list-ul"></i> <%= "#{ t :back_to_index }".capitalize %> </a> <% end %> <% content_for :content do %> <%= render 'binda/fieldable/form_body' %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
binda-0.1.5 | app/views/binda/components/edit.html.erb |
binda-0.1.4 | app/views/binda/components/edit.html.erb |