|
|
@@ -199,11 +199,15 @@ |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
<div class="form-widget input-group-sm"> |
|
|
|
{{ form_widget(filters_form[field], {'attr': {'autocomplete': 'off', 'data-lc-autocomplete-url' : path('easyadmin', { |
|
|
|
action: 'autocomplete', |
|
|
|
field: field, |
|
|
|
entity: _entity_config.name, |
|
|
|
})|raw }}) }} |
|
|
|
{% if metadata.dataType == 'integer' or metadata.dataType== 'text' %} |
|
|
|
{{ form_widget(filters_form[field], {'attr': {'autocomplete': 'off', 'data-lc-autocomplete-url' : path('easyadmin', { |
|
|
|
action: 'autocomplete', |
|
|
|
field: field, |
|
|
|
entity: _entity_config.name, |
|
|
|
})|raw }}) }} |
|
|
|
{% else %} |
|
|
|
{{ form_widget(filters_form[field]) }} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
@@ -260,7 +264,8 @@ |
|
|
|
|
|
|
|
<td class="{{ isSortingField ? 'sorted' }} {{ metadata.dataType|lower }} {{ metadata.css_class }}" {{ easyadmin_config('design.rtl') ? 'dir="rtl"' }}> |
|
|
|
{% if (field == 'title' or field== 'id') and (metadata.dataType=="string" or metadata.dataType=="integer") %} |
|
|
|
<a class="link-as-text" href="{{ path('easyadmin', {'action':'edit', 'entity':_entity_config.name, 'id': item.id}) }}"> |
|
|
|
<a class="link-as-text" |
|
|
|
href="{{ path('easyadmin', {'action':'edit', 'entity':_entity_config.name, 'id': item.id}) }}"> |
|
|
|
{{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }} |
|
|
|
</a> |
|
|
|
{% else %} |
|
|
@@ -372,7 +377,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
$(document).ready(function(){ |
|
|
|
$(document).ready(function () { |
|
|
|
const toggles = document.querySelectorAll('.custom-switch input[type="checkbox"]'); |
|
|
|
for (i = 0; i < toggles.length; i++) { |
|
|
|
toggles[i].addEventListener('change', function () { |