From 2c757d7db4cb6a7b9655de13206fcc84fb7ce61f Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 14 May 2006 16:47:31 +0000 Subject: first part of ACL and re-skinning work and some other small stuff --- httemplate/edit/access_user.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 httemplate/edit/access_user.html (limited to 'httemplate/edit/access_user.html') diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html new file mode 100644 index 000000000..2b19dbf7b --- /dev/null +++ b/httemplate/edit/access_user.html @@ -0,0 +1,37 @@ +<%= include( 'elements/edit.html', + 'name' => 'Internal User', + 'table' => 'access_user', + 'fields' => [ + 'username', + { field=>'_password', type=>'password' }, + 'last', + 'first', + ], + 'labels' => { + 'usernum' => 'User number', + 'username' => 'Username', + '_password' => 'Password', + 'last' => 'Last name', + 'first' => 'First name', + }, + 'viewall_dir' => 'browse', + 'html_bottom' => + sub { + my $access_user = shift; + + '
Internal Access Groups
'. + ntable("#cccccc",2). + ''. + include( '/elements/checkboxes-table.html', + 'source_obj' => $access_user, + 'link_table' => 'access_usergroup', + 'target_table' => 'access_group', + 'name_col' => 'groupname', + 'target_link' => $p.'edit/access_group.html?', + #'disable-able' => 1, + ). + '' + ; + }, + ) +%> -- cgit v1.2.1 From 7aae40398f1c8ed42424f1694640c9796a580d22 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 7 Aug 2006 02:44:29 +0000 Subject: add internal user disable-ing --- httemplate/edit/access_user.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'httemplate/edit/access_user.html') diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index 2b19dbf7b..fb2a97196 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -6,6 +6,7 @@ { field=>'_password', type=>'password' }, 'last', 'first', + { field=>'disabled', type=>'checkbox', value=>'Y' }, ], 'labels' => { 'usernum' => 'User number', @@ -13,6 +14,7 @@ '_password' => 'Password', 'last' => 'Last name', 'first' => 'First name', + 'disabled' => 'Disable employee', }, 'viewall_dir' => 'browse', 'html_bottom' => -- cgit v1.2.1 From 3ce7691203a7737406bf2d4442f7fd84b81f847e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 23 Aug 2006 22:25:39 +0000 Subject: Will things ever be the same again? It's the final masonize --- httemplate/edit/access_user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/edit/access_user.html') diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index fb2a97196..df580a20d 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -1,4 +1,4 @@ -<%= include( 'elements/edit.html', +<% include( 'elements/edit.html', 'name' => 'Internal User', 'table' => 'access_user', 'fields' => [ -- cgit v1.2.1 From eab5690e7cd970706f709ac0ef4f1c3e317fcd7d Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 17 Jan 2007 00:40:57 +0000 Subject: employee edit (ticket 1412) --- httemplate/edit/access_user.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/edit/access_user.html') diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index df580a20d..a8cb341e6 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -4,6 +4,7 @@ 'fields' => [ 'username', { field=>'_password', type=>'password' }, + { field=>'_password2', type=>'password' }, 'last', 'first', { field=>'disabled', type=>'checkbox', value=>'Y' }, @@ -12,10 +13,14 @@ 'usernum' => 'User number', 'username' => 'Username', '_password' => 'Password', + '_password2'=> 'Re-enter Password', 'last' => 'Last name', 'first' => 'First name', 'disabled' => 'Disable employee', }, + 'edit_callback' => sub { my( $c, $o ) = @_; + $o->set('_password2', $o->_password); + }, 'viewall_dir' => 'browse', 'html_bottom' => sub { -- cgit v1.2.1 From a54aa62df5076e113134e06e11ba9776c3e60a36 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 19 Jan 2007 16:31:21 +0000 Subject: no password in html source on employee edit --- httemplate/edit/access_user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/edit/access_user.html') diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index a8cb341e6..065e60c4b 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -19,7 +19,7 @@ 'disabled' => 'Disable employee', }, 'edit_callback' => sub { my( $c, $o ) = @_; - $o->set('_password2', $o->_password); + $o->set('_password', ''); }, 'viewall_dir' => 'browse', 'html_bottom' => -- cgit v1.2.1