|
19 | 19 | padding-right: 10px; |
20 | 20 | } |
21 | 21 |
|
22 | | - #eula_div { |
23 | | - width: 100%; |
24 | | - height: auto; |
25 | | - overflow: auto; |
26 | | - } |
27 | | -
|
28 | 22 | .m-signature-pad--body { |
29 | 23 | border-style: solid; |
30 | 24 | border-color: grey; |
|
49 | 43 | </h2> |
50 | 44 | </div> |
51 | 45 | <div class="box-body"> |
52 | | - <div class="col-md-12" style="padding-top: 20px; padding-bottom: 15px;"> |
53 | 46 | @if ($acceptance->checkoutable->getEula()) |
54 | | - <div id="eula_div" style="background-color: rgba(211,211,211,0.25); padding: 10px; border: lightgrey 1px solid;"> |
55 | | - {!! $acceptance->checkoutable->getEula() !!} |
| 47 | + <div class="col-md-12" style="padding-top: 15px; padding-bottom: 15px;"> |
| 48 | + <div style="background-color: rgba(211,211,211,0.25); padding: 10px; border: lightgrey 1px solid;"> |
| 49 | + {!! $acceptance->checkoutable->getEula() !!} |
| 50 | + </div> |
56 | 51 | </div> |
57 | 52 | @endif |
58 | | - </div> |
59 | 53 | <div class="col-md-12"> |
60 | 54 | <label class="form-control"> |
61 | 55 | <input type="radio" name="asset_acceptance" id="accepted" value="accepted"> |
|
69 | 63 | </div> |
70 | 64 | <div class="col-md-12"> |
71 | 65 | <br> |
72 | | - |
73 | 66 | <label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.acceptance_note')}}</label> |
74 | 67 | <br> |
75 | 68 | <textarea id="note" name="note" rows="4" class="form-control" style="width:100%">{{ old('note') }}</textarea> |
@@ -163,15 +156,15 @@ function resizeCanvas() { |
163 | 156 | |
164 | 157 | $('[name="asset_acceptance"]').on('change', function() { |
165 | 158 |
|
166 | | - if ($(this).is(':checked') && $(this).attr('id') == 'declined') { |
| 159 | + if ($(this).is(':checked') && $(this).attr('id') === 'declined') { |
167 | 160 | $("#showEmailBox").hide(); |
168 | 161 | $("#showSubmit").show(); |
169 | 162 | $("#submit-button").removeClass("btn-success").addClass("btn-danger").show(); |
170 | 163 | $("#submitIcon").removeClass("fa-check").addClass("fa-times"); |
171 | 164 | $("#buttonText").text('{{ trans('general.i_decline_item') }}'); |
172 | 165 | $("#note").prop('required', true); |
173 | 166 |
|
174 | | - } else if ($(this).is(':checked') && $(this).attr('id') == 'accepted') { |
| 167 | + } else if ($(this).is(':checked') && $(this).attr('id') === 'accepted') { |
175 | 168 | $("#showEmailBox").show(); |
176 | 169 | $("#showSubmit").show(); |
177 | 170 | $("#submit-button").removeClass("btn-danger").addClass("btn-success").show(); |
|
0 commit comments