2016-10-09 02:13:36 +03:00
|
|
|
- content_for :title
|
2016-10-15 21:33:02 +03:00
|
|
|
= t('.edit', event_type: @event.event_type.try(:name).try(:mb_chars).try(:downcase), event_title: @event.title)
|
2016-10-09 02:13:36 +03:00
|
|
|
|
2015-07-14 21:00:02 +03:00
|
|
|
.row
|
2016-10-09 02:13:36 +03:00
|
|
|
.col-xs-12
|
|
|
|
h1.page-header
|
|
|
|
= @event.title
|
|
|
|
small<
|
|
|
|
= @event.subtitle
|
2015-07-14 21:00:02 +03:00
|
|
|
.col-lg-12
|
2015-07-19 11:44:44 +03:00
|
|
|
= simple_nested_form_for [:management, @conference, @event], wrapper: :horizontal_form, html: { class: 'form-horizontal' } do |f|
|
2016-10-09 02:13:36 +03:00
|
|
|
= f.input :title
|
|
|
|
= f.input :subtitle
|
2016-10-15 21:33:02 +03:00
|
|
|
= f.association :event_type, collection: current_conference.event_types
|
2016-10-09 02:13:36 +03:00
|
|
|
= f.association :track, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] }
|
2016-10-15 21:33:02 +03:00
|
|
|
= f.input :length
|
2016-10-09 02:13:36 +03:00
|
|
|
= f.input :language, collection: locale_collection, include_blank: false
|
|
|
|
= f.input :abstract
|
|
|
|
= f.input :description
|
|
|
|
= f.input :notes
|
2024-10-20 17:02:08 +03:00
|
|
|
div class="form-group file optional resources_bundle"
|
|
|
|
dev class="col-sm-3 control-label text optional"
|
|
|
|
= f.label :resources_bundle
|
|
|
|
.col-sm-9
|
|
|
|
= link_to @event.resources_bundle.filename, rails_blob_url(@event.resources_bundle.blob, disposition: "attachment") if @event.resources_bundle.attached?
|
|
|
|
= f.hidden_field :resources_bundle, value:@event.resources_bundle.signed_id if @event.resources_bundle.attached?
|
|
|
|
= f.input :resources_bundle, as: :file, wrapper: false, input_html: {direct_upload: true}, label: false
|
2016-10-09 02:13:36 +03:00
|
|
|
hr
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
h2 = Participation.model_name.human(count: 2).mb_chars.capitalize
|
|
|
|
.row
|
|
|
|
= render partial: 'form_participations', locals: {form: f}
|
2015-07-14 21:00:02 +03:00
|
|
|
|
2016-10-09 02:13:36 +03:00
|
|
|
.text-right
|
|
|
|
.btn-group
|
|
|
|
= action_buttons(@conference, @event, [:index, :show])
|
|
|
|
= f.submit class: 'btn btn-warning'
|
2016-10-09 02:48:35 +03:00
|
|
|
|
|
|
|
hr
|