Merge pull request #905 from Ana06/languages

Languages
This commit is contained in:
Henne Vogelsang 2016-06-15 16:55:12 +02:00 committed by GitHub
commit dcae196d2b
16 changed files with 115 additions and 13 deletions

View file

@ -98,6 +98,14 @@
off_text: 'No' }
- if @event.require_registration
= registered_text(@event)
-if @program.languages.present?
%tr
%td
%b Language
%td
= @event.language
- if !@event.room.nil?
%tr
%td

View file

@ -22,6 +22,9 @@
%b Submitter
%th
%b Speaker
-if @program.languages.present?
%th
%b Language
%th
%b Requires Registration
%th
@ -83,6 +86,10 @@
- else
Unknown speaker
-if @program.languages.present?
%td
= event.language
%td.text-center{'data-order' => "#{event.require_registration}"}
= check_box_tag @conference.short_title, event.id, event.require_registration,
method: :patch, url: "/admin/conference/#{@conference.short_title}/program/events/#{event.id}?event[require_registration]=",

View file

@ -4,9 +4,10 @@
%h1 Program
.row
.col-md-8
= semantic_form_for(@program, :url => admin_conference_program_path(@conference.short_title),:html => {:multipart => true}) do |f|
= semantic_form_for(@program, url: admin_conference_program_path(@conference.short_title), html: {multipart: true}) do |f|
= f.input :schedule_public, label: "Show Schedule on the home and splash page"
= f.input :schedule_fluid, label: "Allow submitters to change their event after it is scheduled"
= f.input :rating, :hint => "Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals."
= f.input :rating, hint: 'Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals.'
= f.input :languages, hint: "Enter the languages allowed for events as values of #{link_to('ISO 639-1', 'http://www.loc.gov/standards/iso639-2/php/code_list.php', target: "_blank")} language codes separated with commas. The first language would be the default language. Leave it blank if you do not want to specify languages.".html_safe
%p.text-right
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
= f.action :submit, as: :button, button_html: {class: 'btn btn-primary'}

View file

@ -31,6 +31,10 @@
Difficulty Levels:
%dd
= difficulty_levels(@conference)
%dt
Languages:
%dd
= @program.languages
%dt
Public Schedule
%dd#schedule_public