Use a link rather than a button for "post comments"
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 15 Nov 2008 14:08:31 +0000 (14:08 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:01 +0000 (21:14 +0000)
templates/smcvpostcomment_embed.tmpl

index 2db055d515956904be5b2a6dbdc1459ec81558e5..c1826638b1fb0d0b4a026ed83dd25418dbd11107 100644 (file)
@@ -1,11 +1,7 @@
-<form action="<TMPL_VAR CGIURL>" method="get">
-<div class="smcvpostcommentembed">
-<input type="hidden" name="do" value="smcvpostcomment" />
-<input type="hidden" name="page" value="<TMPL_VAR PAGE>" />
-<input type="submit" name="submit" value="Post a comment"
-  <TMPL_IF NAME=DISABLED>disabled="disabled"</TMPL_IF> />
+<div>
 <TMPL_IF NAME=DISABLED>
-<label for="submit">(<TMPL_VAR NAME=DISABLED>)</label>
+Posting comments disabled: <TMPL_VAR NAME=DISABLED>
+<TMPL_ELSE>
+<a href="<TMPL_VAR CGIURL ESCAPE=HTML>?do=smcvpostcomment&amp;page=<TMPL_VAR PAGE ESCAPE=URL>">Post a comment</a>
 </TMPL_IF>
 </div>
-</form>