Sha256: b7eb5deb7b60d71b78388cea06ec29d3b142519c269d3ecbf33edaae9ffe8395

Contents?: true

Size: 1.5 KB

Versions: 50

Compression:

Stored size: 1.5 KB

Contents

- content_for :popups do
  #popup_window
    .outer
      .content

  #add_part_popup.popup{:style => "display: none"}
    #add_part_busy.busy{:style => "display: none"}= image('spinner.gif', :alt => "")
    .popup_title= t('add_part')
    = form_for [:admin, PagePart.new] do |f|
      %p
        %label{:for => 'part_name_field'}= t('name')
        = f.text_field :name, :id => 'part_name_field', :maxlength => 100, :style => "width: 15em", :class => "textbox big"
        = hidden_field_tag 'index', 0, :id => 'page_part_index_field'
      .buttons
        = submit_tag t('add_part'), :id => 'add_part_button', :class => "button"
        = t('or')
        = link_to "Cancel", '#', onclick: "Popup.close(); return false", class: "cancel"
  #add_field_popup.popup{:style=>"display: none"}
    #add_field_busy.busy{:style=>"display: none"}= image('spinner.gif', :alt => "")
    .popup_title= t('add_field')
    = form_for [:admin, PageField.new], :html => { :onsubmit => "event.stop(); addField(this)" } do |f|
      %p
        %label{:for=>"page_field_name"}= t('name')
        = f.text_field :name, :maxlength=>100, :class=>'textbox big', :style=>"width: 15em"
        = hidden_field_tag 'index', 2, :id=>'page_field_index_field'
        = hidden_field_tag 'page_field_counter', @page.fields.size
      .buttons
        = submit_tag t('add_field'), :class=>'button', :id=>'add_page_field_button'
        = t('or')
        = link_to "Cancel", '#', onclick: "Popup.close(); return false", class: "cancel"
  = render_region :popups

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
trusty-cms-3.1.9 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.8 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.7 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.6 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.5 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.3 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.2 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.11 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.1 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.10 app/views/admin/pages/_popups.html.haml
trusty-cms-3.1.0 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.9 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.8 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.7 app/views/admin/pages/_popups.html.haml
trusty-cms-2.0.28 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.6 app/views/admin/pages/_popups.html.haml
trusty-cms-2.0.27 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.4 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.3 app/views/admin/pages/_popups.html.haml
trusty-cms-3.0.2 app/views/admin/pages/_popups.html.haml