Sha256: 298088f67eddb5a784773c51693ca7944b3d315010b0892cb76e419b195e338c
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 KB
Contents
<h4><%= "#{ t :setting }".pluralize.capitalize %></h4> <% if @structure.has_categories %> <% if @structure.categories.any? %> <h5><%= t(:category).capitalize %></h5> <%= f.association :categories, as: :radio_buttons, collection: @structure.categories ,checked: @component.category_ids, include_blank: false %> <% end %> <% if @component.slug.nil? %> <h5> <%= t( :hint_create_parent_before_child, arg1: "#{ t :category }", arg2: "#{ t :component }" ).capitalize %> </h5> <% else %> <a class="main-header--link btn btn-default" href="<%= new_structure_category_path %>"> <%= "#{ t :new }".capitalize %> <%= t :category %> </a> <% end %> <% end %> <hr> <h5><%= t(:publish_settings).capitalize %></h5> <%= f.input :publish_state, as: :radio_buttons, collection: [ 'draft', 'published' ], checked: f.object.publish_state %> <hr> <%= f.button :submit, 'Save changes', class: 'btn btn-primary' %> <% unless @component.new_record? %> <a class="form-body--delete btn btn-default" href="<%= structure_component_path( structure_id: @structure.id, id: @component.id ) %>" data-method="delete" data-confirm="This operation will delete this <%= @structure.name %> and there is no coming back. Are you ok with that?">Delete <%= @structure.name.capitalize %> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems