/
add_review_collapsible_component.html.haml
25 lines (25 loc) · 1.35 KB
/
add_review_collapsible_component.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.card.collapse.position-absolute.mt-2.shadow-lg#review-form-collapse
.card-body
%h5
Give a review for
%i
%ul.list-group.list-group-flush
%li.list-group-item#review-reason
%li.list-group-item
= form_tag(request_modify_review_path) do
= hidden_field_tag('review_id')
.mb-3
= text_area_tag('comment', '', rows: 4, class: 'w-100 form-control', placeholder: 'Please comment on your decision')
.mb-3
.form-check
= radio_button_tag('new_state', 'Decline', true, class: 'form-check-input', aria: { describedby: 'decline-description' })
= label_tag('Decline', 'Decline', for: 'new_state_Decline', class: 'form-check-label')
%small.form-text.text-muted#decline-description
Veto the review. This will also decline the request.
.form-check
= radio_button_tag('new_state', 'Approve', false, class: 'form-check-input', aria: { describedby: 'approve-description' })
= label_tag('Approve', for: 'new_state_Approve', class: 'form-check-label') do
Approve
%small.form-text.text-muted#approve-description
Give your consent for the review. The request will move forward.
= submit_tag 'Submit review', title: 'Submit the review.', class: 'btn btn-primary'