1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }
|