])->hiddenInput(); ?> | ])->hiddenInput(); ?> | ||||
<?php else: ?> | <?php else: ?> | ||||
<?php | <?php | ||||
$usersArray = User::findBy()->orderBy('type DESC')->all(); | |||||
$usersArray = User::findBy()->orderBy('type DESC, name_legal_person ASC, lastname ASC, name ASC')->all(); | |||||
?> | ?> | ||||
<?= $form->field($model, 'id_user', [ | <?= $form->field($model, 'id_user', [ | ||||
'template' => '{label} <a href="' . Yii::$app->urlManager->createUrl(['user/create']) . '" class="btn btn-xs btn-default">Nouvel utilisateur <span class="glyphicon glyphicon-plus"></span></a><div>{input}</div>{hint}', | 'template' => '{label} <a href="' . Yii::$app->urlManager->createUrl(['user/create']) . '" class="btn btn-xs btn-default">Nouvel utilisateur <span class="glyphicon glyphicon-plus"></span></a><div>{input}</div>{hint}', |
opendistrib_product_prices() ; | opendistrib_product_prices() ; | ||||
opendistrib_confirm_delete() ; | opendistrib_confirm_delete() ; | ||||
opendistrib_product_availability_points_sale(); | opendistrib_product_availability_points_sale(); | ||||
opendistrib_user_index(); | |||||
opendistrib_menu_treeview(); | opendistrib_menu_treeview(); | ||||
}) ; | }) ; | ||||
} | } | ||||
}; | }; | ||||
function opendistrib_user_index() { | |||||
if($('body').hasClass('user-index')) { | |||||
$('#w0-filters input:first').focus(); | |||||
} | |||||
} | |||||
function opendistrib_menu_treeview() { | function opendistrib_menu_treeview() { | ||||
$('li.treeview a').unbind('click').click(function() { | $('li.treeview a').unbind('click').click(function() { | ||||
var href = $(this).attr('href'); | var href = $(this).attr('href'); |