Sha256: a96c2522138fa1746d13e9be6a7008b11881f698611f9a1f5aad4f1016435a76

Contents?: true

Size: 1.29 KB

Versions: 82

Compression:

Stored size: 1.29 KB

Contents

- content_for :popups do

  #popup_window
    .outer
      .content
  #add_category_type_popup.popup{:style => "display: none"}
    #add_category_type_busy.busy{:style => "display: none"}= image('spinner.gif', :alt => "")
    .popup_title
      Add Filter Category
    = form_for [:admin, FestivityCategoryType.new] do |f|
      %p
        %span#category-type-error.festivity-error
        %label{:for => 'type_name_field'}
          Category Type (i.e. Genre)
        = f.text_field :name, :id => 'type_name_field', :maxlength => 100, :style => "width: 15em", :class => "textbox big"
        = hidden_field_tag "type_site_id", @site.id
      %p
        %label{:for => 'type_page_class'}
          Show Type
        = f.select(:page_class, options_from_collection_for_select(FestivityBasePage.descendants.map, "name", "display_name"), {:id => "type_page_class", :class => "textbox big"})
      .buttons
        = submit_tag "Add Filter Category", :id => 'add_type_button', :class => "button"
        = t('or')
        = link_to t('cancel'), "javascript:void(0);", :class=>"cancel"

  - @site.festivity_active_category_types.each do |category_type|
    = render partial: "admin/sites/partials/category_popup", :locals => { category_type: category_type, type_name: category_type.name, type_id: category_type.name.parameterize}

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.3.1 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.3.0 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.9 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.8 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.7 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.6 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.5 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.4 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.3 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.2 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.1 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.2.0 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.1.1 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.1.0 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.7 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.6 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.5 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.4 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.3 app/views/admin/sites/partials/_category_popups.haml
trusty-festivity-extension-2.0.2 app/views/admin/sites/partials/_category_popups.haml