Sha256: ea29b3e82b957ce68f4562204f5c4e0bec935d12fb6f456c05417284a7605606

Contents?: true

Size: 1.73 KB

Versions: 3

Compression:

Stored size: 1.73 KB

Contents

<div class="standard-form--header">
  <small><%= "#{ t :publish }".capitalize %></small>
</div>

<div class="standard-form--radio">
  <%= f.input :instance_type,
            as: :radio_buttons,
            collection: ['component','board'],
            include_blank: false,
            label_method: -> (x){ "<span class=\"standard-form--input-box\"></span>#{x}".html_safe }%>

</div>
<% if !@structure.new_record? && @structure.instance_type == 'component' %>
  <div class="standard-form--radio">
    <%= f.input :has_categories,
                label: "<span class=\"standard-form--input-box\"></span>#{ t('binda.has_categories')}".html_safe,
                as: :boolean,
                include_blank: false,
                hint: t('binda.has_categories_hint') %>
  </div>
  <div class="standard-form--radio">
    <%= f.input :has_preview,
                label: "<span class=\"standard-form--input-box\"></span>#{ t('binda.has_preview')}".html_safe,
                as: :boolean,
                include_blank: false,
                hint: "#{t('binda.preview_path_warning')}:<br /> #{binda.root_path}#{@structure.slug}/:slug".html_safe %>
  </div>
<% end %>
<div class="standard-form--main-actions">
  <%= button_tag '<i class="fas fa-check"></i>Save changes'.html_safe, { class: 'b-btn-block b-btn b-btn-primary b-btn-settings', id: 'save' } %>

  <% unless @structure.new_record? %>
    <a class="form-body--delete b-btn-block b-btn b-btn-outline-danger b-btn-settings" href="<%= url_for([@structure]) %>" data-method="delete" data-confirm="This operation will delete this structure and there is no coming back. Are you ok with that?"><i class="far fa-trash-alt"></i> <%= t('binda.delete').capitalize %> <%= @structure.name.capitalize %></a>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
binda-0.1.3 app/views/binda/structures/_form_sidebar.html.erb
binda-0.1.2 app/views/binda/structures/_form_sidebar.html.erb
binda-0.1.1 app/views/binda/structures/_form_sidebar.html.erb