aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/articles.html
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-11-13 00:33:38 +0100
committerKevin Chabowski <kevin@kch42.de>2011-11-13 00:33:38 +0100
commit89a19766be822f9d0c7f9d44096a33c5e5f03d27 (patch)
treefb1b0aa64810801b3cec36877f20dc4d48434443 /ratatoeskr/templates/src/systemtemplates/articles.html
parent2954dd17a6d4c7c733af1f11a1b7db9d6f0b08f4 (diff)
downloadratatoeskr-cms-89a19766be822f9d0c7f9d44096a33c5e5f03d27.tar.gz
ratatoeskr-cms-89a19766be822f9d0c7f9d44096a33c5e5f03d27.tar.bz2
ratatoeskr-cms-89a19766be822f9d0c7f9d44096a33c5e5f03d27.zip
Added tag editing for backend and started work on article list.
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates/articles.html')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/articles.html44
1 files changed, 44 insertions, 0 deletions
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>&nbsp;</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>