summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/address/config/generator.yml
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/address/config/generator.yml
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/address/config/generator.yml')
-rw-r--r--apps/admin/modules/address/config/generator.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/apps/admin/modules/address/config/generator.yml b/apps/admin/modules/address/config/generator.yml
new file mode 100644
index 0000000..2bd2e44
--- /dev/null
+++ b/apps/admin/modules/address/config/generator.yml
@@ -0,0 +1,48 @@
+generator:
+ class: sfPropelAdminGenerator
+ param:
+ model_class: Address
+ theme: mailadmin
+
+ fields:
+ destination: { name: Destination }
+ mailbox_id: { name: Mailbox }
+ active: { name: Active }
+
+ list:
+ peer_method: doSelectJoinAll
+ title: List of Addresses
+ display: [=_localpart, _domain_id, _destination, active, _mailbox_id]
+ filters: [alias, domain_id, active, mailbox_id, destination]
+ max_per_page: '$this->getUser()->getResultsPerPage("pager")'
+ sort: [mailbox_id, asc]
+ fields:
+ localpart: { name: Address, params: align=right }
+ domain_id: { params: align=left }
+ alias: { params: align=left }
+ destination: { params: align=left }
+ active: { params: align=center width=1% }
+ mailbox_id: { params: align=right }
+ object_actions:
+ edit: { name: Edit Address, action: edit, icon: edit.gif }
+ delete: { name: Delete Address, action: delete, icon: trash.gif, params: confirm=Are you sure? }
+ actions: {}
+
+ create:
+ title: Create New Address
+
+ edit:
+ title: 'Editing Address %%alias%%'
+ display:
+ 'Address': [_alias, active, mailbox_id]
+ 'Destination': [save_in_mailbox, destination]
+ fields:
+ mailbox_id: { name: For Mailbox, help: 'The primary mailbox for this address' }
+ alias: { name: Address, help: 'Leave blank if this is a catch all address' }
+ save_in_mailbox: { name: Save to Mailbox, type: checkbox_tag, help: 'Incoming messages are saved, then forwarded' }
+ destination: { name: Forward to these Destinations, params: size=51x8, help: 'E-Mail addresses and/or mailbox names, one per line or comma-seperated' }
+ active: { name: Active, help: Inactive addresses are not routed }
+ actions:
+ _save_and_list: { name: Save }
+ _save_and_add: { name: 'Save, then create new one' }
+ _list: { name: Cancel }