Sha256: b5e138ca7c80a7ce2d2888a1091f3df418fde5edf0249757b38a127d261d2852

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

= humpyard_form_for @page, :as => :page, :url => @page.page, :html=>{:'data-dialog-remote' => true, :'data-form-object-class' => "page", :class=>'page-form'} do |form|
  .dialog-search
    = "#{I18n.t("humpyard_form.titles.#{form.form_type.downcase}", :model => "#{Humpyard::Page.model_name.human}#{@page.title.blank? ? '' : " '#{@page.title}'"}")}"
  .dialog-pane
    .flashes
    - unless @page.persisted?
      = hidden_field_tag :type, @page_type
      = hidden_field :page, :parent_id
      - if @prev
        = hidden_field_tag :prev_id, @prev.id 
      - if @next
        = hidden_field_tag :next_id, @next.id
    .humpyard-tabview
      .humpyard-tab
        .humpyard-tab-title
          Page Options
        = form.input :title
        - if Humpyard::config.templates.size > 1
          = form.input :template_name, :as => :select, :collection => Humpyard::config.templates.map{|name, data| [name.to_s.camelize, name.to_s]}
        - else
          = hidden_field :page, :template_name
        = form.input :description, :rows => 10
        = form.input :in_menu
        = form.input :in_sitemap
        = form.input :always_refresh
      = render "/humpyard/pages/#{@page.class.name.split('::').last.underscore.pluralize}/edit", :page => @page, :form => form
      .humpyard-tab
        .humpyard-tab-title
          Generic Options
        = form.input :display_from
        = form.input :display_until
  .dialog-buttons.humpyard-form-buttons  
    = form.submit
    - if @page.persisted? and can? :destroy, @page.page
      = link_to "#{I18n.t("humpyard_form.actions.destroy", :model => "#{Humpyard::Page.model_name.human}#{@page.title.blank? ? '' : " '#{@page.title}'"}")}", humpyard_page_path(@page.page), :'data-icon' => "ui-icon-trash", :confirm => "Are you sure?", :method => :delete, :remote => true
    .hy-locale-info
      Sprache:
      = I18n.locale
    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 app/views/humpyard/pages/_edit.html.haml