first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<div class="row">
<div class="col-md-8">
{{ Form::select('attribute_set_id', trans('attribute::attributes.attributes.attribute_set_id'), $errors, $attributeSets, $attribute, ['required' => true]) }}
{{ Form::text('name', trans('attribute::attributes.attributes.name'), $errors, $attribute, ['required' => true]) }}
{{ Form::select('categories', trans('attribute::attributes.attributes.categories'), $errors, $categories, $attribute, ['class' => 'selectize prevent-creation', 'multiple' => true]) }}
@if ($attribute->exists)
{{ Form::text('slug', trans('attribute::attributes.attributes.slug'), $errors, $attribute, ['required' => true]) }}
@endif
{{ Form::checkbox('is_filterable', trans('attribute::attributes.attributes.is_filterable'), trans('attribute::admin.form.use_this_attribute_for_filtering_products'), $errors, $attribute) }}
</div>
</div>

View File

@@ -0,0 +1,24 @@
<script type="text/html" id="attribute-value-template">
<tr>
<td class="text-center">
<span class="drag-icon">
<i class="fa">&#xf142;</i>
<i class="fa">&#xf142;</i>
</span>
</td>
<td>
<input type="hidden" name="values[<%- valueId %>][id]" value="<%- value.id %>">
<div class="form-group">
<input type="text" name="values[<%- valueId %>][value]" value="<%- value.value %>" class="form-control">
</div>
</td>
<td class="text-center">
<button type="button" class="btn btn-default delete-row" data-toggle="tooltip" data-title="{{ trans('attribute::admin.form.delete_value') }}">
<i class="fa fa-trash"></i>
</button>
</td>
</tr>
</script>

View File

@@ -0,0 +1,29 @@
<div id="attribute-values-wrapper">
<div class="table-responsive">
<table class="options table table-bordered">
<thead>
<tr>
<th></th>
<th>{{ trans('attribute::admin.form.value') }}</th>
<th></th>
</tr>
</thead>
<tbody id="attribute-values">
</tbody>
</table>
</div>
<button type="button" class="btn btn-default" id="add-new-value">
{{ trans('attribute::admin.form.add_new_value') }}
</button>
</div>
@include('attribute::admin.attributes.tabs.templates.attribute_value')
@push('globals')
<script>
FleetCart.data['attribute.values'] = {!! old_json('values', $attribute->values) !!};
</script>
@endpush