Skip to content

Commit ebc1e27

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 357e85d + 764b363 commit ebc1e27

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed

app/Models/CheckoutAcceptance.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ public function decline($signature_filename, $note = null)
132132
/**
133133
* Filter checkout acceptences by the user
134134
*
135-
* @param Illuminate\Database\Eloquent\Builder $query
136-
* @param User $user
135+
* @param User $user
137136
* @return \Illuminate\Database\Eloquent\Builder
138137
*/
139138
public function scopeForUser(Builder $query, User $user)
@@ -144,7 +143,6 @@ public function scopeForUser(Builder $query, User $user)
144143
/**
145144
* Filter to only get pending acceptances
146145
*
147-
* @param Illuminate\Database\Eloquent\Builder $query
148146
* @return \Illuminate\Database\Eloquent\Builder
149147
*/
150148
public function scopePending(Builder $query)
@@ -209,6 +207,7 @@ public function generateAcceptancePdf($data, $pdf_filename) {
209207
if ($data['item_serial'] != null) {
210208
$pdf->writeHTML(trans('admin/hardware/form.serial').': '.e($data['item_serial']), true, 0, true, 0, '');
211209
}
210+
$pdf->writeHTML(trans('general.assignee').': '.e($data['assigned_to']), true, 0, true, 0, '');
212211
$pdf->Ln();
213212
$pdf->writeHTML('<hr>', true, 0, true, 0, '');
214213

@@ -228,8 +227,10 @@ public function generateAcceptancePdf($data, $pdf_filename) {
228227
$pdf->Ln();
229228

230229
if ($data['signature'] != null) {
231-
$pdf->writeHTML('<img src="'.$data['signature'].'" style="max-width: 600px;">', true, 0, true, 0, '');
230+
$pdf->writeHTML('<img src="'.$data['signature'].'">', true, 0, true, 0, '');
232231
$pdf->writeHTML('<hr>', true, 0, true, 0, '');
232+
$pdf->writeHTML(e($data['assigned_to']), true, 0, true, 0, 'C');
233+
$pdf->Ln();
233234
}
234235

235236
if ($data['note'] != null) {
@@ -238,7 +239,7 @@ public function generateAcceptancePdf($data, $pdf_filename) {
238239
$pdf->Ln();
239240
}
240241

241-
$pdf->writeHTML(trans('general.assignee').': '.e($data['assigned_to']), true, 0, true, 0, '');
242+
242243
$pdf->writeHTML(trans('general.assigned_date').': '.e($data['check_out_date']), true, 0, true, 0, '');
243244
$pdf->writeHTML(trans('general.accepted_date').': '.e($data['accepted_date']), true, 0, true, 0, '');
244245

resources/views/account/accept/create.blade.php

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,21 @@
2020
}
2121
2222
.m-signature-pad--body {
23-
border-style: solid;
23+
border-style: dashed;
2424
border-color: grey;
25-
border-width: thin;
25+
border-width: thick;
26+
padding-top: 0px;
2627
}
2728
29+
30+
.m-signature-pad {
31+
box-shadow: none;
32+
background-color: inherit;
33+
border: none;
34+
35+
}
36+
37+
2838
</style>
2939

3040

@@ -90,30 +100,37 @@
90100
<canvas style="width:100%;"></canvas>
91101
<input type="hidden" name="signature_output" id="signature_output">
92102
</div>
93-
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-center">
103+
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-left">
94104
<button type="button" class="btn btn-sm btn-default clear" data-action="clear" id="clear_button">{{trans('general.clear_signature')}}</button>
95105
</div>
96106
</div>
97107
</div>
98108
@endif
99109

100-
@if (auth()->user()->email!='')
101-
<div class="col-md-12" style="padding-top: 20px; display: none;" id="showEmailBox">
102-
<label class="form-control">
103-
<input type="checkbox" value="1" name="send_copy" id="send_copy" checked="checked" aria-label="send_copy">
104-
{{ trans('mail.send_pdf_copy') }} ({{ auth()->user()->email }})
105-
</label>
106-
</div>
107-
@endif
108110

109111
</div> <!-- / box-body -->
110-
<div class="box-footer text-right" style="display: none;" id="showSubmit">
111-
<button type="submit" class="btn btn-success" id="submit-button">
112-
<i class="fa fa-check icon-white" aria-hidden="true" id="submitIcon"></i>
113-
<span id="buttonText">
112+
<div class="box-footer" style="display: none;" id="showSubmit">
113+
<div class="row">
114+
<div class="col-md-7">
115+
@if (auth()->user()->email!='')
116+
<div class="col-md-12" style="display: none;" id="showEmailBox">
117+
<label class="form-control">
118+
<input type="checkbox" value="1" name="send_copy" id="send_copy" checked="checked" aria-label="send_copy">
119+
{{ trans('mail.send_pdf_copy') }} ({{ auth()->user()->email }})
120+
</label>
121+
</div>
122+
@endif
123+
</div>
124+
<div class="col-md-5 text-right">
125+
<button type="submit" class="btn btn-success" id="submit-button">
126+
<i class="fa fa-check icon-white" aria-hidden="true" id="submitIcon"></i>
127+
<span id="buttonText">
114128
{{ trans_choice('general.i_accept_item', $acceptance->qty ?? null) }}
115129
</span>
116-
</button>
130+
</button>
131+
</div>
132+
</div>
133+
117134
</div><!-- /.box-footer -->
118135
</div> <!-- / box-default -->
119136
</div> <!-- / col -->

0 commit comments

Comments
 (0)