osem-fcy/app/views/admin/conference/show.html.haml
2014-05-19 13:17:32 +03:00

36 lines
2.4 KiB
Text

.row
.col-md-3
= render 'admin/conference/sidebar'
.col-md-9
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f|
= f.input :title, :hint => t('.title_hint')
= f.input :short_title, :hint => t('.short_title_hint')
= f.input :social_tag, :hint => t('.social_tag_hint')
= f.input :contact_email, :hint => t('.contact_email_hint')
= f.inputs :name => "Scheduling" do
= f.input :timezone, :as => :time_zone, :hint => t('.timezone_hint')
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" }
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" }
= f.input :registration_start_date, :as => :string, :input_html => { :id => "conference-reg-start-datepicker", :readonly => "readonly" }
= f.input :registration_end_date, :as => :string, :input_html => { :id => "conference-reg-end-datepicker", :readonly => "readonly" }
= f.inputs :name => "Media" do
- if !@conference.logo.blank?
= image_tag @conference.logo(:thumb)
= f.input :logo, :label => t('.logo_label'), :hint => t('.logo_hint')
= f.input :media_type, :as => :select, :label => t('.media_type_label'), :class=>"form-control", :collection => Conference.media_types.values, :include_blank => false, :hint => t('.media_type_hint')
= f.input :media_id, :label => t('.media_id_label'), :as => :string
%p{:class => "help-block media-type", :id => "youtube-help"}
= t('.media_youtube-help')
%p{:class => "help-block media-type", :id => "slideshare-help", :style => "display:none"}
= t('.media_slideshare-help')
%p{:class => "help-block media-type", :id => "flickr-help", :style => "display:none"}
= t('.media_flickr-help')
%p{:class => "help-block media-type", :id => "vimeo-help", :style => "display:none"}
= t('.media_vimeo-help')
%p{:class => "help-block media-type", :id => "speakerdeck-help", :style => "display:none"}
= t('.media_speakerdeck-help')
%p{:class => "help-block media-type", :id => "instagram-help", :style => "display:none"}
= t('.media_instagram-help')
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}