mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
Merge branch 'develop'
This commit is contained in:
commit
a0d163a3c4
|
@ -478,7 +478,7 @@ Form::macro('two_factor_options', function ($name = "two_factor_enabled", $selec
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$select = '<select name="'.$name.'" class="'.$class.'" style="width: 500px">';
|
$select = '<select name="'.$name.'" class="'.$class.'">';
|
||||||
foreach ($formats as $format => $label) {
|
foreach ($formats as $format => $label) {
|
||||||
$select .= '<option value="'.$format.'"'.($selected == $format ? ' selected="selected"' : '').'>'.$label.'</option> '."\n";
|
$select .= '<option value="'.$format.'"'.($selected == $format ? ' selected="selected"' : '').'>'.$label.'</option> '."\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,8 +60,7 @@
|
||||||
@foreach ($assets as $asset)
|
@foreach ($assets as $asset)
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<form action="{{route('account/request-item', ['itemType' => 'asset', 'itemId' => $asset->id])}}" method="POST" accept-charset="utf-8">
|
|
||||||
{{ csrf_field() }}
|
|
||||||
<td>
|
<td>
|
||||||
@if ($asset->getImageUrl())
|
@if ($asset->getImageUrl())
|
||||||
<a href="{{ $asset->getImageUrl() }}" data-toggle="lightbox" data-type="image">
|
<a href="{{ $asset->getImageUrl() }}" data-toggle="lightbox" data-type="image">
|
||||||
|
@ -96,13 +95,16 @@
|
||||||
|
|
||||||
<td>{{ $asset->expected_checkin }}</td>
|
<td>{{ $asset->expected_checkin }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
<form action="{{route('account/request-item', ['itemType' => 'asset', 'itemId' => $asset->id])}}" method="POST" accept-charset="utf-8">
|
||||||
|
{{ csrf_field() }}
|
||||||
@if ($asset->isRequestedBy(Auth::user()))
|
@if ($asset->isRequestedBy(Auth::user()))
|
||||||
{{Form::submit(trans('button.cancel'), ['class' => 'btn btn-danger btn-sm'])}}
|
{{Form::submit(trans('button.cancel'), ['class' => 'btn btn-danger btn-sm'])}}
|
||||||
@else
|
@else
|
||||||
{{Form::submit(trans('button.request'), ['class' => 'btn btn-primary btn-sm'])}}
|
{{Form::submit(trans('button.request'), ['class' => 'btn btn-primary btn-sm'])}}
|
||||||
@endif
|
@endif
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</form>
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue