Godwin
9 years ago
21 changed files with 25488 additions and 67 deletions
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 292 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@ |
|||||
|
.table.workshop-blocks |
||||
|
.table-tr |
||||
|
.table-th=_'forms.labels.generic.block_number' |
||||
|
.table-th=_'forms.labels.generic.time' |
||||
|
.table-th=_'forms.labels.generic.length' |
||||
|
.table-th=_'forms.labels.generic.days' |
||||
|
.table-th.form |
||||
|
- @workshop_blocks.each_with_index do | info, block | |
||||
|
= form_tag administration_update_path(@this_conference.slug, :schedule), class: 'table-tr' do |
||||
|
.table-th.center.big=(block + 1) |
||||
|
.table-td=time_select info['time'], small: true, label: false |
||||
|
.table-td=length_select info['length'], {small: true, label: false}, 0.5, 2 |
||||
|
.table-td=checkboxes :days, @block_days, info['days'].map(&:to_i), 'date.day_names', vertical: true, small: true |
||||
|
.table-td.form |
||||
|
= hidden_field_tag :workshop_block, block |
||||
|
= button_tag :delete_block, value: :delete_block, class: [:small, :delete] if block == @workshop_blocks.length - 2 |
||||
|
= button_tag (info['time'].present? ? :update_block : :add_block), value: :save_block, class: [:small, :add] |
@ -0,0 +1,5 @@ |
|||||
|
class AddWorkshopBlocksToConferences < ActiveRecord::Migration |
||||
|
def change |
||||
|
add_column :conferences, :workshop_blocks, :json |
||||
|
end |
||||
|
end |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue