Merge branch '2.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / moderationReport.tpl
CommitLineData
fc69b61d
MW
1{include file='documentHeader'}
2
3<head>
4 <title>{lang}wcf.moderation.report{/lang} - {PAGE_TITLE|language}</title>
5
6 {include file='headInclude'}
7
9543d9fe
AE
8 <script data-relocate="true" src="{@$__wcf->getPath()}js/WCF.Moderation{if !ENABLE_DEBUG_MODE}.min{/if}.js?v={@$__wcfVersion}"></script>
9 <script data-relocate="true">
fc69b61d
MW
10 //<![CDATA[
11 $(function() {
fc69b61d
MW
12 WCF.Language.addObject({
13 'wcf.moderation.report.removeContent.confirmMessage': '{lang}wcf.moderation.report.removeContent.confirmMessage{/lang}',
86514266 14 'wcf.moderation.report.removeContent.reason': '{lang}wcf.moderation.report.removeContent.reason{/lang}',
fc69b61d
MW
15 'wcf.moderation.report.removeReport.confirmMessage': '{lang}wcf.moderation.report.removeReport.confirmMessage{/lang}'
16 });
cc548158
MS
17
18 new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList'}{/link}');
fc69b61d
MW
19 });
20 //]]>
21 </script>
22</head>
23
24<body id="tpl{$templateName|ucfirst}">
25
26{include file='header' sidebarOrientation='left'}
27
28<header class="boxHeadline">
29 <h1>{lang}wcf.moderation.report{/lang}</h1>
30</header>
31
32{include file='userNotice'}
33
ee629b22
AE
34{include file='formError'}
35
fc69b61d
MW
36<div class="contentNavigation">
37 <nav>
38 <ul>
39 <li><a href="{link controller='ModerationList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.moderation.moderation{/lang}</span></a></li>
40
41 {event name='contentNavigationButtonsTop'}
42 </ul>
43 </nav>
44</div>
45
46<form method="post" action="{link controller='ModerationReport' id=$queue->queueID}{/link}" class="container containerPadding marginTop">
47 <fieldset>
48 <legend>{lang}wcf.moderation.report.details{/lang}</legend>
49
50 <dl>
51 <dt>{lang}wcf.global.objectID{/lang}</dt>
52 <dd>{#$queue->queueID}</dd>
53 </dl>
54 <dl>
55 <dt>{lang}wcf.moderation.report.reportedBy{/lang}</dt>
56 <dd>{if $queue->userID}<a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a>{else}{lang}wcf.user.guest{/lang}{/if} ({@$queue->time|time})</dd>
57 </dl>
58 {if $queue->lastChangeTime}
59 <dl>
60 <dt>{lang}wcf.moderation.lastChangeTime{/lang}</dt>
61 <dd>{@$queue->lastChangeTime|time}</dd>
62 </dl>
63 {/if}
64 <dl>
65 <dt>{lang}wcf.moderation.assignedUser{/lang}</dt>
66 <dd>
67 <ul>
68 {if $assignedUserID && ($assignedUserID != $__wcf->getUser()->userID)}
69 <li><label><input type="radio" name="assignedUserID" value="{@$assignedUserID}" checked="checked" /> {$queue->assignedUsername}</label></li>
70 {/if}
71 <li><label><input type="radio" name="assignedUserID" value="{@$__wcf->getUser()->userID}"{if $assignedUserID == $__wcf->getUser()->userID} checked="checked"{/if} /> {$__wcf->getUser()->username}</label></li>
72 <li><label><input type="radio" name="assignedUserID" value="0"{if !$assignedUserID} checked="checked"{/if} /> {lang}wcf.moderation.assignedUser.nobody{/lang}</label></li>
73 </ul>
74 </dd>
75 </dl>
76 {if $queue->assignedUser}
77 <dl>
77f70354 78 <dt></dt>
fc69b61d
MW
79 <dd><a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-user-id="{@$assignedUserID}">{$queue->assignedUsername}</a></dd>
80 </dl>
81 {/if}
82 <dl>
83 <dt>{lang}wcf.moderation.report.reason{/lang}</dt>
84 <dd>{@$queue->getFormattedMessage()}</dd>
85 </dl>
86 <dl>
87 <dt><label for="comment">{lang}wcf.moderation.comment{/lang}</label></dt>
88 <dd><textarea id="comment" name="comment" rows="4" cols="40">{$comment}</textarea></dd>
89 </dl>
90
91 {event name='detailsFields'}
92
93 <div class="formSubmit">
94 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" />
ee629b22 95 {@SECURITY_TOKEN_INPUT_TAG}
fc69b61d
MW
96 </div>
97 </fieldset>
98
99 {event name='fieldsets'}
100</form>
101
102<header class="boxHeadline boxSubHeadline">
103 <h2>{lang}wcf.moderation.report.reportedContent{/lang}</h2>
104</header>
105
106<div class="marginTop">
107 {@$reportedContent}
108</div>
109
110<div class="contentNavigation">
111 <nav>
112 <ul>
38af26d2 113 {if !$queue->isDone()}
b91f1424 114 {if $queueManager->canRemoveContent($queue->getDecoratedObject())}<li class="jsOnly"><a id="removeContent" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.moderation.report.removeContent{/lang}</span></a></li>{/if}
2758df6f 115 <li class="jsOnly"><a id="removeReport" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.moderation.report.removeReport{/lang}</span></a></li>
4dc5dbdd 116 {/if}
fc69b61d
MW
117 <li><a href="{link controller='ModerationList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.moderation.moderation{/lang}</span></a></li>
118
119 {event name='contentNavigationButtonsBottom'}
120 </ul>
121 </nav>
122</div>
123
124{include file='footer'}
125
126</body>
127</html>