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> </div>
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a> index_route="accessories.index"
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> :button_label="trans('general.checkin')"
{{ trans('general.checkin') }}</button> :options="[
</div> '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 --> </div> <!-- .box.box-default -->

View file

@ -114,10 +114,16 @@
</div> </div>
</div> </div>
</div> </div>
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a> index_route="accessories.index"
<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> :button_label="trans('general.checkout')"
</div> :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 --> </div> <!-- .box.box-default -->
</form> </form>
</div> <!-- .col-md-9--> </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>') !!} {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div> </div>
</div> </div>
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ route('components.index') }}">{{ trans('button.cancel') }}</a> index_route="components.index"
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkin') }}</button> :button_label="trans('general.checkin')"
</div> :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--> </div> <!-- /.box-->
</form> </form>
</div> <!-- /.col-md-7--> </div> <!-- /.col-md-7-->

View file

@ -54,10 +54,16 @@
</div> <!-- .BOX-BODY--> </div> <!-- .BOX-BODY-->
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a> index_route="components.index"
<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> :button_label="trans('general.checkout')"
</div> :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--> </div> <!-- .box-default-->
</form> </form>
</div> <!-- .col-md-9--> </div> <!-- .col-md-9-->

View file

@ -106,10 +106,14 @@
</div> </div>
</div> </div>
</div> <!-- .box-body --> </div> <!-- .box-body -->
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ route('consumables.show', ['consumable'=> $consumable->id]) }}">{{ trans('button.cancel') }}</a> index_route="consumables.index"
<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> :button_label="trans('general.checkout')"
</div> :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> </div>
</form> </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>') !!} {!! $errors->first('notes', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div> </div>
</div> </div>
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ route('licenses.index') }}">{{ trans('button.cancel') }}</a> index_route="licenses.index"
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkin') }}</button> :button_label="trans('general.checkin')"
</div> :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--> </div> <!-- /.box-->
</form> </form>
</div> <!-- /.col-md-7--> </div> <!-- /.col-md-7-->

View file

@ -105,10 +105,15 @@
</div> </div>
@endif @endif
<div class="box-footer"> <x-redirect_submit_options
<a class="btn btn-link" href="{{ route('licenses.index') }}">{{ trans('button.cancel') }}</a> index_route="licenses.index"
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button> :button_label="trans('general.checkout')"
</div> :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--> </div> <!-- /.box-->
</form> </form>
</div> <!-- /.col-md-7--> </div> <!-- /.col-md-7-->