Difference between revisions of "Template:ExampleContact"
From Organic Design wiki
m |
|||
Line 1: | Line 1: | ||
<div id=contact-form> | <div id=contact-form> | ||
{{#form:method=post|style=width:400px| | {{#form:method=post|style=width:400px| | ||
− | '''Name:''' {{#input:type=select | + | '''Name:''' {{#input:type=select|name=title|*{{{name|Select name}}} |
+ | {{#dpl:notcategory=Examples|uses=Template:ExampleContact|format=,\n*%TITLE%,,}}}} | ||
+ | {{#if:{{{name|}}}|<small>[{{fullurl:{{{name}}}|action=edit}} (edit {{{name}}} article)]</small>}}<br> | ||
<br> | <br> | ||
− | '''Phone:''' {{#input:name= | + | '''Phone:''' {{#input:name=phone|value={{{phone}}}}} |
<br> | <br> | ||
'''Address:'''<br> | '''Address:'''<br> | ||
− | {{#input:type=textarea|style=width:350px | + | {{#input:type=textarea|style=width:350px|name=address|{{{address}}}}}<br> |
{{#input:type=ajax|value=Load|update=contact-form}} | {{#input:type=ajax|value=Load|update=contact-form}} | ||
{{#input:type=ajax|template=ExampleContact|value=Save|update=contact-form}} | {{#input:type=ajax|template=ExampleContact|value=Save|update=contact-form}} | ||
− | {{#input:type=hidden|name= | + | {{#input:type=hidden|name=content}} |
}} | }} | ||
</div> | </div> |
Revision as of 11:14, 15 September 2007
{{#form:method=post|style=width:400px| Name: {{#input:type=select|name=title|*Select name
- John Doe
- Ping Li
- Hans Berg}}
Phone: {{#input:name=phone|value={{{phone}}}}}
Address:
{{#input:type=textarea|style=width:350px|name=address|{{{address}}}}}
{{#input:type=ajax|value=Load|update=contact-form}}
{{#input:type=ajax|template=ExampleContact|value=Save|update=contact-form}}
{{#input:type=hidden|name=content}}
}}