Wrap tags in collapsable container
This commit is contained in:
@ -38,19 +38,28 @@
|
|||||||
.form-group
|
.form-group
|
||||||
= f.label(t('activerecord.attributes.exercise.worktime'))
|
= f.label(t('activerecord.attributes.exercise.worktime'))
|
||||||
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
||||||
|
|
||||||
h2 Tags
|
h2 Tags
|
||||||
.table-responsive
|
ul.list-unstyled.panel-group
|
||||||
table.table#tags-table
|
li.panel.panel-default
|
||||||
thead
|
.panel-heading role="tab" id="heading"
|
||||||
tr
|
a.file-heading data-toggle="collapse" href="#tag-collapse"
|
||||||
th = t('activerecord.attributes.exercise.selection')
|
div.clearfix role="button"
|
||||||
th = sort_link(@search, :title, t('activerecord.attributes.tag.name'))
|
span Click to expand/collapse...
|
||||||
th = t('activerecord.attributes.tag.difficulty')
|
.panel-collapse.collapse id="tag-collapse" role="tabpanel"
|
||||||
= collection_check_boxes :exercise, :tag_ids, @exercise_tags, :tag_id, :id do |b|
|
.table-responsive
|
||||||
tr
|
table.table#tags-table
|
||||||
td = b.check_box
|
thead
|
||||||
td = b.object.tag.name
|
tr
|
||||||
td = number_field "tag_factors[#{b.object.tag.id}]", :factor, :value => b.object.factor, in: 1..10, step: 1
|
th = t('activerecord.attributes.exercise.selection')
|
||||||
|
th = sort_link(@search, :title, t('activerecord.attributes.tag.name'))
|
||||||
|
th = t('activerecord.attributes.tag.difficulty')
|
||||||
|
= collection_check_boxes :exercise, :tag_ids, @exercise_tags, :tag_id, :id do |b|
|
||||||
|
tr
|
||||||
|
td = b.check_box
|
||||||
|
td = b.object.tag.name
|
||||||
|
td = number_field "tag_factors[#{b.object.tag.id}]", :factor, :value => b.object.factor, in: 1..10, step: 1
|
||||||
|
|
||||||
h2 = t('activerecord.attributes.exercise.files')
|
h2 = t('activerecord.attributes.exercise.files')
|
||||||
ul#files.list-unstyled.panel-group
|
ul#files.list-unstyled.panel-group
|
||||||
= f.fields_for :files do |files_form|
|
= f.fields_for :files do |files_form|
|
||||||
|
Reference in New Issue
Block a user