Difference between revisions of "PsyCrit:Add Response"
(updated template markers) |
(tweaks to w3tpl tag syntax - form now renders properly, but target list is empty) |
||
Line 1: | Line 1: | ||
<noinclude>[[category:data/forms]]</noinclude><hide> | <noinclude>[[category:data/forms]]</noinclude><hide> | ||
<let name=targReq arg=target /> get requested target, if any | <let name=targReq arg=target /> get requested target, if any | ||
</hide> | </hide> | ||
{| | {| | ||
<echo raw | <echo raw tag>form action="/Special:MakePage" target=newpage method=POST</echo> | ||
|- | |- | ||
| align=right | Target article: | | align=right | Target article: | ||
|< | |<echo tag>SELECT NAME=target</echo> | ||
< | <echo tag>option value</echo>Select a target...<echo tag>/option</echo> | ||
<let name=including val=1 /> | <let name=including val=1 /> | ||
<for table="qryW3_Titles_Catgs" where="(cl_to='Data/target') AND (page_title LIKE 'Targets/%')" sort="page_title DESC" name=pg hide> | <for table="qryW3_Titles_Catgs" where="(cl_to='Data/target') AND (page_title LIKE 'Targets/%')" sort="page_title DESC" name=pg hide> | ||
Line 25: | Line 19: | ||
<let name=opt_tag append> selected</let> | <let name=opt_tag append> selected</let> | ||
</if> | </if> | ||
<echo | <echo tag val=$opt_tag /><get name=keyname /> - <get name=title /><echo tag>/OPTION</echo> | ||
</for> | </for> | ||
< | <echo tag>/SELECT</echo> [<small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh]</small>] | ||
|- | |- | ||
| align=right | Title: || <echo | | align=right | Title: || <echo tag>input name=respTitle size=40</echo> | ||
|- | |- | ||
| align=right valign=top | Author attribution: || <echo raw now><input name=respAuth size=80></echo> | | align=right valign=top | Author attribution: || <echo raw now><input name=respAuth size=80></echo> | ||
* usually author's name and institutional affiliation | * usually author's name and institutional affiliation | ||
|- | |- | ||
| align=right | Date: || <echo | | align=right | Date: || <echo tag>input name=respDate size=10</echo> | ||
|- | |- | ||
| align=right valign=top | Short name: || <echo | | align=right valign=top | Short name: || <echo tag>input name=respRef size=20</echo> | ||
* usually author's last name; used for page title => <u>targetname</u>/<u>date</u> <u>short name</u> | * usually author's last name; used for page title => <u>targetname</u>/<u>date</u> <u>short name</u> | ||
* this is used for referencing the article; readers will see it | * this is used for referencing the article; readers will see it | ||
|- | |- | ||
| align=right valign=top | Headline: || <echo | | align=right valign=top | Headline: || <echo tag>input name=respHdln size=40</echo> | ||
|- | |- | ||
| colspan=2 | Snippet: <echo | | colspan=2 | Snippet: <echo tag>textarea name=respSnip rows=4</echo><echo tag>/textarea</echo> | ||
|} | |} | ||
<echo raw | <echo raw> | ||
<input type=hidden name=!TPLTPAGE value="project:templates/response"> | <input type=hidden name=!TPLTPAGE value="project:templates/response"> | ||
<input type=hidden name=!TITLETPLT value="Targets/[$target$]/[$respDate$] [$respRef$]"> | <input type=hidden name=!TITLETPLT value="Targets/[$target$]/[$respDate$] [$respRef$]"> | ||
<input type=submit value=Preview> <input type=reset value="-clear-"> | <input type=submit value=Preview> <input type=reset value="-clear-"> | ||
</form></echo> | </form></echo> |
Revision as of 10:43, 4 February 2018
Target article: | [refresh] |
Title: | |
Author attribution: |
|
Date: | |
Short name: |
|
Headline: | |
Snippet: |