Added blade component to checkin/checkout pages

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-26 12:47:33 +01:00
parent c6e709cd36
commit 5dea3f4495
7 changed files with 62 additions and 29 deletions

View file

@ -71,11 +71,15 @@
</div>
</div>
<div class="box-footer">
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i>
{{ trans('general.checkin') }}</button>
</div>
<x-redirect_submit_options
index_route="accessories.index"
:button_label="trans('general.checkin')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.accessories')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.accessory')]),
]"
/>
</div> <!-- .box.box-default -->

View file

@ -114,10 +114,16 @@
</div>
</div>
</div>
<div class="box-footer">
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
<button type="submit" id="submit_button" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
</div>
<x-redirect_submit_options
index_route="accessories.index"
:button_label="trans('general.checkout')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.accessories')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.accessory')]),
'target' => trans('admin/hardware/form.redirect_to_checked_out_to'),
]"
/>
</div> <!-- .box.box-default -->
</form>
</div> <!-- .col-md-9-->

View file

@ -56,10 +56,14 @@
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
</div>
<div class="box-footer">
<a class="btn btn-link" href="{{ route('components.index') }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkin') }}</button>
</div>
<x-redirect_submit_options
index_route="components.index"
:button_label="trans('general.checkin')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.components')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.component')]),
]"
/>
</div> <!-- /.box-->
</form>
</div> <!-- /.col-md-7-->

View file

@ -54,10 +54,16 @@
</div> <!-- .BOX-BODY-->
<div class="box-footer">
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
<button type="submit" id="submit_button" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
</div>
<x-redirect_submit_options
index_route="components.index"
:button_label="trans('general.checkout')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.components')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.component')]),
'target' => trans('admin/hardware/form.redirect_to_checked_out_to'),
]"
/>
</div> <!-- .box-default-->
</form>
</div> <!-- .col-md-9-->

View file

@ -106,10 +106,14 @@
</div>
</div>
</div> <!-- .box-body -->
<div class="box-footer">
<a class="btn btn-link" href="{{ route('consumables.show', ['consumable'=> $consumable->id]) }}">{{ trans('button.cancel') }}</a>
<button type="submit" id="submit_button" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
</div>
<x-redirect_submit_options
index_route="consumables.index"
:button_label="trans('general.checkout')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.consumables')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.consumable')]),
'target' => trans('admin/hardware/form.redirect_to_checked_out_to'),
]"/>
</div>
</form>

View file

@ -56,10 +56,14 @@
{!! $errors->first('notes', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
</div>
<div class="box-footer">
<a class="btn btn-link" href="{{ route('licenses.index') }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkin') }}</button>
</div>
<x-redirect_submit_options
index_route="licenses.index"
:button_label="trans('general.checkin')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.licenses')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.license')]),
]"
/>
</div> <!-- /.box-->
</form>
</div> <!-- /.col-md-7-->

View file

@ -105,10 +105,15 @@
</div>
@endif
<div class="box-footer">
<a class="btn btn-link" href="{{ route('licenses.index') }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
</div>
<x-redirect_submit_options
index_route="licenses.index"
:button_label="trans('general.checkout')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.licenses')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.license')]),
'target' => trans('admin/hardware/form.redirect_to_checked_out_to'),
]"
/>
</div> <!-- /.box-->
</form>
</div> <!-- /.col-md-7-->