user editor: add primary action
This commit is contained in:
parent
6fb5ce5e35
commit
05e81655c3
|
@ -20,10 +20,12 @@ class Pref_Users extends Handler_Protected {
|
||||||
function edit() {
|
function edit() {
|
||||||
global $access_level_names;
|
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">
|
print '<div dojoType="dijit.layout.TabContainer" style="height : 400px">
|
||||||
<div dojoType="dijit.layout.ContentPane" title="'.__('Edit user').'">';
|
<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"]);
|
$id = (int) clean($_REQUEST["id"]);
|
||||||
|
|
||||||
|
@ -87,8 +89,6 @@ class Pref_Users extends Handler_Protected {
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</div>'; #tab
|
print '</div>'; #tab
|
||||||
|
@ -99,11 +99,13 @@ class Pref_Users extends Handler_Protected {
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
print "<div class=\"dlgButtons\">
|
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>
|
__('Save')."</button>
|
||||||
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('userEditDlg').hide()\">".
|
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('userEditDlg').hide()\">".
|
||||||
__('Cancel')."</button></div>";
|
__('Cancel')."</button></div>";
|
||||||
|
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue