mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
refactor dialog of add user template
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<div id="template_add_dialog" title="{{ 'Creer un modele' | trans }}">
|
||||
<form>
|
||||
<label>{{ 'Nom du nouveau modele' | trans }}</label>
|
||||
<input type="text" name="value" />
|
||||
<input id="template-add-input" type="text" name="value"/>
|
||||
<img src="/assets/common/images/icons/loaderFFF.gif" class="new_user_loader" style="display:none;"/>
|
||||
</form>
|
||||
</div>
|
||||
|
@@ -308,22 +308,24 @@
|
||||
}).dialog('close');
|
||||
|
||||
var buttons = {};
|
||||
buttons[language.create_template] = function () {
|
||||
check_new_user(true);
|
||||
};
|
||||
buttons[language.annuler] = function () {
|
||||
$('#template_add_dialog').dialog('close');
|
||||
};
|
||||
buttons[language.create_template] = function () {
|
||||
check_new_user(true);
|
||||
};
|
||||
|
||||
$('#template_add_dialog').dialog({
|
||||
var templateAddDialog = $('#template_add_dialog').dialog({
|
||||
buttons: buttons,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
width: 500
|
||||
width: 382,
|
||||
|
||||
}).dialog('close');
|
||||
|
||||
templateAddDialog.closest('.ui-dialog').addClass('template_add_dialog_container');
|
||||
|
||||
function check_new_user(is_template) {
|
||||
var container = is_template ? $('#template_add_dialog') : $('#user_add_dialog');
|
||||
$('#new_user_loader').show();
|
||||
|
Reference in New Issue
Block a user