Sha256: bd2aaa98b445faf5b4a833e086005a3304e05ac81784409bb0f47ce4931c9e32

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

- if not show.played?
  = form_tag built_event_shows_path(@event), :remote => true, :'data-type' => :json, :class => "sprited pending" do
    = hidden_field_tag :show_id, show.id
    = submit_tag "Create Tickets", :class => [ 'btn', 'btn-mini' ]

  = form_tag on_sale_event_shows_path(@event), :remote => true, :'data-type' => :json, :class => "sprited built" do
    = hidden_field_tag :show_id, show.id
    = submit_tag "Put On Sale", :class => [ 'btn', 'btn-mini' ]
    .confirmation.dialog
      %p= "You are about to put all tickets for the #{l show.datetime_local_to_event} showing of #{show.event.name} on sale and make it public."

  = form_tag unpublished_event_show_path(show.event, show), :remote => true, :'data-type' => :json, :class => "sprited published", :id => "show_#{show.id}" do
    = submit_tag "Unpublish", :class => [ 'btn', 'btn-mini' ]
    .confirmation.dialog
      %p= "You are unpublishing the #{l show.datetime_local_to_event} showing of #{show.event.name}."

  = form_tag published_event_show_path(show.event, show), :remote => true, :'data-type' => :json, :class => "sprited built unpublished" do
    = submit_tag "Publish", :class => [ 'btn', 'btn-mini' ]
    .confirmation.dialog
      %p= "You are publishing the #{l show.datetime_local_to_event} showing of #{show.event.name}."

  = form_tag event_show_path(@event, show), :method => :delete, :remote => true, :'data-type' => :json, :class => "sprited destroyable" do
    = hidden_field_tag :show_id, show.id
    = submit_tag "Delete", :class => [ 'btn', 'btn-mini', 'btn-danger' ]
    .confirmation.dialog
      %p= "Are you sure you want to delete this show?  Any tickets that have been created will also be deleted."

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.5 app/views/shows/_controls.html.haml
artfully_ose-1.2.0.pre.4 app/views/shows/_controls.html.haml
artfully_ose-1.2.0.pre.3 app/views/shows/_controls.html.haml
artfully_ose-1.2.0.pre.2 app/views/shows/_controls.html.haml
artfully_ose-1.2.0.pre.1 app/views/shows/_controls.html.haml
artfully_ose-1.2.0.pre app/views/shows/_controls.html.haml