Difference between revisions of "Workshop2010:registrationform"
From Gaia Science Alerts Working Group
Jump to navigationJump to searchLine 3: | Line 3: | ||
{{#form:method=post}} | {{#form:method=post}} | ||
− | + | Title: {{#input:type=text|name=dr}} | |
+ | Name: {{#input:type=text|name=name}} | ||
+ | Affiliation: {{#input:type=text|name=affiliation}} | ||
+ | Address: {{#input:type=textarea|rows=3}} | ||
{{#input:type=select|name=contribution| | {{#input:type=select|name=contribution| | ||
Line 10: | Line 13: | ||
*three | *three | ||
}} | }} | ||
+ | |||
+ | {{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick= | ||
+ | var summary='comment posted by '+document.getElementById('blogName').value; | ||
+ | document.getElementById('blogContent').setAttribute('value', | ||
+ | '\n==='+document.getElementById('blogTitle').value+'===\n'+document.getElementById('blogBody').value+'\n:<i>'+summary+'</i>\n'); | ||
+ | document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}} | ||
{{#formend:}} | {{#formend:}} |
Revision as of 12:44, 27 February 2010
Please do not fill the form yet as it is not working yet!
{{#form:method=post}} Title: {{#input:type=text|name=dr}} Name: {{#input:type=text|name=name}} Affiliation: {{#input:type=text|name=affiliation}} Address: {{#input:type=textarea|rows=3}}
{{#input:type=select|name=contribution|
- one
- two
- three
}}
{{#input:type=ajax|value=Post comment|update=wgBlogComments|onClick= var summary='comment posted by '+document.getElementById('blogName').value; document.getElementById('blogContent').setAttribute('value', '\n==='+document.getElementById('blogTitle').value+'===\n'+document.getElementById('blogBody').value+'\n:'+summary+'\n'); document.getElementById('blogSummary').setAttribute('value','Blog '+summary);}}
{{#formend:}}