Sha256: e0553151ee0131b6365ac727efcd9016756fde37e75584a82893d228da8773b1

Contents?: true

Size: 1.1 KB

Versions: 15

Compression:

Stored size: 1.1 KB

Contents

= form_for(@gallery, :url => url , :html => {:class => "validation"}) do  |f|
  = gb_error_messages_for(@gallery)
  .span5
    %p
      = f.label :title
      = f.text_field(:title, :id => "page_title" , :class => "required large")
    %p
      = f.label :slug
      = f.text_field(:slug, :id => 'page_slug' , :class => "required large")
    %p
      = f.label :description
      = f.text_area(:description , :class => "jwysiwyg" )

    - if @gallery.collection_imported == false || @gallery.gallery_images.length == 0
      %p
        = label_tag "Asset Collection"
        = select_tag(:collection_id , options_from_collection_for_select(Gluttonberg::AssetCollection.all , "id" , "name_with_number_of_images") , :include_blank => true)
        .help
          Use care when selecting a collection to add to a gallery. Once a collection is added it cannot be deleted, and you will need to make a new gallery.

  .span4
    - if can? :publish , Gluttonberg::Gallery
      %p
        #publish_meta
          = f.publisable_dropdown
    = form_controls(admin_galleries_path)

  .clear

= enable_jwysiwyg_on_class("jwysiwyg")

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/content/galleries/_form.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/content/galleries/_form.html.haml