Sha256: 80946450feceff70b7bb9d96d47dcf7436853f507d9dca1098e3f560d1309729

Contents?: true

Size: 1.07 KB

Versions: 15

Compression:

Stored size: 1.07 KB

Contents

- content_for :main do

  - fft = @form_field_type

  %h1.forms_icon Field Type '#{fft.name}'

  %p
    %strong Name:
    = fft.name

  %p
    %strong Description:
    = fft.description

  %p 
    %strong Type:
    = fft.field_type

  
  - if ["multiselect", "multicheckbox", "radio", "select","hierarchy"].include?(fft.field_type)
    %p
      %strong Options:
      - if fft.field_type == 'hierarchy'
        = fft.options ? show_tree(fft.options) : ''
      - else
        = fft.options.split('|').join(', ').html_safe rescue ''

  %p 
    %strong HTML Options:
    = fft.html_options

  %p
    %strong Hidden:
    = fft.hidden? ? "Yes" : "No"

  %p
    = icon_to "Edit", "/admin/form_field_types/#{fft.id}/edit"
    = icon_to "Options Editor", "/admin/form_field_types/#{fft.id}/editoptions" if ["multicheckbox", "radio", "select","hierarchy", "multiselect"].include?(fft.field_type)

    = icon_to "Delete", "/admin/form_field_types/#{fft.id}", false, :confirm => 'Are you sure?', :method => :delete if fft.form_fields.size==0
    = icon_to "List Field Types", "/admin/form_field_types"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.20 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.19 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.18 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.17 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.16 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.15 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.14 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.13 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.11 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.10 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.9 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.8 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.7 app/views/admin/form_field_types/show.html.haml
kit_cms-2.3.6 app/views/admin/form_field_types/show.html.haml