|
| 1 | +{% set bootstrapVersion = 5 %} |
1 | 2 | {% extends 'program/hpo/ppsc/base.html.twig' %}
|
2 | 3 | {% import 'order/samples.html.twig' as samples %}
|
3 | 4 | {% if order.type != 'saliva' %}
|
|
6 | 7 | {% block title %}Finalize - Order {{ order.orderId }} - {% endblock %}
|
7 | 8 | {% block bodycontainer %}container-fluid{% endblock %}
|
8 | 9 | {% block body %}
|
| 10 | + {% form_theme finalizeForm 'custom_bootstrap_5_layout.html.twig' %} |
9 | 11 | {% include 'order/header.html.twig' with { active: 'finalize' } %}
|
10 |
| - {{ form_start(finalizeForm, { attr: { class: 'warn-unsaved disable-enter prevent-resubmit finalize-form' } }) }} |
| 12 | + {{ form_start(finalizeForm, { attr: { class: 'warn-unsaved disable-enter prevent-resubmit finalize-form aou-order-form' } }) }} |
11 | 13 | {{ form_errors(finalizeForm) }}
|
12 | 14 |
|
13 | 15 | <div class="form-group{% if not finalizeForm.finalizedTs.vars.valid %} has-error{% endif %}" id="order_finalize"
|
|
29 | 31 | {% endif %}
|
30 | 32 | {{ form_errors(finalizeForm.finalizedSamples) }}
|
31 | 33 | {% if finalizeForm.sampleShippingMethod is defined %}
|
32 |
| - {{ form_label(finalizeForm.sampleShippingMethod) }} |
| 34 | + <label class="form-label required">{{ finalizeForm.sampleShippingMethod.vars.label }}</label> |
33 | 35 | <span class="toggle-help-text" id="toggleShippingHelpModal">
|
34 | 36 | <i class="fa fa-question-circle" aria-hidden="true"></i><span class="sr-only">Help</span>
|
35 | 37 | </span>
|
|
48 | 50 | {% endif %}
|
49 | 51 | <div id="shipping_fields" {% if order.hideTrackingFieldByDefault %} style="display:none;" {% endif %}>
|
50 | 52 | <ul class="nav nav-tabs">
|
51 |
| - <li role="presentation" class="active"><a href="#" id="enable-number"> |
| 53 | + <li role="presentation" class="nav-item"><a class="nav-link active" href="#" id="enable-number"> |
52 | 54 | <i class="fa fa-keyboard-o" aria-hidden="true"></i>
|
53 | 55 | Enter tracking number
|
54 | 56 | </a></li>
|
55 |
| - <li role="presentation"><a href="#" id="enable-barcode"> |
| 57 | + <li role="presentation" class="nav-item"><a class="nav-link" href="#" id="enable-barcode"> |
56 | 58 | <i class="fa fa-barcode" aria-hidden="true"></i>
|
57 | 59 | Scan barcode
|
58 | 60 | </a></li>
|
59 | 61 | </ul>
|
60 | 62 | <br />
|
61 | 63 | <div class="row">
|
62 |
| - <div class="col-xs-6" id="fedex-barcode" style="display:none"> |
| 64 | + <div class="col-6" id="fedex-barcode" style="display:none"> |
63 | 65 | <div class="form-group">
|
64 | 66 | <label class="control-label" for="fedex_barcode_first">FedEx or UPS barcode</label>
|
65 |
| - <input type="text" id="fedex_barcode_first" class="form-control"> |
| 67 | + <input type="text" id="fedex_barcode_first" class="form-control form-control-sm"> |
66 | 68 | </div>
|
67 | 69 | <div class="form-group">
|
68 | 70 | <label class="control-label" for="fedex_barcode_second">Verify barcode</label>
|
69 |
| - <input type="text" id="fedex_barcode_second" class="form-control"> |
| 71 | + <input type="text" id="fedex_barcode_second" class="form-control form-control-sm"> |
70 | 72 | </div>
|
71 | 73 | </div>
|
72 |
| - <div class="col-xs-12" id="fedex-number"> |
| 74 | + <div class="col-12" id="fedex-number"> |
73 | 75 | {{ form_row(finalizeForm.fedexTracking) }}
|
74 | 76 | </div>
|
75 | 77 | </div>
|
|
89 | 91 | {{ form_rest(finalizeForm) }}
|
90 | 92 | {% set routePrefix = readOnlyView ? 'read_' : '' %}
|
91 | 93 | {% if not order.disabled and not readOnlyView and not inactiveSiteFormDisabled %}
|
92 |
| - <p> |
| 94 | + <p class="mt-2 mb-4"> |
93 | 95 | <button type="submit" {% if hasErrors %} class="btn btn-default" disabled="disabled" {% else %} class="btn btn-primary" {% endif %}>
|
94 | 96 | Save and mark as finalized
|
95 |
| - <span class="spinner-border spinner-border-sm" style="display: none;"></span> |
| 97 | + <span class="spinner-border spinner-border-sm-bs5" style="display: none;"></span> |
96 | 98 | </button>
|
97 |
| - <a href="{{ path(routePrefix ~ 'participant', { id: participant.id }) }}" class="btn btn-default">Cancel</a> |
| 99 | + <a href="{{ path(routePrefix ~ 'participant', { id: participant.id }) }}" class="btn btn-secondary">Cancel</a> |
98 | 100 | </p>
|
99 | 101 | {% else %}
|
100 |
| - <a href="{{ path(routePrefix ~ 'participant', { id: participant.id }) }}" class="btn btn-default">Return to In-Person Enrollment</a> |
| 102 | + <a href="{{ path(routePrefix ~ 'participant', { id: participant.id }) }}" class="btn btn-secondary mt-2 mb-4">Return to In-Person Enrollment</a> |
101 | 103 | {% endif %}
|
102 | 104 | {{ form_end(finalizeForm) }}
|
103 | 105 | {% if order.status == 'unlock' %}
|
|
115 | 117 | <p>A tracking number is not required for sites who use a courier service to ship biospecimen kits to the Biobank.</p>
|
116 | 118 | </div>
|
117 | 119 | <div class="modal-footer">
|
118 |
| - <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> |
| 120 | + <button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button> |
119 | 121 | </div>
|
120 | 122 | </div>
|
121 | 123 | </div>
|
122 | 124 | </div>
|
123 | 125 | {% endblock %}
|
124 | 126 |
|
125 | 127 | {% block pagejs %}
|
126 |
| - {{ encore_entry_script_tags('order-sub') }} |
| 128 | + {{ encore_entry_script_tags('order-sub-bs5') }} |
127 | 129 | {{ encore_entry_script_tags('order-finalize') }}
|
128 | 130 | {% endblock %}
|
0 commit comments