]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - templates/editpage.tmpl
* Detect the case of two people independently creating the same page at the
[git.ikiwiki.info.git] / templates / editpage.tmpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html>
4 <head>
5 <base href="<TMPL_VAR BASEURL>" />
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <title><TMPL_VAR FORM-TITLE></title>
8 <link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />
9 <link rel="stylesheet" href="<TMPL_VAR BASEURL>local.css" type="text/css" />
10 <TMPL_IF NAME="FAVICON">
11 <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" />
12 </TMPL_IF>
13 </head>
14 <body>
15 <TMPL_IF NAME="PAGE_CONFLICT">
16 <p>
17 <b>Your changes conflict with other changes made to the page.</b>
18 </p>
19 <p>
20 Conflict markers have been inserted into the page content. Reconcile the
21 conflict and commit again to save your changes.
22 </p>
23 </TMPL_IF>
24 <TMPL_IF NAME="FAILED_SAVE">
25 <p>
26 <b>Failed to save your changes.</b>
27 </p>
28 <p>
29 Your changes were not able to be saved to disk. The system gave the error:
30 <blockquote>
31 <TMPL_VAR ERROR_MESSAGE>
32 </blockquote>
33 Your changes are preserved below, and you can try again to save them.
34 </p>
35 </TMPL_IF>
36 <TMPL_IF NAME="PAGE_GONE">
37 <p>
38 <b>The page you were editing has disappeared.</b>
39 </p>
40 <p>
41 Perhaps someone else has deleted it or moved it. If you want to recreate
42 this page with your text, click "Save Page" again.
43 </p>
44 </TMPL_IF>
45 <TMPL_IF NAME="CREATION_CONFLICT">
46 <p>
47 <b>While you were creating this page, someone else independently created a page
48 with the same name.</b>
49 </p>
50 <p>
51 The edit box below contains the page's current content, followed by the 
52 content you entered previously, to allow you to merge the two contents
53 together before saving.
54 </p>
55 </TMPL_IF>
56 <TMPL_VAR FORM-START>
57 <div class="header">
58 <span><TMPL_VAR INDEXLINK>/ <TMPL_VAR FORM-TITLE></span>
59 </div>
60 <TMPL_VAR FIELD-DO>
61 <TMPL_VAR FIELD-FROM>
62 <TMPL_VAR FIELD-RCSINFO>
63 <TMPL_VAR FIELD-NEWFILE>
64 <TMPL_IF NAME="PAGE_SELECT">
65 Page location: <TMPL_VAR FIELD-PAGE>
66 Page type: <TMPL_VAR FIELD-TYPE>
67 <TMPL_ELSE>
68 <br />
69 <TMPL_VAR FIELD-PAGE>
70 <TMPL_VAR FIELD-TYPE>
71 </TMPL_IF>
72 <TMPL_VAR FIELD-EDITCONTENT><br />
73 <TMPL_IF NAME="CAN_COMMIT">
74 Optional comment about this change:<br />
75 <TMPL_VAR FIELD-COMMENTS><br />
76 </TMPL_IF>
77 <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" />
78 <TMPL_VAR HELPONFORMATTINGLINK>
79 <TMPL_VAR FORM-END>
80 <TMPL_IF NAME="PAGE_PREVIEW">
81 <hr />
82 <div class="header">
83 <span>Page preview:</span>
84 </div>
85 <div id="content">
86 <TMPL_VAR PAGE_PREVIEW>
87 </div>
88 </TMPL_IF>
89 </body>
90 </html>