diff options
Diffstat (limited to 'ratatoeskr/templates')
5 files changed, 139 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/areyousure.html b/ratatoeskr/templates/src/systemtemplates/areyousure.html new file mode 100644 index 0000000..7a5ef82 --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/areyousure.html @@ -0,0 +1,11 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <div class="pos_center"> + <h2><ste:escape>$question</ste:escape></h2> + ?{$moredetails|<p><ste:escape>$moredetails</ste:escape></p>|} + <form action="$callback" method="POST"> + <input type="submit" class="yes_btn" name="yes" value="<ste:escape>?{$yestext|$yestext|<ste:get_translation for='yestext_default' />}</ste:escape>" /> + <input type="submit" class="no_btn" name="no" value="<ste:escape>?{$notext|$notext|<ste:get_translation for='notext_default' />}</ste:escape>" /> + </form> + </div> +</ste:block> diff --git a/ratatoeskr/templates/src/systemtemplates/articles.html b/ratatoeskr/templates/src/systemtemplates/articles.html new file mode 100644 index 0000000..051f3ff --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/articles.html @@ -0,0 +1,44 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <div class="error">Example for errors</div> + <div class="notice">Example for notice</div> + <div class="success">Example for success</div> + + <table class="fullwidth listtab"> + <thead><tr> + <th> </th> + <th><ste:get_translation for="urlname" /></th> + <th><ste:get_translation for="available_languages" /></th> + <th><ste:get_translation for="date_time" /></th> + <th><ste:get_translation for="tags" /></th> + <th><ste:get_translation for="section" /></th> + </tr></thead> + <tbody> + <ste:if>$articles + <ste:then> + <ste:foreach array="articles" value="article"> + <tr> + <td><input type="checkbox" name="article_multiselect[]" value="$article[urlname]" /></td> + <td><a href="$rel_path_to_root/backend/content/write/$article[urlname]">$article[urlname]</a></td> + <td> + <ste:foreach array="article[languages]" value="lang" counter="i"> + ?{~{$i|eq|0}||, }<a href="$rel_path_to_root/backend/content/write/$article[urlname]/$lang">$lang</a> + </ste:foreach> + </td> + <td><ste:date timestamp="$article[date]">%Y-%m-%d %H:%M:%S</ste:date></td> + <td> + <ste:foreach array="article[tags]" value="tag" counter="i"> + ?{~{$i|eq|0}||, } <ste:escape>$tag</ste:escape> + </ste:foreach> + </td> + <td><a href="$rel_path_to_root/backend/design/sections/$article[section][id]"><ste:escape>$article[section][name]</ste:escape></a></td> + </tr> + </ste:foreach> + </ste:then> + <ste:else> + <tr><td colspan="6" style="text-align: center;"><em><ste:escape><ste:get_translation for="no_articles" /></ste:escape></em></td></tr> + </ste:else> + </ste:if> + </tbody> + </table> +</ste:block> diff --git a/ratatoeskr/templates/src/systemtemplates/tag_addtranslation.html b/ratatoeskr/templates/src/systemtemplates/tag_addtranslation.html new file mode 100644 index 0000000..b7dd466 --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/tag_addtranslation.html @@ -0,0 +1,22 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <ste:if>$errors + <ste:then> + <div class="error"> + <ul> + <ste:foreach array="errors" value="error"> + <li><ste:escape>$error</ste:escape></li> + </ste:foreach> + </ul> + </div> + </ste:then> + </ste:if> + + <form action="$rel_path_to_root/backend/content/tags/$tagname/addtranslation" method="POST" accept_charset="UTF-8"> + <select name="language"> + <ste:foreach array="all_languages" key="code" value="name"> + <option value="$code">($code) $name</option> + </ste:foreach> + </select>: <input type="text" name="translation" /> <input type="submit" name="addtranslation" /> + </form> +</ste:block> diff --git a/ratatoeskr/templates/src/systemtemplates/tag_deleted.html b/ratatoeskr/templates/src/systemtemplates/tag_deleted.html new file mode 100644 index 0000000..641b06c --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/tag_deleted.html @@ -0,0 +1,7 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <div class="success"> + <ste:escape><ste:get_translation for="tag_deleted" /></ste:escape><br /> + <a href="$rel_path_to_root/backend/content/tags"><ste:escape><ste:get_translation for="back_to_tags" /></ste:escape></a> + </div> +</ste:block> diff --git a/ratatoeskr/templates/src/systemtemplates/tags_overview.html b/ratatoeskr/templates/src/systemtemplates/tags_overview.html new file mode 100644 index 0000000..29288e7 --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/tags_overview.html @@ -0,0 +1,55 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <ste:if>$error + <ste:then> + <div class="error">$error</div> + </ste:then> + </ste:if> + <ste:if>$success + <ste:then> + <div class="success">$success</div> + </ste:then> + </ste:if> + + <form action="$rel_path_to_root/backend/content/tags" method="POST" accept-charset="UTF-8"> + <table> + <thead> + <tr> + <th><ste:escape><ste:get_translation for="tag_name" /></ste:escape></th> + <th><ste:escape><ste:get_translation for="delete" /></ste:escape></th> + <ste:foreach array="all_tag_langs" key="langcode" value="langname"> + <th>($langcode) <ste:escape>$langname</ste:escape></th> + </ste:foreach> + <th><ste:escape><ste:get_translation for="tag_add_lang" /></ste:escape></th> + </tr> + </thead> + <tbody> + <ste:foreach array="alltags" value="tagdata"> + <tr> + <td>$tagdata[name]</td> + <td> + <a href="$rel_path_to_root/backend/content/tags/$tagdata[name]/delete"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/delete.png" alt="<ste:get_translation for='delete' />" /></a> + </td> + <ste:foreach array="all_tag_langs" key="langcode" value="_"> + <td> + <input type="text" name="tagtrans_${langcode}_${tagdata[name]}" value="<ste:escape>$tagdata[translations][$langcode]</ste:escape>" /> + </td> + </ste:foreach> + <td> + <a href="$rel_path_to_root/backend/content/tags/$tagdata[name]/addtranslation"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/add.png" alt="<ste:escape><ste:get_translation for='tag_add_lang' /></ste:escape>" /></a> + </td> + </tr> + </ste:foreach> + </tbody> + </table> + <div><input type="submit" name="edit_translations" /></div> + </form> + + <div> + <h2><ste:get_translation for="create_new_tag" /></h2> + <form action="$rel_path_to_root/backend/content/tags" method="POST" accept-charset="UTF-8"> + <p><ste:escape><ste:get_translation for="new_tag_name" /></ste:escape>: <input type="text" name="new_tag_name" /></p> + <p><input type="submit" name="create_new_tag" /></p> + </form> + </div> +</ste:block> |