summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/mailbox/config
diff options
context:
space:
mode:
authorGravatar mszulecki2007-06-14 17:09:01 +0000
committerGravatar mszulecki2007-06-14 17:09:01 +0000
commit9f108dd1a969473375341d92a7b1252fa2cedc9a (patch)
treed5f2e35ec0bd2d52dab0ee3282fc6751e0fa8dba /apps/admin/modules/mailbox/config
parente35884d11b81e4e4bbd73e1882e2b8011e85d118 (diff)
downloadmailadmin-9f108dd1a969473375341d92a7b1252fa2cedc9a.tar.gz
mailadmin-9f108dd1a969473375341d92a7b1252fa2cedc9a.tar.bz2
Initial import.
git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
Diffstat (limited to 'apps/admin/modules/mailbox/config')
-rw-r--r--apps/admin/modules/mailbox/config/generator.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/apps/admin/modules/mailbox/config/generator.yml b/apps/admin/modules/mailbox/config/generator.yml
new file mode 100644
index 0000000..9c119ea
--- /dev/null
+++ b/apps/admin/modules/mailbox/config/generator.yml
@@ -0,0 +1,56 @@
+generator:
+ class: sfPropelAdminGenerator
+ param:
+ model_class: Mailbox
+ theme: mailadmin
+
+ fields:
+ domain: { name: Domain }
+ domain_id: { name: Domain }
+ name { name: Username }
+ max_quota: { name: Quota }
+ max_address_count: { name: Maximum Addresses }
+ last_login: { name: Last Login }
+
+ list:
+ peer_method: doSelectJoinDomain
+ title: List of Mailboxes
+ display: [=name, _domain_id, _max_quota, _max_address_count, active, _last_login]
+ filters: [name, domain_id, max_quota, max_address_count, active, last_login]
+ max_per_page: '$this->getUser()->getResultsPerPage("pager")'
+ sort: [domain_id, asc]
+ fields:
+ name: { params: align=right }
+ domain_id: { params: align=left }
+ max_quota: { params: align=right }
+ max_address_count: { params: align=right }
+ active: { params: align=center width=1% }
+ last_login: { params: align=right }
+ object_actions:
+ viewaddresses: { name: View Addresses, action: viewAddresses, icon: address.gif }
+ createaddress: { name: Create New Address, action: createAddress, icon: address-new.gif }
+ edit: { name: Edit Mailbox, action: edit, icon: edit.gif }
+ delete: { name: Delete Mailbox, action: delete, icon: trash.gif, params: confirm=This will also remove all addresses for this mailbox. Are you sure? }
+ actions: {}
+
+ create:
+ title: Create New Mailbox
+
+ edit:
+ title: Editing Mailbox %%name%%
+ display:
+ 'General Settings': [name, _password, _new_password, domain_id, active]
+ 'Limits': [max_quota, max_address_count]
+ fields:
+ name: { name: Username, params: size=50 }
+ password: { name: Password, params: size=50, only_for: create }
+ new_password: { name: New Password, help: 'Enter a password to change it, leave the field blank to keep the current one', params: size=50, only_for: edit }
+ domain_id: { name: For Domain }
+ active: { name: Enable Login, help: 'Inactive mailboxes receive mail, however users are unable to login' }
+ max_quota: { name: Maximum Storage Space in kb, help: '0 = No Limit', params: size=50 }
+ max_address_count: { name: Maximum Number of Addresses, help: '0 = No Limit', params: size=50 }
+ actions:
+ _save_and_list: { name: Save }
+ _save_and_add: { name: 'Save, then create new one' }
+ _list: { name: Cancel }
+