Sha256: 180e2796ab7a25757eeb89a307d49f090761762868ff0c93ca973903860ade54

Contents?: true

Size: 1.37 KB

Versions: 16

Compression:

Stored size: 1.37 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(: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

16 entries across 16 versions & 1 rubygems

Version Path
tenon-1.0.45 app/views/tenon/events/_form.html.haml
tenon-1.0.44 app/views/tenon/events/_form.html.haml
tenon-1.0.43 app/views/tenon/events/_form.html.haml
tenon-1.0.42 app/views/tenon/events/_form.html.haml
tenon-1.0.41 app/views/tenon/events/_form.html.haml
tenon-1.0.40 app/views/tenon/events/_form.html.haml
tenon-1.0.39 app/views/tenon/events/_form.html.haml
tenon-1.0.38 app/views/tenon/events/_form.html.haml
tenon-1.0.37 app/views/tenon/events/_form.html.haml
tenon-1.0.36 app/views/tenon/events/_form.html.haml
tenon-1.0.35 app/views/tenon/events/_form.html.haml
tenon-1.0.33 app/views/tenon/events/_form.html.haml
tenon-1.0.32 app/views/tenon/events/_form.html.haml
tenon-1.0.31 app/views/tenon/events/_form.html.haml
tenon-1.0.30 app/views/tenon/events/_form.html.haml
tenon-1.0.29 app/views/tenon/events/_form.html.haml