You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/templates
Christian Boltz d39a802d00 AliasHandler now works with edit.php in many cases
(TODO: catchall handling, mailbox and vacation aliases)

AliasHandler.php
- drop unused $username
- set $domain_field
- initStruct():
  - use correct labels
  - set 'domain' field options to allowed domains
  - add (virtual) 'localpart' field
  - add comments for more virtual fields
- add webformConfig() (note: modifies $struct on $new - otherwise we 
  couldn't use the domain dropdown in the web interface)
- add mergeId to merge localpart and domain to address (called by 
  edit.php _before_ ->init)
- add validate_new_id() (doesn't work for catchall yet)
- add setmore() to 
  - fill 'domain' based on 'address'
  - convert $values[goto] from array to comma-separated string
- add read_from_db_postprocess to split goto to an array
  (TODO: handling of mailbox and vacation aliases)
- add _field_goto() validator
- add empty, commented dummy delete() that will replace the "old" 
  delete function one day
- make hasAliasRecord() private (only used internally)
- mark all "old" functions as obsolete

edit.php:
- add handling of txtl field (convert textarea to array)
- call $handler->mergeId if $id_field is editable, but not displayed 
  in form (usecase: merge localpart + domain to address)

editform.tpl:
- add handling of txtl fields (textarea, filled by array)

PFAHandler.php:
- add setmore() hook function - runs at the end of set()

AdminHandler.php:
- add a comment for 'txtl' (array of one line texts, like alias goto)




git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1311 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
..
adminlistadmin.tpl adminlistadmin.tpl: 14 years ago
adminlistdomain.tpl adminlistdomain.tpl: 14 years ago
broadcast-message.tpl sendmail.php, broadcast-message.php: 15 years ago
create-alias-domain.tpl templates/create-alias-domain.tpl: 14 years ago
edit-alias.tpl Merge edit-alias.tpl and create-alias.tpl 15 years ago
edit-mailbox.tpl Merge edit-mailbox.tpl and edit-mailbox.tpl: 15 years ago
editform.tpl AliasHandler now works with edit.php in many cases 14 years ago
fetchmail.tpl fetchmail.tpl: 15 years ago
flash_error.tpl use isset to check existance of a variable 14 years ago
footer.tpl fix undefined var check before login - sessid is not set etc 14 years ago
header.php - accidentially deleted header.php. Needed for setup 16 years ago
header.tpl config.inc.php: 15 years ago
index.tpl Replaced motd*.txt with $CONF[motd_*] options 15 years ago
list-virtual.tpl list-virtual.tpl: 15 years ago
list-virtual_alias.tpl list-virtual_alias.tpl: fix editing of aliases with $CONF[special_alias_control] == NO 15 years ago
list-virtual_alias_domain.tpl list-virtual_alias_domain.tpl: 14 years ago
list-virtual_mailbox.tpl vacation.php: 15 years ago
login.tpl Merge template for admin login and user login 15 years ago
main.tpl - fix templates to honour $CONF['sendmail'] and $CONF['fetchmail'] settings 16 years ago
menu.tpl Use edit.php to create/edit domains 14 years ago
message.tpl message.tpl: 15 years ago
overview-get.tpl overview-get.tpl, viewlog.tpl: 15 years ago
password.tpl password.tpl: 15 years ago
sendmail.tpl sendmail.php, broadcast-message.php: 15 years ago
users_edit-alias.tpl users_edit-alias.tpl, users_password.tpl, users_vacation.tpl: 15 years ago
users_main.tpl users_main.tpl: 15 years ago
users_menu.tpl Replaced motd*.txt with $CONF[motd_*] options 15 years ago
vacation.tpl Merge users/vacation.php and edit-vacation.php into vacation.php 15 years ago
viewlog.tpl overview-get.tpl, viewlog.tpl: 15 years ago