Sha256: ee37da94be0220635895bd242c764ee372a574b337ce6b9a6657c0b5d4f437c5
Contents?: true
Size: 1.34 KB
Versions: 23
Compression:
Stored size: 1.34 KB
Contents
- content_for :sidebar do .sidebar .content %h2 Events = link_to "New Event", new_event_path, class: 'btn btn-block btn-primary' = error_messages_for :event = autosaving_form_for @event do |f| .fields.large .form-group= f.text_field :title .form-group = f.tenon_content :description .fields.small %h4.box-label Event Details .box .form-group.bordered= f.text_field :location, :placeholder => '--' .form-group.bordered = f.text_field :starts_at, data: {behaviour: 'datetime-picker'}, placeholder: '--' .form-group.bordered = f.text_field :ends_at, data: {behaviour: 'datetime-picker'}, placeholder: '--' %h4.box-label Publish Your Event .box .form-group = f.text_field :publish_at, label: "Publish Date", data: {behaviour: 'datetime-picker'}, placeholder: '--' .row.content - if can?(:publish, @event) %button.btn.btn-comp.btn-block.submit Save - if can?(:create, Tenon::ItemVersion) = save_draft_button(@event) .last-autosave %hr .content = clear_draft_link if params[:version] = load_draft_link(@event) - if @event.persisted? = link_to "Delete", @event, :data => {:method => :delete, :confirm => "Are you sure you want to delete this?"}, :class => 'delete-link'
Version data entries
23 entries across 23 versions & 1 rubygems