aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/content_write.html159
1 files changed, 152 insertions, 7 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/content_write.html b/ratatoeskr/templates/src/systemtemplates/content_write.html
index 962f116..81a4d9b 100644
--- a/ratatoeskr/templates/src/systemtemplates/content_write.html
+++ b/ratatoeskr/templates/src/systemtemplates/content_write.html
@@ -1,20 +1,165 @@
<ste:load name="master.html" />
+<ste:comment>Create textprocessor options. The default will be tags content.</ste:comment>
+<ste:mktag name="textprocessor_options">
+ <ste:set var="txtproc_default"><ste:tagcontent /></ste:set>
+ <ste:foreach array="textprocessors" value="txtproc">
+ <option value="<ste:escape>$txtproc</ste:escape>"?{~{$txtproc|eq|$txtproc_default}| selected="selected"|}><ste:escape>$txtproc</ste:escape></option>
+ </ste:foreach>
+</ste:mktag>
<ste:block name="content">
- <form action="$rel_path_to_root/content/write?{$article_editurl|/$article_editurl|}" method="POST" accept_charset="utf-8" class="fullwidthinputs">
+ <form action="$rel_path_to_root/backend/content/write/$article_editurl" method="POST" accept_charset="utf-8">
+ <ste:if>$failed
+ <ste:then>
+ <div class="error">
+ <p><strong><ste:get_translation for="article_edit_error" /></strong></p>
+ <ul>
+ <ste:foreach array="failed" value="v"><li>$v</li></ste:foreach>
+ </ul>
+ </div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$success
+ <ste:then>
+ <div class="success">$success</div>
+ </ste:then>
+ </ste:if>
<div class="triplecolumns">
<div class="column_left">
<h2>Markdown Cheat Sheet</h2>
+
+ <h3>Emphasis / Strong</h3>
+ <p>
+ <code>*<em>emphasis</em>*</code><br />
+ <code>_<em>emphasis</em>_</code><br />
+ <code>**<strong>strong</strong>**</code><br />
+ <code>__<strong>strong</strong>__</code>
+ </p>
+
+ <h3>Paragraphs and manual line breaks.</h3>
+ <p>
+ <code>First Paragraph<br />
+<br />
+Second Paragraph with<br />
+long<br />
+text<br />
+<br />
+To enforce a line break&nbsp;&nbsp;<br />
+end a line with two whitespaces.</code>
+ </p>
+
+ <h3>Headers</h3>
+ <p>
+ <code>Header 1<br />
+========<br />
+<br />
+Header 2<br />
+--------<br />
+<br />
+# Header 1<br />
+<br />
+## Header 2<br />
+<br />
+...<br />
+<br />
+###### Header 6<br /></code>
+ </p>
+
+ <h3>Linking</h3>
+ <p>
+ <code>[Linktext](http://url/to/resource "Optional title")</code>
+ </p>
+ <p>
+ <code>[Linktext][id]. Somewhere else:<br />
+&nbsp;<br />
+ [id]: http://url/to/resource "Optional title"</code>
+ </p>
+
+ <h3>Images</h3>
+ <p>
+ <code>![alt text](/path/to/image "Optional title")</code>
+ </p>
+
+ <h3>Ordered / Unordered Lists</h3>
+ <p>
+ <code>* Item A<br />
+* Item B<br />
+&nbsp;&nbsp;<br />
+&nbsp;&nbsp;With a second paragraph.<br />
+&nbsp;<br />
+* Item C<br />
+&nbsp;&nbsp;* Item C1<br />
+&nbsp;&nbsp;* Item C2<br /></code>
+ </p>
+ <p>
+ <code>1. First element<br />
+2. Second Element
+</code>
+ </p>
+
+ <h3>Learn More</h3>
+ <p>
+ <a href="http://daringfireball.net/projects/markdown/syntax">Complete Syntax</a><br />
+ <a href="http://daringfireball.net/projects/markdown/dingus">Test Markdown</a>
+ </p>
</div>
+
<div class="column_right">
- <h2>Settings / Metadata</h2>
+ <h2><ste:get_translation for="settings_meta" /></h2>
- <p>Unique URL Title: <input type="text" name="urltitle" value="<ste:escape>$urltitle</ste:escape>" /></p>
- <p></p>
+ <p><ste:get_translation for="urlname" />: <input type="text" name="urlname" value="<ste:escape>$urlname</ste:escape>" class="fullwidth" /></p>
+ <p>
+ <ste:get_translation for="article_section" />:
+ <select name="section" class="fullwidth">
+ <ste:foreach array="sections" value="section_name">
+ <option name="<ste:escape>$section_name</ste:escape>"?{~{$section_name|eq|$article_section}| selected="selected"|}><ste:escape>$section_name</ste:escape></option>
+ </ste:foreach>
+ </select>
+ </p>
+ <p><ste:get_translation for="tags_cs" />: <input type="text" name="tags" value="<ste:escape>$tags</ste:escape>" class="fullwidth" /></p>
+ <p><ste:get_translation for="date_time" />:<br />(YYYY-MM-DD HH:MM:SS) <input type="text" name="date"?{$date| value="<ste:date timestamp='$date'>%Y-%m-%d %H:%M:%S</ste:date>"|} class="fullwidth" /></p>
+ <p>
+ <ste:get_translation for="article_status" />:
+ <ste:set var="article_status">?{$article_status|$article_status|1}</ste:set>
+ <select name="article_status" class="fullwidth">
+ <option value="0"?{~{$article_status|eq|0}| selected="selected"|}><ste:get_translation for="article_status_hidden" /></option>
+ <option value="1"?{~{$article_status|eq|1}| selected="selected"|}><ste:get_translation for="article_status_live" /></option>
+ <option value="2"?{~{$article_status|eq|2}| selected="selected"|}><ste:get_translation for="article_status_sticky" /></option>
+ </select>
+ </p>
+ <p><ste:get_translation for="allow_comments" />: <input type="checkbox" name="allow_comments" value="yes" ?{$allow_comments|checked="checked" |}/></p>
</div>
+
<div class="column_main">
- <p><ste:get_translation for="articleedit_title" />: <input type="text" name="title" value="<ste:escape>$title</ste:escape>" /></p>
- <p><ste:get_translation for="articleedit_content" />: <textarea name="content" cols="80" rows="20"><ste:escape>$content</ste:escape></textarea></p>
- <p><ste:get_translation for="articleedit_excerpt" />: <textarea name="excerpt" cols="80" rows="10"><ste:escape>$excerpt</ste:escape></textarea></p>
+ <ste:if>$morelangs
+ <ste:then>
+ <h2><ste:get_translation for="article_other_languages" /></h2>
+ <p>
+ <ste:foreach array="morelangs" value="lang" counter="i">
+ ?{~{$i|eq|0}|| - }<a href="$rel_path_to_root/backend/content/write/$lang[url]"><ste:escape>$lang[full]</ste:escape></a>
+ </ste:foreach>
+ </p>
+ </ste:then></ste:if>
+ <p>
+ <ste:get_translation for="articleedit_title" />:
+ <input type="text" name="title" value="<ste:escape>$title</ste:escape>" class="fullwidth" />
+ </p>
+ <p>
+ <ste:get_translation for="articleedit_content" />: <select name="content_txtproc"><ste:textprocessor_options>$content_txtproc</ste:textprocessor_options></select>
+ <textarea name="content" cols="80" rows="20" class="fullwidth"><ste:escape>$content</ste:escape></textarea>
+ </p>
+ <p>
+ <ste:get_translation for="articleedit_excerpt" />: <select name="excerpt_txtproc"><ste:textprocessor_options>$excerpt_txtproc</ste:textprocessor_options></select>
+ <textarea name="excerpt" cols="80" rows="10" class="fullwidth"><ste:escape>$excerpt</ste:escape></textarea>
+ </p>
+ <p style="text-align: center;">
+ <ste:get_translation for="save_texts_as_lang" />: <select name="saveaslang">
+ <ste:set var="default_langsel">?{$editlang|$editlang|$user[lang]}</ste:set>
+ <ste:foreach array="all_languages" key="code" value="name">
+ <option value="$code"?{~{$default_langsel|eq|$code}| selected="selected"|}>($code) $name</option>
+ </ste:foreach>
+ </select><br />
+ <input type="submit" name="save_article" />
+ </p>
</div>
</div>
<div class="triplecolumns_stop"></div>