Sha256: e6659d53e1a9306fef272b5df6d22c56429c6578e387f0ffec241517626be65c
Contents?: true
Size: 1.35 KB
Versions: 7
Compression:
Stored size: 1.35 KB
Contents
- content_for :sidebar do .sidebar .content %h2 Galleries = link_to "New Gallery", new_gallery_path, class: 'btn btn-block btn-primary' = error_messages_for :gallery = autosaving_form_for @gallery do |f| .fields.large .form-group = f.text_field :title .form-group %p = link_to_add_association "Add another photo", f, :photos, 'data-association-insertion-node' => '#photo-list', 'data-association-insertion-method' => 'append' = link_to 'Add several', new_item_asset_path(multiple: true), class: 'btn btn-comp browse', data: {'modal-remote' => true, 'modal-title' => "Select file", 'modal-handler' => 'Tenon.features.MultipleAssetAttachment', target: '.tn-tc-asset-fields' } %ul.nested-field-list.sortable#photo-list = f.nested_fields :photo .fields.small %h4.box-label Publish .box .content - if can?(:publish, @gallery) = f.submit 'Save', class: 'btn btn-block btn-comp' - if can?(:create, Tenon::ItemVersion) = save_draft_button(@gallery) .last-autosave %hr .content = clear_draft_link if params[:version] = load_draft_link(@gallery) - if @gallery.persisted? = link_to "Delete", @gallery, :data => {:method => :delete, :confirm => "Are you sure you want to delete this?"}, :class => 'delete-link'
Version data entries
7 entries across 7 versions & 1 rubygems