Skip to content

Commit

Permalink
Merge pull request #1050 from sparc-request/wth-form-functionality-bugs
Browse files Browse the repository at this point in the history
wth - (SPARCCatalog) Form Functionality Bugs
  • Loading branch information
Stuart-Johnson committed Aug 10, 2017
2 parents f880570 + 377e01f commit 8c4bef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
= qr.hidden_field :required, value: true
= qr.hidden_field :item_id, value: item.id
%div{ class: "form-group item-#{item.id}" }
= qr.label item.content
= qr.label :item_content, item.content
= render "additional_details/submissions/form_partials/#{item.item_type}_form_partial", item: item, qr: qr
%span.help-block
= item.description
4 changes: 3 additions & 1 deletion app/views/additional_details/submissions/_new_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
= qr.hidden_field :required, value: true
= qr.hidden_field :item_id, value: item.id
%div{ class: "form-group item-#{item.id}" }
= qr.label item.content
= qr.label :item_content, item.content
= render "additional_details/submissions/form_partials/#{item.item_type}_form_partial", item: item, qr: qr
%span.help-block
= item.description
- if qr.object.errors.any?
.alert.alert-danger
%ul.list-unstyled
Expand Down

0 comments on commit 8c4bef7

Please sign in to comment.