mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:15:55 +00:00
user editor: add primary action
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user