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

Version Path
tenon-1.0.28 app/views/tenon/events/_form.html.haml
tenon-1.0.27 app/views/tenon/events/_form.html.haml
tenon-1.0.26 app/views/tenon/events/_form.html.haml
tenon-1.0.25 app/views/tenon/events/_form.html.haml
tenon-1.0.24 app/views/tenon/events/_form.html.haml
tenon-1.0.23 app/views/tenon/events/_form.html.haml
tenon-1.0.22 app/views/tenon/events/_form.html.haml
tenon-1.0.21 app/views/tenon/events/_form.html.haml
tenon-1.0.20 app/views/tenon/events/_form.html.haml
tenon-1.0.19 app/views/tenon/events/_form.html.haml
tenon-1.0.18 app/views/tenon/events/_form.html.haml
tenon-1.0.17 app/views/tenon/events/_form.html.haml
tenon-1.0.16 app/views/tenon/events/_form.html.haml
tenon-1.0.15 app/views/tenon/events/_form.html.haml
tenon-1.0.14 app/views/tenon/events/_form.html.haml
tenon-1.0.13 app/views/tenon/events/_form.html.haml
tenon-1.0.12 app/views/tenon/events/_form.html.haml
tenon-1.0.11 app/views/tenon/events/_form.html.haml
tenon-1.0.10 app/views/tenon/events/_form.html.haml
tenon-1.0.9 app/views/tenon/events/_form.html.haml