mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
Merge pull request #935 from openclassify/dia
#3021 [store-module] new design integrate
This commit is contained in:
commit
080844f102
@ -227,31 +227,14 @@ a.sort-by-open-dropdown:hover {
|
|||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-3{
|
|
||||||
background-color: #f4f4f4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.py-1 {
|
|
||||||
padding-top: 3px!important;
|
|
||||||
padding-bottom: 3px!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.px-2 {
|
|
||||||
padding: 0!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link {
|
.btn-link {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-3 {
|
|
||||||
padding: 8px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.searchbut {
|
.searchbut {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,6 +60,7 @@ $(document).ready(function () {
|
|||||||
$('.cat-item-3').parent().css('display', 'flex');
|
$('.cat-item-3').parent().css('display', 'flex');
|
||||||
stop();
|
stop();
|
||||||
} else {
|
} else {
|
||||||
|
if (!$('li', catId).length) {
|
||||||
response.forEach(function(options){
|
response.forEach(function(options){
|
||||||
$(catId).append("<li class='text-truncate pl-1 my-1' data-value="+options.id+">"+options.name+"</li>");
|
$(catId).append("<li class='text-truncate pl-1 my-1' data-value="+options.id+">"+options.name+"</li>");
|
||||||
});
|
});
|
||||||
@ -68,6 +69,7 @@ $(document).ready(function () {
|
|||||||
$(catId).css({height: '14rem'});
|
$(catId).css({height: '14rem'});
|
||||||
$(catId).closest('.cat-item-2').show().addClass('focus-select')
|
$(catId).closest('.cat-item-2').show().addClass('focus-select')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Auto scroll right
|
// Auto scroll right
|
||||||
let categoryTab = $('.category-tab');
|
let categoryTab = $('.category-tab');
|
||||||
let pos = categoryTab.scrollLeft() + categoryTab.width();
|
let pos = categoryTab.scrollLeft() + categoryTab.width();
|
||||||
|
|||||||
@ -4,9 +4,20 @@
|
|||||||
{{ content|raw }}
|
{{ content|raw }}
|
||||||
|
|
||||||
{% if form.mode == 'edit' %}
|
{% if form.mode == 'edit' %}
|
||||||
{% set entry = form.entry.setAttribute('cf_json', null) %}
|
{% set entry = form.entry %}
|
||||||
<script>
|
<script>
|
||||||
const ad = JSON.parse(`{{ entry|json_encode|raw }}`)
|
const ad = {
|
||||||
|
cat1: `{{ entry.cat1 }}`,
|
||||||
|
cat2: `{{ entry.cat2 }}`,
|
||||||
|
cat3: `{{ entry.cat3 }}`,
|
||||||
|
cat4: `{{ entry.cat4 }}`,
|
||||||
|
cat5: `{{ entry.cat5 }}`,
|
||||||
|
cat6: `{{ entry.cat6 }}`,
|
||||||
|
cat7: `{{ entry.cat7 }}`,
|
||||||
|
cat8: `{{ entry.cat8 }}`,
|
||||||
|
cat9: `{{ entry.cat9 }}`,
|
||||||
|
cat10: `{{ entry.cat10 }}`,
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user