summaryrefslogtreecommitdiff
path: root/UI/Admin/edit_user.html
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-25 23:08:34 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-25 23:08:34 +0000
commita316a97097bf8bcf9a4f809faf30dd756e60563d (patch)
tree044e4ccae8fc9faf724970464e4bc8dab468c58f /UI/Admin/edit_user.html
parent899c61eba210d60d8212dcd086fd74fc7a1c9812 (diff)
Saving locations and contacts to a user now works as expected.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2342 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/Admin/edit_user.html')
-rw-r--r--UI/Admin/edit_user.html65
1 files changed, 33 insertions, 32 deletions
diff --git a/UI/Admin/edit_user.html b/UI/Admin/edit_user.html
index 536b8ffa..df166cf7 100644
--- a/UI/Admin/edit_user.html
+++ b/UI/Admin/edit_user.html
@@ -62,7 +62,7 @@
<input type="hidden" name="location_id" value="<?lsmb location.id?>"/>
<?lsmb END?>
<input type="hidden" name="action" value="save_location"/>
- <input type="hidden" name="user_id" value="<?lsmb user.user.entity_id?>"/>
+ <input type="hidden" name="user_id" value="<?lsmb user.user.id?>"/>
<table>
<tr>
@@ -90,8 +90,7 @@
Country
</td>
</tr>
-
-
+
<?lsmb FOR location IN user.locations ?>
<tr>
@@ -200,7 +199,7 @@
options = contact_classes
default_values = [contact.contact_class_id]
value_attr = "id"
- text_attr = "classname"
+ text_attr = "name"
} ?>
</td>
<td>
@@ -219,33 +218,35 @@
</tr>
</form>
</table>
+ <form name="groups" method="POST" action="admin.pl">
+ <input type="hidden" name="action" value="save_groups"/>
+ <table>
+ <!-- Groups section -->
+ <tr>
+ <?lsmb FOREACH role IN roles ?>
+ <?lsmb IF loop.count % 2 == 0?>
+ </tr>
+ <tr>
+ <?lsmb END?>
+ <td>
+ <input type="checkbox" name="<?lsmb loop.index?>" value="1"
+ <?lsmb FOREACH rolname IN user.roles ?>
+ <?lsmb IF role == rolname?>
+ checked
+ <?lsmb END?>
+ <?lsmb END?> />
+ <?lsmb role?>
+ </td>
+ <?lsmb END?>
+ </tr>
+ </table>
- <table>
- <!-- Groups section -->
- <tr>
- <?lsmb FOREACH role IN roles ?>
- <?lsmb IF loop.count % 2 == 0?>
- </tr>
- <tr>
- <?lsmb END?>
- <td>
- <input type="checkbox" name="<?lsmb loop.index?>" value="1"
- <?lsmb FOREACH rolname IN user.roles ?>
- <?lsmb IF role == rolname?>
- checked
- <?lsmb END?>
- <?lsmb END?> />
- <?lsmb role?>
- </td>
- <?lsmb END?>
- </tr>
- </table>
-
- <table>
- <tr>
- <td><button value="new_user">Submit</button></td>
- <td><button name="method" value="cancel">Cancel</td>
- </tr>
- </table>
- <?lsmb END?>
+ <table>
+ <tr>
+ <td><button value="groups">Save Groups</button></td>
+ <td><button name="method" value="cancel">Cancel</td>
+ </tr>
+ </table>
+ </form>
+<?lsmb END?>
</div>