Skip to content

Commit

Permalink
Toggle to remove dynamic public schedule setting from form
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Dec 5, 2020
1 parent 5169aae commit fb751d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/conferences/_form_schedule.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
%fieldset.inputs
%legend= t(:schedule_configuration)
= f.input :schedule_version, hint: t('schedule_module.inputs.hints.schedule_version')
= f.input :schedule_public, as: :inline_boolean, hint: t('schedule_module.inputs.hints.schedule_public')
- unless ENV['DISABLE_FRAB_PUBLIC_SCHEDULE'].present?
= f.input :schedule_public, as: :inline_boolean, hint: t('schedule_module.inputs.hints.schedule_public')
= f.input :schedule_open, as: :inline_boolean, hint: t('schedule_module.inputs.hints.schedule_open')
%fieldset.inputs
%legend= t(:static_program_export)
Expand Down
3 changes: 3 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ FRAB_FORCE_SSL=false

# set to any value, to hide the gender field
#DISABLE_FRAB_GENDER_FIELD=

# set to any value, to disable serving the public schedule, i.e. because the export is used
#DISABLE_FRAB_PUBLIC_SCHEDULE=

0 comments on commit fb751d6

Please sign in to comment.