Latest stable release of Dokuwiki, Bureaucracy, Data, PostMod etc.
1. The templates produce a number of fields that are often unpopulated in the form, I'd like to find a simple way to only output rows to the resulting page table that have useful data.
2. All the regexes test fine outside of Bureaucracy, but the ABN and ACN regexes don't work in the Bureaucracy form. (Not a critical problem).
Form<form>
Select "Client type" "Business|Individual"
Fieldset "Business Details" "Client type" "Business"
action template new"##Client type##clienttpl" "clients:@@Name@@"
Textbox "Name"
Textbox "Street Address"
Textbox "Suburb"
Select "State" "ACT|NSW|NT|SA|TAS|QLD|VIC|WA"
Textbox "Postcode" /^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$/
Email "Email"
Textbox "Telephone" /^[0-9 \/()+\-]+$/
yesno "Is there another telephone number?"
Fieldset "Another telephone number" "Is there another telephone number?"
Textbox "Another Telephone" /^[0-9 \/()+\-]+$/
Fieldset "Business Details" "Client type" "Business"
Textbox "ABN or ACN"
Textbox "Contact name"
Email "Contact email"
Textbox "Contact Telephone" /^[0-9 \/()+\-]+$/
Textbox "Contact Mobile Telephone" ! /^[0-9 \/()+\-]+$/
yesno "Are the billing details different?"
Fieldset "Billing Details" "Are the billing details different?"
Textbox "Billing Street Address"
Textbox "Billing Suburb"
Select "Billing State" "ACT|NSW|NT|SA|TAS|QLD|VIC|WA"
Textbox "Billing Postcode" /^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$/
Fieldset "Individual Details" "Client type" "Individual"
Textbox "Name"
Textbox "Street Address"
Textbox "Suburb"
Select "State" "ACT|NSW|NT|SA|TAS|QLD|VIC|WA"
Textbox "Postcode" /^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$/
Email "Email"
Textbox "Telephone" /^[0-9 \/()+\-]+$/
yesno "Is there another telephone number?"
Fieldset "Another telephone number" "Is there another telephone number?"
Textbox "Another Telephone" /^[0-9 \/()+\-]+$/
Fieldset "Additional"
Textbox "Website" !
Select "Payment preference" "Cash|Cheque|Credit card|Direct deposit|Account"
Textarea "Notes" !
Fieldset "Submit"
Submit "Create a new client record"
</form>
newbusinessclienttpl====== @@Name@@ ======
^Client type|@@ClientType@@|
^Address|@@Street Address@@, @@Suburb@@ @@State@@ @@Postcode@@|
^Email|[[@@Email@@]]|
^Telephone|@@Telephone@@|
^<tab>|@@Other Telephone|n/a@@|
^Payment method|@@Payment preference@@|
^Website|[[@@Website|n/a@@]]|
^ABN|@@ABN|n/a@@|
^ACN|@@ACN|n/a@@|
^Contact name|@@Contact name@@|
^Contact email|[[@@Contact email@@]]|
^Contact telephone|@@Contact telephone@@|
^<tab>|@@Contact Mobile Telephone|n/a@@|
^Billing Address|<nowiki>@@Billing Street Address| @@, @@Billing Suburb| @@ @@Billing State| @@ @@Billing Postcode| n/a@@</nowiki>|
^Notes|<nowiki>@@Notes| @@</nowiki>|
newnon-businessclienttpl====== @@Name@@ ======
^Client type|@@ClientType@@|
^Address|@@Street Address@@, @@Suburb@@ @@State@@ @@Postcode@@|
^Email|[[@@Email@@]]|
^Telephone|@@Telephone@@|
^<tab>|@@Other Telephone|n/a@@|
^Payment method|@@Payment preference@@|
^Website|[[@@Website|n/a@@]]|
^Notes|<nowiki>@@Notes| @@</nowiki>|