fixed image select error

fixed select 2 ui
imporoved ui/ux meta list
pull/26/head
A1Gard 1 year ago
parent 705c5667e2
commit 69d49ede58

@ -730,6 +730,32 @@ li.no_results {
display: none; display: none;
} }
.cats-x3 {
-moz-column-count: 4;
column-count: 4;
}
/*-1000px width*/
@media (max-width: 1000px) {
.cats-x3 {
-moz-column-count: 3;
column-count: 3;
}
}
/*-600px width*/
@media (max-width: 600px) {
.cats-x3 {
-moz-column-count: 2;
column-count: 2;
}
}
/*-300px width*/
@media (max-width: 300px) {
.cats-x3 {
-moz-column-count: 1;
column-count: 1;
}
}
.wizard .steps { .wizard .steps {
display: flex; display: flex;
position: relative; position: relative;
@ -906,6 +932,10 @@ li.no_results {
background: dodgerblue; background: dodgerblue;
} }
.select2-container {
max-width: 97%;
}
body { body {
overflow-x: hidden; overflow-x: hidden;
zoom: 100%; zoom: 100%;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -125,7 +125,12 @@ export default {
}, },
methods: { methods: {
changeImg:function ($k) { changeImg:function ($k) {
// console.log($k);
// console.log(this.onSelectImage);
// console.log(this.quantities);
this.quantities[this.onSelectImage].image = $k; this.quantities[this.onSelectImage].image = $k;
// console.log(this.quantities);
this.$forceUpdate();
}, },
showModal: function (i) { showModal: function (i) {
// this.showModal(i); // this.showModal(i);
@ -212,12 +217,16 @@ export default {
background: #FFFFFF99; background: #FFFFFF99;
z-index: 999; z-index: 999;
overflow-y: scroll; overflow-y: scroll;
backdrop-filter: blur(3px);
} }
#overlay img { #overlay img {
max-width: 100%; max-width: 100%;
width: 100%;
opacity: .75; opacity: .75;
height: 150px;
object-fit: cover;
} }
#overlay img.selected { #overlay img.selected {

@ -1,3 +1,7 @@
.multiselect__tag{ .multiselect__tag{
background: dodgerblue; background: dodgerblue;
} }
.select2-container{
max-width: 97%;
}

@ -2,3 +2,29 @@
#xls-file,#optionz{ #xls-file,#optionz{
display: none; display: none;
} }
.cats-x3{
column-count: 4
}
/*-1000px width*/
@media (max-width: 1000px) {
.cats-x3{
column-count: 3
}
}
/*-600px width*/
@media (max-width: 600px) {
.cats-x3{
column-count: 2
}
}
/*-300px width*/
@media (max-width: 300px) {
.cats-x3{
column-count: 1
}
}

@ -1,69 +1 @@
axios = require('axios'); axios = require('axios'); window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; alertify = require('alertifyjs'); require('../js/bootstrap'); window._ = require('lodash'); require('bootstrap/dist/js/bootstrap.bundle') require('chart.js/dist/chart.min') var $ = window.jQuery = jQuery = require('jquery'); require('lightbox2/dist/js/lightbox.min'); require('owl.carousel/dist/owl.carousel.min'); require('xzoom/dist/xzoom.min'); window.Vue = require('vue').default; // require('./js/gsap.min.js'); // require('./js/Physics2DPlugin3.min'); // require('./js/mega-menu.js'); require('./js/product.js'); require('./js/theme.js'); require('./js/chart.js'); require('../js/customer.js'); // require('../js/') Vue.component('example-component', require('../js/components/ExampleComponent.vue').default); Vue.component('meta-price', require('../js/components/MetaPrice.vue').default); Vue.component('currency', require('../js/components/CurrencyInput.vue').default); Vue.component('meta-element', require('../js/components/MetaElement.vue').default); Vue.component('meta-search', require('../js/components/MetaSearch').default); var app = new Vue({ el: '#app', data: { metaz: '123', jdata: [], def: [], }, mounted() { }, created() { if (document.querySelector('#jDataSrc') !== undefined && document.querySelector('#jDataSrc') != null){ try { this.jdata = JSON.parse(document.querySelector('#jDataSrc').value); this.def = JSON.parse(document.querySelector('#jDef').value); } catch { console.log('json error: for meta product page'); } } }, methods: { }, watch:{ jdata:{ handler: function(n) { this.$refs.metaEl.updateJdata(n); // this.$refs.metaPr.updateJdata(n); }, deep: true }, } }); window.app = app;
window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
alertify = require('alertifyjs');
require('../js/bootstrap');
window._ = require('lodash');
require('bootstrap/dist/js/bootstrap.bundle')
require('chart.js/dist/chart.min')
var $ = window.jQuery = jQuery = require('jquery');
require('lightbox2/dist/js/lightbox.min');
require('owl.carousel/dist/owl.carousel.min');
require('xzoom/dist/xzoom.min');
window.Vue = require('vue').default;
// require('./js/gsap.min.js');
// require('./js/Physics2DPlugin3.min');
// require('./js/mega-menu.js');
require('./js/product.js');
require('./js/theme.js');
require('./js/chart.js');
require('../js/customer.js');
// require('../js/')
Vue.component('example-component', require('../js/components/ExampleComponent.vue').default);
Vue.component('meta-price', require('../js/components/MetaPrice.vue').default);
Vue.component('currency', require('../js/components/CurrencyInput.vue').default);
Vue.component('meta-element', require('../js/components/MetaElement.vue').default);
Vue.component('meta-search', require('../js/components/MetaSearch').default);
var app = new Vue({
el: '#app',
data: {
metaz: '123',
jdata: [],
def: [],
},
mounted() {
},
created() {
if (document.querySelector('#jDataSrc') !== undefined && document.querySelector('#jDataSrc') != null){
try {
this.jdata = JSON.parse(document.querySelector('#jDataSrc').value);
this.def = JSON.parse(document.querySelector('#jDef').value);
} catch {
console.log('json error: for meta product page');
}
}
},
methods: {
},
watch:{
jdata:{
handler: function(n) {
this.$refs.metaEl.updateJdata(n);
// this.$refs.metaPr.updateJdata(n);
},
deep: true
},
}
});
window.app = app;

@ -15,9 +15,9 @@
@include('starter-kit::component.err') @include('starter-kit::component.err')
<form <form
@if(isset($p)) @if(isset($p))
action="{{route('admin.props.update',$p->id)}}" action="{{route('admin.props.update',$p->id)}}"
@else @else
action="{{route('admin.props.store')}}" action="{{route('admin.props.store')}}"
@endif @endif
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
@csrf @csrf
@ -63,7 +63,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="xtype">{{__("Type")}}:</label> <label for="xtype">{{__("Type")}}:</label>
<select name="type" id="xtype" class="form-control" required> <select name="type" id="xtype" class="form-control" required>
<option <option
value="text" {{ old('type',$p->type??null) == 'text' ? 'selected' : '' }} > {{__("Text type")}}</option> value="text" {{ old('type',$p->type??null) == 'text' ? 'selected' : '' }} > {{__("Text type")}}</option>
<option <option
@ -80,29 +80,43 @@
value="singlemulti" {{ old('type',$p->type??null) == 'singlemulti' ? 'selected' : '' }}>{{__("Single Select & multi search")}}</option> value="singlemulti" {{ old('type',$p->type??null) == 'singlemulti' ? 'selected' : '' }}>{{__("Single Select & multi search")}}</option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="category">{{__("Category")}}</label> <label>{{__("Category")}}</label>
<select {{-- <select--}}
multiple {{-- multiple--}}
name="category[]" {{-- name="category[]"--}}
id="category" {{-- id="category"--}}
class="form-control" {{-- class="form-control"--}}
data-placeholder="Select category" {{-- data-placeholder="Select category"--}}
required> {{-- required>--}}
<option value=""></option> {{-- <option value=""></option>--}}
@foreach($allCategories as $cat) {{-- @foreach($allCategories as $cat)--}}
<option value="{{ $cat->id }}" {{-- <option value="{{ $cat->id }}"--}}
@if(isset($cats) && in_array($cat->id,$cats)) selected @endif > {{$cat->name}} </option> {{-- @if(isset($cats) && in_array($cat->id,$cats)) selected @endif > {{$cat->name}} </option>--}}
@endforeach {{-- @endforeach--}}
</select> {{-- </select>--}}
{{-- --}}
<div class="cats-x3">
@foreach($allCategories as $k => $cat)
<div class="form-check form-switch">
<input class="form-check-input" value="{{ $cat->id }}"
@if(isset($cats) && in_array($cat->id,$cats)) checked @endif name="category[]"
type="checkbox" id="c{{$k}}">
<label class="form-check-label" for="c{{$k}}"> {{$cat->name}} </label>
</div> </div>
@endforeach
</div>
</div>
<div> <div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label> <label>
{{__("Is effective price?")}} {{__("Is effective price?")}}
</label> </label>
<input type="checkbox" @if( isset($p) && $p->priceable) checked @endif name="priceable" class="form-check"> <input type="checkbox" @if( isset($p) && $p->priceable) checked @endif name="priceable"
class="form-check">
</div> </div>
<div class="card-header"> <div class="card-header">
{{__("Icon")}} {{__("Icon")}}
@ -137,7 +151,9 @@
</h2> </h2>
<div class="content"> <div class="content">
</div> </div>
<div class="btn btn-success m-2" style="float: left" id="add-options"> <div class="fa fa-plus"></div></div> <div class="btn btn-success m-2" style="float: left" id="add-options">
<div class="fa fa-plus"></div>
</div>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="form-group"> <div class="form-group">

Loading…
Cancel
Save