Implements targets and campaigns for conference
This commit is contained in:
parent
678fe38a25
commit
857ac43e74
40 changed files with 1086 additions and 44 deletions
6
app/views/admin/targets/_target_fields.html.haml
Normal file
6
app/views/admin/targets/_target_fields.html.haml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.nested-fields
|
||||
= f.inputs do
|
||||
= f.input :due_date, as: :string, input_html: { class: 'target-due-date-datepicker', readonly: 'readonly' }
|
||||
= f.input :target_count
|
||||
= f.input :unit, as: :select, label: 'Unit', class: 'form-control', collection: Target.units.values, include_blank: false
|
||||
= remove_association_link :target, f
|
||||
5
app/views/admin/targets/index.html.haml
Normal file
5
app/views/admin/targets/index.html.haml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@conference, url: admin_conference_target_path(@conference.short_title, @conference.targets)) do |f|
|
||||
= dynamic_association :targets, 'Targets', f
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
Loading…
Add table
Add a link
Reference in a new issue