mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2008 Listing view type error
This commit is contained in:
parent
b4e4049fdb
commit
7e444e1027
@ -135,11 +135,11 @@ a.sort-by-open-dropdown:hover {
|
||||
color: #8598AA;
|
||||
}
|
||||
|
||||
.list-view-type a:hover {
|
||||
color: #8598AA !important;
|
||||
.list-view-type button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.list-view-type a small {
|
||||
.list-view-type button small {
|
||||
font-weight: 500;
|
||||
color: #8598AA;
|
||||
}
|
||||
@ -186,4 +186,9 @@ $("#listFilterForm").submit(function(e) {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Change view type
|
||||
function changeViewType(viewLink) {
|
||||
window.location.href = viewLink
|
||||
}
|
||||
@ -1,32 +1,34 @@
|
||||
<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') %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::view_type',['map']) }}"
|
||||
class="text-dark d-flex align-items-center justify-content-center">
|
||||
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['map']) }}')"
|
||||
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">
|
||||
<small>{{ trans("visiosoft.module.advs::field.show_display_mode.map") }}</small>
|
||||
</a>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<a href="{{ url_route('visiosoft.module.advs::view_type',['list']) }}"
|
||||
class="text-dark d-flex align-items-center justify-content-center">
|
||||
<div class="col-4 col-md-3">
|
||||
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['list']) }}')"
|
||||
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">
|
||||
<small>{{ trans('visiosoft.module.advs::field.show_list_view.name') }}</small>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-3 list-table-view d-none d-md-block">
|
||||
<a href="{{ url_route('visiosoft.module.advs::view_type',['table']) }}"
|
||||
class="text-dark d-flex align-items-center justify-content-center">
|
||||
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['table']) }}')"
|
||||
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">
|
||||
<small>{{ trans('visiosoft.module.advs::field.show_table_view.name') }}</small>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-3 pr-0">
|
||||
<a href="{{ url_route('visiosoft.module.advs::view_type',['gallery']) }}"
|
||||
class="text-dark d-flex align-items-center justify-content-center">
|
||||
<div class="col-4 col-md-3 pr-0">
|
||||
<button onclick="changeViewType('{{ url_route('visiosoft.module.advs::view_type', ['gallery']) }}')"
|
||||
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">
|
||||
<small> {{ trans('visiosoft.module.advs::field.gallery') }}</small>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ asset_add('scripts.js', 'visiosoft.module.advs::js/list.js') }}
|
||||
Loading…
Reference in New Issue
Block a user