aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-08-20 01:52:29 +0000
committerplegall <plg@piwigo.org>2005-08-20 01:52:29 +0000
commit4f261af70758d0080b2fc91aa97522de7d92ea2f (patch)
tree4cf120556999137d4038decfb91d8c345e656043 /template
parentfaaf35d63325f312a3180a72aa1c0abca273904d (diff)
- improvement : dedicated page for user comments validation/reject in
administration. (screen is not shared with public part of the gallery). Ability to validate all or reject all in one clic. git-svn-id: http://piwigo.org/svn/trunk@839 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template')
-rw-r--r--template/default/admin/comments.tpl26
-rw-r--r--template/default/default.css39
2 files changed, 65 insertions, 0 deletions
diff --git a/template/default/admin/comments.tpl b/template/default/admin/comments.tpl
new file mode 100644
index 000000000..82c8a9ed5
--- /dev/null
+++ b/template/default/admin/comments.tpl
@@ -0,0 +1,26 @@
+<h1>{lang:User comments validation}</h1>
+
+<form method="post" action="{F_ACTION}">
+
+ <input type="hidden" name="list" value="{LIST}" />
+
+ <!-- BEGIN comment -->
+ <div class="comment">
+ <a class="illustration" href="{comment.U_PICTURE}"><img src="{comment.TN_SRC}" /></a>
+ <p class="commentHeader"><strong>{comment.AUTHOR}</strong> - <em>{comment.DATE}</em></p>
+ <blockquote>{comment.CONTENT}</blockquote>
+ <ul class="actions">
+ <li><label><input type="radio" name="action-{comment.ID}" value="reject" />{lang:Reject}</label></li>
+ <li><label><input type="radio" name="action-{comment.ID}" value="validate" />{lang:Validate}</label></li>
+ </ul>
+ </div>
+ <!-- END comment -->
+
+ <p class="bottomButtons">
+ <input type="submit" name="submit" value="{lang:Submit}" />
+ <input type="submit" name="validate-all" value="{lang:Validate All}" />
+ <input type="submit" name="reject-all" value="{lang:Reject All}" />
+ <input type="reset" value="{lang:Reset}" />
+ </p>
+
+</form>
diff --git a/template/default/default.css b/template/default/default.css
index 026ca626c..72914717e 100644
--- a/template/default/default.css
+++ b/template/default/default.css
@@ -626,4 +626,43 @@ textarea.description {
fieldset.elementEdit>a {
display: block;
float: right;
+}
+
+/* Administration comments */
+div#adminMain div.comment {
+ margin: 5px;
+ border: 1px solid gray;
+ clear: both;
+}
+
+div#adminMain div.comment > a.illustration {
+ display: block;
+ float: left;
+ margin: 5px;
+}
+
+div#adminMain div.comment p.commentHeader {
+ text-align: right;
+ margin: 0.5em 0.5em 0 0;
+}
+
+div#adminMain div.comment ul.actions {
+ text-align: center;
+ margin: 0.2em;
+ clear: both;
+}
+
+div#adminMain div.comment > ul.actions > li {
+ display: inline;
+}
+
+div#adminMain div.comment blockquote {
+ margin: 15px;
+ border: 1px dashed gray;
+ padding: 0.5em;
+}
+
+/* */
+form p.bottomButtons {
+ text-align: center;
} \ No newline at end of file