Преглед на файлове

Import & stats

feature/export_comptable
Fab преди 4 години
родител
ревизия
bb53d7c86a
променени са 2 файла, в които са добавени 17 реда и са изтрити 15 реда
  1. +4
    -15
      ShopBundle/Resources/public/js/backend/script/default/init-common.js
  2. +13
    -0
      ShopBundle/Resources/views/backend/form/custom_bootstrap_4.html.twig

+ 4
- 15
ShopBundle/Resources/public/js/backend/script/default/init-common.js Целия файл

@@ -65,7 +65,8 @@ function initAdminLtePlugin() {
});
$('form button[type="submit"]').on('click', function (e) {

checkForm()
checkForm();
log('ncihe')
})

if ($('.select2, select.form-control').length) {
@@ -124,6 +125,8 @@ function initAdminLtePlugin() {
}
$(picker).daterangepicker(options);
$(picker).on('apply.daterangepicker', function (ev, pickerElm) {
log($(picker).nextAll('.date-time-range-fields').find('.date-start'));
log(pickerElm.startDate.format('YYYY-MM-DD HH:mm'));
$(picker).nextAll('.date-time-range-fields').find('.date-start').val(pickerElm.startDate.format('YYYY-MM-DD HH:mm'));
$(picker).nextAll('.date-time-range-fields').find('.date-end').val(pickerElm.endDate.format('YYYY-MM-DD HH:mm'));
});
@@ -189,20 +192,6 @@ function setSelect2($select) {
}
}

function checkForm() {
$('form').addClass('form-sent');
//Panel vues js
if ($('form').find('.panel').length) {
$('form').find('.panel').each(function (i, panel) {
if ($(panel).find(':invalid').length) {
$('#nav-params').find('.nav-item:eq(' + i + ')').addClass('has-invalid');
} else {
$('#nav-params').find('.nav-item:eq(' + i + ')').removeClass('has-invalid');
}
})
}
}



function initBtnEditReminder(){

+ 13
- 0
ShopBundle/Resources/views/backend/form/custom_bootstrap_4.html.twig Целия файл

@@ -1,5 +1,18 @@
{% use '@EasyAdmin/form/bootstrap_4.html.twig' %}



{# TODO à corriger le theme requiert des infos easyAdmin il devrait être possible de ne pas en utiliser #}










{% block form_widget -%}
{{ parent() }}


Loading…
Отказ
Запис