You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.5 KiB
24 lines
1.5 KiB
- body_class 'banner-bottom'
|
|
= render :partial => 'application/header', :locals => {:page_group => :administration, :page_key => 'Administration', :image_file => 'admin.jpg'}
|
|
|
|
%article
|
|
= row do
|
|
= form_tag save_conference_path, class: 'composition' do
|
|
= columns(medium: 12) do
|
|
%h2=_"articles.conferences.headings.#{@this_conference.id.present? ? 'edit' : 'new'}_conference", :t, vars: { title: @this_conference.title }
|
|
= hidden_field_tag :id, @this_conference.id if @this_conference.id.present?
|
|
|
|
= columns(medium: 12) do
|
|
= textfield :city, location(@this_conference.city), required: true, big: true
|
|
= columns(medium: 12, class: 'flex-column') do
|
|
= selectfield :type, @this_conference.conferencetype, Conference.conference_types.keys.map { |k| [(_"forms.options.conferences.types.#{k}"), k]}, required: true, stretch: true
|
|
= numberfield :year, @this_conference.conference_year || (Date.today + 6.months).year, required: true
|
|
= columns(medium: 6) do
|
|
= checkbox :is_public, @this_conference.id.present? && @this_conference.is_public != false, 'forms.labels.generic.is_public'
|
|
= columns(medium: 6) do
|
|
= checkbox :is_featured, @this_conference.id.present? && @this_conference.is_featured != false, 'forms.labels.generic.is_featured'
|
|
= columns(medium: 12) do
|
|
.actions.next-prev
|
|
= button_tag :save, value: :save
|
|
- if @this_conference.id.present?
|
|
= button_with_confirmation :delete, value: :delete, class: 'delete'
|
|
|