Merge pull request #644 from openclassify/dia

#1927 pazaryeri iyzico odeme modeli
This commit is contained in:
Ozcan Durak 2020-08-21 12:50:13 +03:00 committed by GitHub
commit 4ef9811f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 20 deletions

View File

@ -135,11 +135,11 @@ a.sort-by-open-dropdown:hover {
color: #8598AA; color: #8598AA;
} }
.list-view-type a:hover { .list-view-type button:focus {
color: #8598AA !important; outline: none;
} }
.list-view-type a small { .list-view-type button small {
font-weight: 500; font-weight: 500;
color: #8598AA; color: #8598AA;
} }

View File

@ -173,4 +173,9 @@ $("#listFilterForm").submit(function(e) {
} }
} }
}); });
}); });
// Change view type
function changeViewType(viewLink) {
window.location.href = viewLink
}

View File

@ -1,32 +1,34 @@
<div class="row text-center list-view-type justify-content-center"> <div class="row text-center list-view-type justify-content-center">
<div class="col-3"> <div class="col-4 col-md-3">
{% if setting_value('visiosoft.module.location::list_page_location') %} {% if setting_value('visiosoft.module.location::list_page_location') %}
<a href="{{ url_route('visiosoft.module.advs::view_type',['map']) }}" <button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['map']) }}')"
class="text-dark d-flex align-items-center justify-content-center"> class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/map-icon.svg').url }}" alt="map icon" class="mr-1"> <img src="{{ img('visiosoft.module.advs::images/map-icon.svg').url }}" alt="map icon" class="mr-1">
<small>{{ trans("visiosoft.module.advs::field.show_display_mode.map") }}</small> <small>{{ trans("visiosoft.module.advs::field.show_display_mode.map") }}</small>
</a> </button>
{% endif %} {% endif %}
</div> </div>
<div class="col-3"> <div class="col-4 col-md-3">
<a href="{{ url_route('visiosoft.module.advs::view_type',['list']) }}" <button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['list']) }}')"
class="text-dark d-flex align-items-center justify-content-center"> class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/list-icon.svg').url }}" alt="list icon" class="mr-1"> <img src="{{ img('visiosoft.module.advs::images/list-icon.svg').url }}" alt="list icon" class="mr-1">
<small>{{ trans('visiosoft.module.advs::field.show_list_view.name') }}</small> <small>{{ trans('visiosoft.module.advs::field.show_list_view.name') }}</small>
</a> </button>
</div> </div>
<div class="col-3 list-table-view d-none d-md-block"> <div class="col-3 list-table-view d-none d-md-block">
<a href="{{ url_route('visiosoft.module.advs::view_type',['table']) }}" <button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['table']) }}')"
class="text-dark d-flex align-items-center justify-content-center"> class="border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/table-icon.svg').url }}" alt="table icon" class="mr-1"> <img src="{{ img('visiosoft.module.advs::images/table-icon.svg').url }}" alt="table icon" class="mr-1">
<small>{{ trans('visiosoft.module.advs::field.show_table_view.name') }}</small> <small>{{ trans('visiosoft.module.advs::field.show_table_view.name') }}</small>
</a> </button>
</div> </div>
<div class="col-3 pr-0"> <div class="col-4 col-md-3 pr-0">
<a href="{{ url_route('visiosoft.module.advs::view_type',['gallery']) }}" <button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['gallery']) }}')"
class="text-dark d-flex align-items-center justify-content-center"> class="mx-auto border-0 text-dark d-flex align-items-center justify-content-center">
<img src="{{ img('visiosoft.module.advs::images/gallery-icon.svg').url }}" alt="gallery icon" class="mr-1"> <img src="{{ img('visiosoft.module.advs::images/gallery-icon.svg').url }}" alt="gallery icon" class="mr-1">
<small> {{ trans('visiosoft.module.advs::field.gallery') }}</small> <small> {{ trans('visiosoft.module.advs::field.gallery') }}</small>
</a> </button>
</div> </div>
</div> </div>
{{ asset_add('scripts.js', 'visiosoft.module.advs::js/list.js') }}

View File

@ -1,3 +1,8 @@
.link-unstyled, .link-unstyled:link, .link-unstyled:hover {
color: inherit;
text-decoration: inherit;
}
.left-categories-section .categories-list, .left-categories-section .categories-list,
.left-categories-section .categories-list li ul { .left-categories-section .categories-list li ul {
list-style: none; list-style: none;