Fixed admin edit page
This commit is contained in:
parent
9356aa2d31
commit
364c4909b2
@ -2036,13 +2036,13 @@ table.schedule {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#main .columns & form {
|
||||
margin-top: 0;
|
||||
|
||||
button {
|
||||
margin-top: 0.5em;
|
||||
float: left;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -571,6 +571,7 @@ class ApplicationController < LinguaFrancaApplicationController
|
||||
|
||||
@schedule.each do | day, data |
|
||||
@schedule[day][:times] = data[:times].sort.to_h
|
||||
@schedule[day][:locations][0] = :add if @schedule[day][:locations].size > 0
|
||||
|
||||
data[:times].each do | time, time_data |
|
||||
if time_data[:type] == :workshop && time_data[:item].present? && time_data[:item][:workshops].present?
|
||||
|
@ -966,12 +966,14 @@ module ApplicationHelper
|
||||
|
||||
def admin_menu
|
||||
steps = ''
|
||||
first = true
|
||||
admin_steps.each do | step |
|
||||
steps += content_tag(:li, class: (step.to_s == @admin_step ? :current : nil)) do
|
||||
link_to _("menu.submenu.admin.#{step.to_s.titlecase.gsub(/\s/, '_')}"), step == :edit ?
|
||||
link_to _("menu.submenu.admin.#{step.to_s.titlecase.gsub(/\s/, '_')}"), first ?
|
||||
register_step_path(@this_conference.slug, :administration) :
|
||||
administration_step_path(@this_conference.slug, step.to_s)
|
||||
end
|
||||
first = false
|
||||
end
|
||||
content_tag :ul, steps.html_safe, id: 'registration-admin-menu'
|
||||
end
|
||||
|
@ -20,7 +20,7 @@
|
||||
%tr
|
||||
%th.corner
|
||||
- data[:locations].each do | id, location |
|
||||
%th=location.title
|
||||
%th=location.is_a?(Symbol) ? '' : location.title
|
||||
%th.status
|
||||
%tbody
|
||||
- data[:times].each do | time, time_data |
|
||||
|
Loading…
x
Reference in New Issue
Block a user