Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/admin/match_decision_reasons/_form.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

.form_actions.text-right
= link_to 'Cancel', admin_match_decision_reasons_path, class: 'btn btn-secondary'
= f.button :submit, class: 'btn btn-primary'
= f.button :submit, class: 'btn btn-primary', value: 'Create Reason'
2 changes: 1 addition & 1 deletion app/views/admin/match_decision_steps/_reason_tables.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.row
- kinds.each do |kind|
- show_audience = kind == MatchDecisionReasonAssignment::KIND_DECLINE && @step.supports_multiple_actors?
.col-lg-6
.col-sm-12
.c-card.mb-4
.c-card__header
%h3= "#{kind.titleize} Reasons"
Expand Down
1 change: 1 addition & 0 deletions app/views/match_decisions/_cancel_tab_content.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#cancel-client.tab-pane{role: :tabpanel, aria: {labelledby:'cancel-client'}, class: [active_tab] }
= render 'match_decisions/cancel_match_form_fields', form: form, include_other: include_other

%label.mt-4 Prevent re-matching:
= form.input :disable_opportunity, as: :boolean, label: 'Do not allow other matches for this vacancy'
.form-actions.form-actions--right
%button{ class: 'btn btn-warning jCancel', data: cancel_data, disabled: !@decision.editable? }
Expand Down
3 changes: 2 additions & 1 deletion app/views/match_decisions/_hsa_cancel_match_form_fields.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
- if include_other
= form.input :administrative_cancel_reason_other_explanation, as: :text, label: 'List any details related to the cancellation below', hint: 'Required for "Other"', placeholder: 'Other reason', input_html: {rows: 8}, wrapper_html: {class: 'jOtherCancelReason'}

%label.mt-4 Prevent re-matching:
= form.input :disable_opportunity, as: :boolean, label: 'Do not allow other matches for this vacancy'
= content_for :page_js do
:javascript
new window.App.SingleOptionCheckboxes( $('form.edit_decision')[0], 'decision[administrative_cancel_reason_id][]')
new window.App.SingleOptionCheckboxes( $('form.edit_decision')[0], 'decision[administrative_cancel_reason_id][]')
Loading