Sha256: 8984b81b54e3fc6cfa04c1e1af15c9caa47fa5bb2301c194835caca4ee339099

Contents?: true

Size: 1.99 KB

Versions: 4

Compression:

Stored size: 1.99 KB

Contents

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

    <div class="body">
        #{form_for(
          @custom_field_type,
          :method => :post,
          :id     => :custom_field_type_form,
          :action => CustomFields::Controller::CustomFieldTypes.r(:save),
          :'data-autosave-url' => CustomFields::Controller::CustomFieldTypes \
            .r(:autosave)
        ) do |f|
          f.input_hidden(:csrf_token, get_csrf_token)
          f.input_hidden(:id        , @custom_field_type.id)

          f.input_text(
            lang('custom_field_types.labels.name'),
            :name,
            :required  => :required,
            :maxlength => 255
          )

          f.input_text(
            lang('custom_field_types.labels.language_string'),
            :language_string,
            :required  => :required,
            :maxlength => 255
          )

          f.input_text(
            lang('custom_field_types.labels.html_class'),
            :html_class,
            :maxlength => 255,
            :pattern   => '^[a-zA-Z\\\-_0-9\\\s]*$'
          )

          f.input_radio(
            lang('custom_field_types.labels.serialize'),
            :serialize,
            @custom_field_type.serialize,
            :values => @boolean_hash.invert
          )

          f.input_radio(
            lang('custom_field_types.labels.allow_markup'),
            :allow_markup,
            @custom_field_type.allow_markup,
            :values => @boolean_hash.invert
          )

          f.select(
            lang('custom_field_types.labels.custom_field_method_id'),
            :custom_field_method_id,
            :values   => @custom_field_methods,
            :size     => 1,
            :selected => @custom_field_type.custom_field_method_id,
            :required => :required
          )

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zen-0.4.3 lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml
zen-0.4.2 lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml
zen-0.4.1 lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml
zen-0.4 lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml