Sha256: d706a0c124d79e64acaa81930fa766d3981f77e4e948e7bd1888a751bf1aeca7

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 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
        %button.btn.btn-comp.btn-block.submit Save
        = 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

6 entries across 6 versions & 1 rubygems

Version Path
tenon-1.0.5 app/views/tenon/events/_form.html.haml
tenon-1.0.4 app/views/tenon/events/_form.html.haml
tenon-1.0.3 app/views/tenon/events/_form.html.haml
tenon-1.0.2 app/views/tenon/events/_form.html.haml
tenon-1.0.1 app/views/tenon/events/_form.html.haml
tenon-1.0 app/views/tenon/events/_form.html.haml