Sha256: 8a7be79ee65aff4bd656a2424f06ac54024a12d923891757cad723a521d47cea

Contents?: true

Size: 1.38 KB

Versions: 28

Compression:

Stored size: 1.38 KB

Contents

- content_for :sidebar do
  .sidebar
    .content
      %h2 Events
      = link_to "New Event", new_event_path, class: 'btn btn-block btn-primary'

    = i18n_language_nav(:'tenon/events')

= 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

28 entries across 28 versions & 1 rubygems

Version Path
tenon-1.0.74 app/views/tenon/events/_form.html.haml
tenon-1.0.73 app/views/tenon/events/_form.html.haml
tenon-1.0.72 app/views/tenon/events/_form.html.haml
tenon-1.0.71 app/views/tenon/events/_form.html.haml
tenon-1.0.70 app/views/tenon/events/_form.html.haml
tenon-1.0.69 app/views/tenon/events/_form.html.haml
tenon-1.0.68 app/views/tenon/events/_form.html.haml
tenon-1.0.67 app/views/tenon/events/_form.html.haml
tenon-1.0.66 app/views/tenon/events/_form.html.haml
tenon-1.0.65 app/views/tenon/events/_form.html.haml
tenon-1.0.64 app/views/tenon/events/_form.html.haml
tenon-1.0.63 app/views/tenon/events/_form.html.haml
tenon-1.0.62 app/views/tenon/events/_form.html.haml
tenon-1.0.61 app/views/tenon/events/_form.html.haml
tenon-1.0.60 app/views/tenon/events/_form.html.haml
tenon-1.0.59 app/views/tenon/events/_form.html.haml
tenon-1.0.57 app/views/tenon/events/_form.html.haml
tenon-1.0.56 app/views/tenon/events/_form.html.haml
tenon-1.0.55 app/views/tenon/events/_form.html.haml
tenon-1.0.54 app/views/tenon/events/_form.html.haml