Sha256: da798aada46c96d4711b7d64f2516eeed75f313a39d706990624fd78f7441b23

Contents?: true

Size: 900 Bytes

Versions: 40

Compression:

Stored size: 900 Bytes

Contents

- url = @category.new_record? ? admin_categories_path : admin_category_path(@category)

= simple_form_for @category, url: url, html: {id: 'category-form'} do |f|
  = hidden_field_tag 'post_id', params[:post_id]
  = f.input :name
  = f.input :slug, label: "Permalink"
  = f.input :parent_id, label: 'Parent', as: :select, collection: Virgo::Category.where.not(id: @category.id)
  = f.input :display_in_navbar, label: "Display in navbar?"
  .row
    .col-md-3
      = f.input :navbar_weight, as: :select, collection: (-10..10).to_a, include_blank: false


  - if @category.persisted?
    = link_to admin_category_path(@category), class: 'delete-link pull-left', data: {method: :delete, confirm: "Are you sure you want to delete this category?"} do
      %i.fa.fa-trash-o
      Delete Category
  = f.button :submit, class: 'btn btn-primary pull-right js-submit-category', id: "category-submit"
  .clear

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
virgo-0.3.17 app/views/virgo/admin/categories/_form.haml
virgo-0.3.16 app/views/virgo/admin/categories/_form.haml
virgo-0.3.15 app/views/virgo/admin/categories/_form.haml
virgo-0.3.14 app/views/virgo/admin/categories/_form.haml
virgo-0.3.13 app/views/virgo/admin/categories/_form.haml
virgo-0.3.12 app/views/virgo/admin/categories/_form.haml
virgo-0.3.11 app/views/virgo/admin/categories/_form.haml
virgo-0.3.10 app/views/virgo/admin/categories/_form.haml
virgo-0.3.9 app/views/virgo/admin/categories/_form.haml
virgo-0.3.8 app/views/virgo/admin/categories/_form.haml
virgo-0.3.7 app/views/virgo/admin/categories/_form.haml
virgo-0.3.6 app/views/virgo/admin/categories/_form.haml
virgo-0.3.4 app/views/virgo/admin/categories/_form.haml
virgo-0.3.3 app/views/virgo/admin/categories/_form.haml
virgo-0.3.2 app/views/virgo/admin/categories/_form.haml
virgo-0.3.1 app/views/virgo/admin/categories/_form.haml
virgo-0.3 app/views/virgo/admin/categories/_form.haml
virgo-0.2.9 app/views/virgo/admin/categories/_form.haml
virgo-0.2.8 app/views/virgo/admin/categories/_form.haml
virgo-0.2.7 app/views/virgo/admin/categories/_form.haml