Sha256: 17404880a509c552bdb6e548323bf527225a8a8c259dda9507ab4652041939bc

Contents?: true

Size: 1.27 KB

Versions: 15

Compression:

Stored size: 1.27 KB

Contents

- content_for :main do
  
  %h1.forms_icon Form '#{@form.title}'

  %p
    %strong Notify:
    = @form.notify

  %p
    %strong Redirect To:
    = link_to @form.redirect_to, @form.redirect_to

  %p
    %strong Submit Label:
    = @form.submit_label

  %p
    %strong URL:
    = link_to @form.url, @form.url

  %p 
    %strong Body:
    %pre(style="overflow: auto; width: 725px; border: thin #AAA solid; padding: 10px; ")
      = @form.body

  %p
    %strong Permissions:
    %br
    = form_permissions(@form)

  %p
    %strong Fields:
    %ul
      - @form.form_fields.each do |field|
        %li
          - if field && field.form_field_type
            = "#{field.name} [#{field.form_field_type.name}]"
          - else
            = "#{field.name} [no longer defined]"

  %p
    = icon_to "Edit Form", "/admin/form/#{@form.id}/edit"
    = icon_to "Edit Fields", "/admin/form/#{@form.id}/fields"
    = icon_to "View Submissions", "/admin/forms/#{@form.id}/list"
    - if @form.locked_for_delete == 1
      Cannot Delete (form is locked)
    - else
      = link_to "Delete", "/admin/form/#{@form.id}", :confirm => 'Are you sure? This will delete the form definition AND all the data that has been submitted using it', :method => :delete, :class=>"action"
    = icon_to "List Forms", "/admin/form"

Version data entries

15 entries across 15 versions & 1 rubygems

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