Sha256: 9b94eb8424e1d1664f02eabda32441d0a443ef4648222ba8c5db7d415ca242b2

Contents?: true

Size: 1.21 KB

Versions: 20

Compression:

Stored size: 1.21 KB

Contents

- content_for :scripts do
  :javascript
    $(function() {
      FORGE.features.nestedFields.init('#photos', {after: function() { FORGE.features.nestedFields.reorganize(4, '#photos-list li'); }});
      FORGE.features.nestedFields.reorganize(4, '#photos-list li');
    });

= error_messages_for :gallery

= form_for [:forge, @gallery], :builder => ForgeFormBuilder do |f|
  #form-header= f.title_field :title, :explanation => "Give your gallery a title.", :class => 'title'

  .inner-form
    #photos{:style => "padding: 20px 0px;"}
      %h3 Photos
      %p
        Add as many photos as you like to this gallery.  You can drag and drop to re-order them, or
        = add_child_link("add another one.", :photos)
        Any changes you make (adding, removing, replacing, or re-ordering) will not take effect until you click
        %strong Save.

        %ul#photos-list.sortable.attachment-list
          = f.fields_for :photos, @gallery.photos do |pf|
            = render :partial => "photo", :locals => {:f => pf}
        .spacer
        = new_child_fields_template(f, :photos, :partial => "photo")

  #item-list-bottom
    .float-right
      Everything look good?
      = button_link "Save", "javascript:;", :class => "submit button"

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
forge-cli-0.1.6 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.9 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.8 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.7 lib/forge/app/views/forge/galleries/_form.html.haml
forge-cli-0.0.6 lib/forge/app/views/forge/galleries/_form.html.haml