diff options
author | Andrew Dolgov <[email protected]> | 2017-12-11 18:41:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-11 18:41:32 +0300 |
commit | 05e81655c3fb4cb138c0c5e7db5dd93328b03e25 (patch) | |
tree | 36bfd3fef99218364cc01b0a904f3ac7ea838ff1 /classes/pref | |
parent | 6fb5ce5e354312eaed97a8edde014a1677cabdfb (diff) |
user editor: add primary action
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/users.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/classes/pref/users.php b/classes/pref/users.php index d65af1680..9728e3bc9 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -20,10 +20,12 @@ class Pref_Users extends Handler_Protected { function edit() { global $access_level_names; + print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">"; + print '<div dojoType="dijit.layout.TabContainer" style="height : 400px"> <div dojoType="dijit.layout.ContentPane" title="'.__('Edit user').'">'; - print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">"; + //print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">"; $id = (int) clean($_REQUEST["id"]); @@ -87,8 +89,6 @@ class Pref_Users extends Handler_Protected { print "</table>"; - print "</form>"; - } print '</div>'; #tab @@ -99,11 +99,13 @@ class Pref_Users extends Handler_Protected { print '</div>'; print "<div class=\"dlgButtons\"> - <button dojoType=\"dijit.form.Button\" type=\"submit\">". + <button dojoType=\"dijit.form.Button\" class=\"btn-primary\" type=\"submit\" onclick=\"dijit.byId('userEditDlg').execute()\">". __('Save')."</button> <button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('userEditDlg').hide()\">". __('Cancel')."</button></div>"; + print "</form>"; + return; } |