Added schedule interval
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
%th=location.is_a?(Symbol) ? '' : _!(location.title)
|
||||
%tbody
|
||||
- data[:times].each do |time, time_data|
|
||||
%tr
|
||||
- rowspan = (time_data[:length] * 2).to_i
|
||||
%tr{class: "row-type-#{time_data[:type] || 'nil'}"}
|
||||
- rowspan = (time_data[:length] * (1 / @this_conference.schedule_interval)).to_i
|
||||
%th=time(time).html_safe
|
||||
- if time_data[:type] == :workshop
|
||||
- data[:locations].each do |id, location|
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
= form_tag administration_update_path(@this_conference.slug, @admin_step), class: ['table-tr', is_new ? 'new' : 'saved'] do
|
||||
.table-th.center.big= is_new ? '' : (block + 1)
|
||||
.table-td=hour_select info['time'], small: true, label: false
|
||||
.table-td=length_select info['length'], {small: true, label: false}, 0.5, 2
|
||||
.table-td=length_select info['length'], {small: true, label: false}, 0.5, 2, @this_conference.schedule_interval
|
||||
.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
|
||||
|
||||
Reference in New Issue
Block a user