Sha256: 6b8bbf66511121a5eeaf62402ee843aa30b9455bf528bfdf57741ac90dbb2d44

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

<section>
    <header>
        <h1>#{get_breadcrumbs}</h1>
    </header>

    #{form_for(
      @category,
      :method => :post,
      :action => Categories::Controller::Categories.r(:save),
      :id     => :category_form
    ) do |f|
      f.input_hidden(:category_group_id, @category_group_id)
      f.input_hidden(:id               , @category.id)
      f.input_hidden(:csrf_token       , get_csrf_token)

      f.g.div(:id => 'general') do
        f.input_text(
          lang('categories.labels.name'),
          :name,
          :title => lang('categories.descriptions.name'),
          :required    => :required,
          :maxlength   => 255
        )

        f.input_text(
          lang('categories.labels.slug'),
          :slug,
          :title => lang('categories.descriptions.slug'),
          :maxlength   => 255
        )

        f.select(
          lang('categories.labels.parent'),
          :parent_id,
          :values   => parent_categories(@category.id, @category_group_id),
          :size     => 1,
          :selected => @category.parent_id
        )

        f.textarea(
          lang('categories.labels.description'),
          :description,
          :rows => 8
        )
      end

      f.g.div(:class => 'button') do
        f.g.input(:type => 'submit', :value => lang('categories.buttons.save'))
      end
    end}
</section>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zen-0.3 lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml
zen-0.3b1 lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml
zen-0.3b lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml