aboutsummaryrefslogtreecommitdiff
path: root/templates/editpage.tmpl
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-17 05:34:59 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-17 05:34:59 +0000
commitce7596dad9c841fee92a84579be0261d3ef26407 (patch)
treeaf7e9bc1c5d54258cbc398998fb456e199ec4708 /templates/editpage.tmpl
parentceae681a438a044778df212642d5f174d8bbc182 (diff)
downloadikiwiki-ce7596dad9c841fee92a84579be0261d3ef26407.tar
ikiwiki-ce7596dad9c841fee92a84579be0261d3ef26407.tar.gz
* Applied Jeremie Koenig's pluggable editpage buttons patch:
- add a title to the editpage form; - pass a reference to the list of buttons to the formbuilder_setup hooks, so we can add ours; - relax asumption about the possible submit values (use "Save Page" explicitly); - de-hardcode the submit buttons from the editpage template (This was needed for compatability with a bug in CGI::FormBuilder 3.0401, but ikiwiki already needs a newer version.) * Pass buttons to all other formbuilder_setup hooks too.
Diffstat (limited to 'templates/editpage.tmpl')
-rw-r--r--templates/editpage.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl
index 18e00849b..cf4950ead 100644
--- a/templates/editpage.tmpl
+++ b/templates/editpage.tmpl
@@ -57,9 +57,7 @@ Page type: <TMPL_VAR FIELD-TYPE>
Optional comment about this change:<br />
<TMPL_VAR FIELD-COMMENTS><br />
</TMPL_IF>
-<input id="_submit" name="_submit" type="submit" value="Save Page" />
-<input id="_submit_2" name="_submit" type="submit" value="Preview" />
-<input id="_submit_3" name="_submit" type="submit" value="Cancel" />
+<TMPL_VAR FORM-SUBMIT>
<TMPL_VAR HELPONFORMATTINGLINK>
<TMPL_VAR FORM-END>