mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
e01e0c5596
Add refresh licenses, accessories and consumables tables refresh when add a new element resources\assets\js\snipeit_modals.js Some design fixes resources\views\kits\edit.blade.php Add default value to form (template) resources\views\modals\kit-model.blade.php New routes for kit accessories and kit consumables routes\api.php New routes for kit models, kit accessories and kit consumables routes\web\kits.php New templates
39 lines
2 KiB
PHP
39 lines
2 KiB
PHP
{{-- See snipeit_modals.js for what powers this --}}
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">Append accessory{{-- TODO: trans --}}</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form action="{{ route('api.kits.accessories.store', ['kit_id' => request('kit')]) }}" onsubmit="return false">
|
|
{{ csrf_field() }}
|
|
<div class="alert alert-danger" id="modal_error_msg" style="display:none">
|
|
</div>
|
|
|
|
<div class="dynamic-form-row">
|
|
<div class="col-md-4 col-xs-12"><label for="modal-accessory_id">{{ trans('general.accessory') }}:
|
|
</label></div>
|
|
<div class="col-md-8 col-xs-12 required">
|
|
<select class="js-data-ajax" data-endpoint="accessories" name="accessory" style="width: 100%" id="modal-accessory_id" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dynamic-form-row">
|
|
<div class="col-md-4 col-xs-12"><label for="modal-quantity_id">Quantity{{-- TODO: trans --}}:
|
|
</label></div>
|
|
<div class="col-md-8 col-xs-12 required">
|
|
<input type='text' name='quantity' id='modal-quantity_id' class="form-control" value="1">
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('button.cancel') }}</button>
|
|
<button type="button" class="btn btn-primary" id="modal-save">{{ trans('general.save') }}</button>
|
|
</div>
|
|
</div><!-- /.modal-content -->
|
|
</div><!-- /.modal-dialog -->
|