Merge branch 'develop'

This commit is contained in:
snipe 2017-11-16 11:41:18 -08:00
commit a0d163a3c4
2 changed files with 6 additions and 4 deletions

View file

@ -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";
} }

View file

@ -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>