| 1 | <!DOCTYPE html |
|---|
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 5 | xmlns:xi="http://www.w3.org/2001/XInclude" |
|---|
| 6 | xmlns:py="http://genshi.edgewall.org/"> |
|---|
| 7 | <xi:include href="layout.html" /> |
|---|
| 8 | |
|---|
| 9 | <head> |
|---|
| 10 | <title>New Page</title> |
|---|
| 11 | </head> |
|---|
| 12 | |
|---|
| 13 | <body> |
|---|
| 14 | <div id="content" class="wiki"> |
|---|
| 15 | <div class="wikipage"></div> |
|---|
| 16 | <div class="buttons" py:if="'WIKI_CREATE' in perm" > |
|---|
| 17 | <form method="get" action="${href.wiki(page and page.name or '')}"> |
|---|
| 18 | <div> |
|---|
| 19 | <input type="hidden" name="action" value="edit" /> |
|---|
| 20 | <!-- !Tags are always hidden if passed here --> |
|---|
| 21 | <input type="hidden" name="tags" value="$tags" /> |
|---|
| 22 | |
|---|
| 23 | <!--! If page_name was passed display the warning message and use a hidden field --> |
|---|
| 24 | <py:choose test=""> |
|---|
| 25 | <py:when test="version == None"> |
|---|
| 26 | <h2>Page does not exist</h2> |
|---|
| 27 | <p>The wiki page <span style="font-weight: bold">${page.name}</span> was not found. Do you want to create it?</p> |
|---|
| 28 | <input type="hidden" name="page" value="${page.name}" /><br/> |
|---|
| 29 | </py:when> |
|---|
| 30 | <py:otherwise> |
|---|
| 31 | <!-- ! If page_name was not passed display an entry box --> |
|---|
| 32 | <h2>Create new Wiki page</h2> |
|---|
| 33 | Name: <input type="text" name="page" value="" /><br/> |
|---|
| 34 | </py:otherwise> |
|---|
| 35 | </py:choose> |
|---|
| 36 | |
|---|
| 37 | <!-- ! Show the template options --> |
|---|
| 38 | <py:if test="len(template_page_list)>0"> |
|---|
| 39 | Use <select name="wikitemplate"> |
|---|
| 40 | <option value="">-- Blank Page --</option> |
|---|
| 41 | <py:for each="template_page_name in template_page_list"> |
|---|
| 42 | <option selected="${wikitemplate == template_page_name or None}">$template_page_name</option> |
|---|
| 43 | </py:for> |
|---|
| 44 | </select> as the template.<br /> |
|---|
| 45 | </py:if> |
|---|
| 46 | |
|---|
| 47 | <input type="submit" value="Create new page" /> |
|---|
| 48 | |
|---|
| 49 | </div></form> |
|---|
| 50 | </div> |
|---|
| 51 | </div> |
|---|
| 52 | |
|---|
| 53 | </body> |
|---|
| 54 | </html> |
|---|