diff --git a/addons/default/visiosoft/advs-module/resources/images/main.png b/addons/default/visiosoft/advs-module/resources/images/main.png new file mode 100644 index 000000000..6203ca514 Binary files /dev/null and b/addons/default/visiosoft/advs-module/resources/images/main.png differ diff --git a/addons/default/visiosoft/advs-module/resources/js/cats.js b/addons/default/visiosoft/advs-module/resources/js/cats.js index 83d5e9eab..579ddc0a4 100644 --- a/addons/default/visiosoft/advs-module/resources/js/cats.js +++ b/addons/default/visiosoft/advs-module/resources/js/cats.js @@ -1,3 +1,11 @@ +function showLoader() { + $('body').append('
'); +} + +function hideLoader() { + $('.loading-cart').remove(); +} + $(document).ready(function () { $('select[name="cat1"], select[name="cat2"], select[name="cat3"], ' + 'select[name="cat4"], select[name="cat5"], select[name="cat6"], select[name="cat7"]').on('change', function () { @@ -7,7 +15,6 @@ $(document).ready(function () { const filter = {}; filter.getCats = (catId, divId) => { - console.log(catId,divId) $.ajax({ type: 'get', url: '/class/getcats/'+ divId, @@ -20,12 +27,12 @@ $(document).ready(function () { btn = ""+response['nextBtn']+""; } $('.cat-item-3').html( - '
' + - '

'+response['title']+'

' + - '

'+response['msg']+'

' + + '
' + + '
'+response['title']+'
' + + '

'+response['msg']+'

' + '
' + ''+response['cancelBtn']+'
' ); $('.cat-item-3').show(); stop(); diff --git a/addons/default/visiosoft/advs-module/resources/js/new-create.js b/addons/default/visiosoft/advs-module/resources/js/new-create.js index 24b914491..afdca1b92 100644 --- a/addons/default/visiosoft/advs-module/resources/js/new-create.js +++ b/addons/default/visiosoft/advs-module/resources/js/new-create.js @@ -1,3 +1,12 @@ +function showLoader() { + $('body').append('
'); +} + +function hideLoader() { + $('.loading-cart').remove(); +} + + const filter = {}; // TODO will be unified diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index a07345f2c..0e63dbfd4 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -5,8 +5,18 @@
{% include "theme::partials/messages" %} - {% include "visiosoft.module.advs::new-ad/partials/breadcrumb" %} - +
@@ -32,22 +42,8 @@ {{ trans('visiosoft.module.advs::field.sell_item') }} * {{ trans('visiosoft.module.advs::field.mandatory_fields') }} -
- -
-
+
{{ nameField|raw }}
{% if entries('advs').isEnabled('store') %} @@ -98,10 +94,14 @@
- {{ descField|raw }} +
+ {{ descField|raw }} +
- {{ form.fields.files.input |raw }} +
+ {{ form.fields.files.input |raw }} +
{% if entries('advs').isEnabled('customfields') %} {% include "visiosoft.module.customfields::new-ad/fields" %} diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/breadcrumb.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/breadcrumb.twig index 7c458e2a9..b0944973b 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/breadcrumb.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/partials/breadcrumb.twig @@ -1,7 +1,7 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig index 05fb0635a..b1ad1166f 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig @@ -7,83 +7,74 @@
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_category') }}

-
    + +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    + +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
-
-

{{ trans('visiosoft.module.advs::field.select_a_sub_category') }}

-
    +
    +
    +
    {{ trans('visiosoft.module.advs::field.select_a_sub_category') }}
    -
-
+
+
-
+
+
@@ -101,6 +92,10 @@ overflow-y: auto } + .cat-select:focus { + outline: none; + } + .cat-select option { border-top: 1px solid #f2f2f2; padding: 15px 0 20px; @@ -119,7 +114,7 @@ } #main { - background-image: {{ img('theme::images/bg/main.png').url }} !important; + background-image: {{ img('visiosoft.module.advs::images/main.png').url }} !important; } .btn-1 { diff --git a/addons/default/visiosoft/media-field_type/resources/lang/tr/button.php b/addons/default/visiosoft/media-field_type/resources/lang/tr/button.php index 438fea527..e8fb1e78d 100644 --- a/addons/default/visiosoft/media-field_type/resources/lang/tr/button.php +++ b/addons/default/visiosoft/media-field_type/resources/lang/tr/button.php @@ -1,5 +1,5 @@ 'Ana', + 'showOn' => 'Vitrin', ]; diff --git a/addons/default/visiosoft/media-field_type/resources/views/input.twig b/addons/default/visiosoft/media-field_type/resources/views/input.twig index f16cc0988..b4cd48d09 100644 --- a/addons/default/visiosoft/media-field_type/resources/views/input.twig +++ b/addons/default/visiosoft/media-field_type/resources/views/input.twig @@ -1,8 +1,3 @@ - - {{ asset_add('scripts.js', 'visiosoft.field_type.media::js/jquery-sortable.js') }} {% if not (field_type.readonly) %} diff --git a/addons/default/visiosoft/media-field_type/src/Table/ValueTableBuilder.php b/addons/default/visiosoft/media-field_type/src/Table/ValueTableBuilder.php index 614c4c4d8..6c4ff96a8 100644 --- a/addons/default/visiosoft/media-field_type/src/Table/ValueTableBuilder.php +++ b/addons/default/visiosoft/media-field_type/src/Table/ValueTableBuilder.php @@ -64,7 +64,7 @@ class ValueTableBuilder extends TableBuilder ], 'rotate' => [ 'target' => '_blank', - 'icon' => 'fa fa-repeat', + 'icon' => 'fas fa-redo', 'type' => 'info', 'text' => '', 'attributes' => [