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.2.6 app/views/virgo/admin/categories/_form.haml
virgo-0.2.5 app/views/virgo/admin/categories/_form.haml
virgo-0.2.4 app/views/virgo/admin/categories/_form.haml
virgo-0.2.2 app/views/virgo/admin/categories/_form.haml
virgo-0.2.1 app/views/virgo/admin/categories/_form.haml
virgo-0.2 app/views/virgo/admin/categories/_form.haml
virgo-0.1.16 app/views/virgo/admin/categories/_form.haml
virgo-0.1.15 app/views/virgo/admin/categories/_form.haml
virgo-0.1.14 app/views/virgo/admin/categories/_form.haml
virgo-0.1.13 app/views/virgo/admin/categories/_form.haml
virgo-0.1.12 app/views/virgo/admin/categories/_form.haml
virgo-0.1.11 app/views/virgo/admin/categories/_form.haml
virgo-0.1.10 app/views/virgo/admin/categories/_form.haml
virgo-0.1.8 app/views/virgo/admin/categories/_form.haml
virgo-0.1.7 app/views/virgo/admin/categories/_form.haml
virgo-0.1.6 app/views/virgo/admin/categories/_form.haml
virgo-0.1.5 app/views/virgo/admin/categories/_form.haml
virgo-0.1.4 app/views/virgo/admin/categories/_form.haml
virgo-0.1.3 app/views/virgo/admin/categories/_form.haml
virgo-0.1.2 app/views/virgo/admin/categories/_form.haml