.card-body table th.sorted, table th.sorting_asc, table th.sorting_desc{border-top:2px solid var(--success);} | .card-body table th.sorted, table th.sorting_asc, table th.sorting_desc{border-top:2px solid var(--success);} | ||||
.card-body table th.sorted.filtered{border-top:0px; position: relative;} | .card-body table th.sorted.filtered{border-top:0px; position: relative;} | ||||
.card-body table th.sorted.filtered:after{ content: ''; height: 2px; position: absolute; left: 0; width: 100%; right: 0; top: -1px; background: linear-gradient(to right, var(--success) 0%, var(--success) 50%, var(--primary) 50%, var(--primary) 100%);} | .card-body table th.sorted.filtered:after{ content: ''; height: 2px; position: absolute; left: 0; width: 100%; right: 0; top: -1px; background: linear-gradient(to right, var(--success) 0%, var(--success) 50%, var(--primary) 50%, var(--primary) 100%);} | ||||
.link-as-text{color: #212529; } |
window.addEventListener('load', (event) => { | window.addEventListener('load', (event) => { | ||||
$(document).on('select2:open', () => { | |||||
document.querySelector('.select2-search__field').focus(); | |||||
}); | |||||
SovNotification.init(); | SovNotification.init(); | ||||
}); | }); | ||||
SovTools.log(myselect); | SovTools.log(myselect); | ||||
myselect.off('select2:open') | |||||
return myselect; | return myselect; | ||||
} | } | ||||
} | } |
{% for field in entity.fields %} | {% for field in entity.fields %} | ||||
<td class="{{ field.property == sort_field_name ? 'sorted' }} text-{{ field.textAlign }} {{ field.cssClass }}" | <td class="{{ field.property == sort_field_name ? 'sorted' }} text-{{ field.textAlign }} {{ field.cssClass }}" | ||||
dir="{{ ea.i18n.textDirection }}"> | dir="{{ ea.i18n.textDirection }}"> | ||||
{{ include(field.templatePath, { field: field, entity: entity }, with_context = false) }} | |||||
{# {% if (field.property == 'id' or field.property == 'title') %}#} | |||||
{# #}{# {% if (field == 'title' or field== 'id') and (metadata.dataType=="string" or metadata.dataType=="integer") and _entity_config.name != 'ProductFamilyAdvancedEditing' %} #} | |||||
{# <a class="link-as-text"#} | |||||
{# href="{{ ea_url_short(null, 'edit', entity.instance.id) }}">#} | |||||
{# {{ include(field.templatePath, { field: field, entity: entity }, with_context = false) }}#} | |||||
{# </a>#} | |||||
{# {% else %}#} | |||||
{{ include(field.templatePath, { field: field, entity: entity }, with_context = false) }} | |||||
{# {% endif %}#} | |||||
</td> | </td> | ||||
{% endfor %} | {% endfor %} | ||||