summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/user/config
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin/modules/user/config')
-rw-r--r--apps/admin/modules/user/config/generator.yml55
-rw-r--r--apps/admin/modules/user/config/security.yml13
2 files changed, 68 insertions, 0 deletions
diff --git a/apps/admin/modules/user/config/generator.yml b/apps/admin/modules/user/config/generator.yml
new file mode 100644
index 0000000..4764f5b
--- /dev/null
+++ b/apps/admin/modules/user/config/generator.yml
@@ -0,0 +1,55 @@
+generator:
+ class: sfPropelAdminGenerator
+ param:
+ model_class: User
+ theme: mailadmin
+
+ fields:
+ nickname: { name: Nickname }
+ full_name: { name: Name }
+ email: { name: E-Mail }
+ last_login: { name: Last Login }
+
+ list:
+ peer_method: doSelectJoinRole
+ title: List of Administrators
+ display: [=nickname, _role_id, _domain_permissions, full_name, email, _last_login]
+ filters: [nickname, role_id, email, parent_user_id, last_login, created_at]
+ max_per_page: '$this->getUser()->getResultsPerPage("pager")'
+ sort: [nickname, asc]
+ fields:
+ domain_permissions: { name: Associated Domains, params: align=left }
+ nickname: { params: align=left }
+ role_id: { params: align=left }
+ full_name: { params: align=left }
+ email: { params: align=left }
+ last_login: { params: align=right }
+ object_actions:
+ edit: { name: Edit, action: edit, icon: edit.gif }
+ delete: { name: Delete, action: delete, icon: trash.gif, params: confirm=Are you sure? }
+ actions: {}
+
+ create:
+ title: Create New Administrator
+
+ edit:
+ title: 'Editing Administrator %%nickname%%'
+ display:
+ 'General Settings': [nickname, first_name, last_name, email, parent_user_id]
+ 'Password Settings': [_password, _password2]
+ 'Permissions': [role_id, domain_permission]
+ fields:
+ domain_permission: { name: Assign Domains, type: admin_double_list, params: through_class=DomainPermission, help: Assign which domains the user is allowed to see (Ignored for superadmins) }
+ parent_user_id: { name: Parent User, only_for: edit }
+ nickname: { name: Nickname, params: size=50 }
+ first_name: { name: First Name, params: size=50 }
+ last_name: { name: Last Name, params: size=50 }
+ email: { name: E-Mail, params: size=50, help: Used for password requests or notifications }
+ role_id: { name: Role }
+ password: { name: Desired Password }
+ password2: { name: Re-Type New Password, only_for: edit, help: Leave blank if you do not want to change the password }
+ actions:
+ _save_and_list: { name: Save }
+ _save_and_add: { name: 'Save, then create new one' }
+ _list: { name: Cancel }
+
diff --git a/apps/admin/modules/user/config/security.yml b/apps/admin/modules/user/config/security.yml
new file mode 100644
index 0000000..dbe3ebb
--- /dev/null
+++ b/apps/admin/modules/user/config/security.yml
@@ -0,0 +1,13 @@
+settings:
+ is_secure: on
+ credentials: []
+
+login:
+ is_secure: off
+
+logout:
+ is_secure: off
+
+all:
+ is_secure: on
+ credentials: [superadmin]