app/views/binda/categories/new.html.erb in binda-0.1.3 vs app/views/binda/categories/new.html.erb in binda-0.1.4

- old
+ new

@@ -1,7 +1,26 @@ +<% content_for :title do %> + <%= "#{ t(:new).capitalize } #{ @structure.name.humanize } #{ t(:category).capitalize }" %> +<% end %> + + <% content_for :header do %> - <h3><%= "#{ t(:new).capitalize } #{ @structure.name.humanize } #{ t(:category).capitalize }" %></h3> - <a href="<%= structure_categories_path %>" class="main-header--back"><span class="glyphicon glyphicon-list"></span> <%= t(:back_to_index).capitalize %></a> + <div class="main-header--buttons"> + <a href="<%= new_structure_category_path %>" + class="main-header--link b-btn b-btn-primary"> + <i class="fa fa-plus" aria-hidden="true"></i> + <%= t(:new).capitalize %> + <%= t(:category).capitalize %> + </a> + </div> + <h3> + <%= "#{ t(:new).capitalize } #{ @structure.name.humanize } #{ t(:category).capitalize }" %> + </h3> + <a href="<%= structure_categories_path %>" + class="main-header--back"> + <i class="fas fa-list-ul"></i> + <%= t(:back_to_index).capitalize %> + </a> <% end %> <% content_for :content do %> <%= render 'form', category: @category, structure: @structure %> <% end %> \ No newline at end of file