Add Report Create module
WIP
This commit is contained in:
parent
76de49a25c
commit
c312d11dab
13 changed files with 510 additions and 3 deletions
25
view/templates/moderation/report/create/aside.tpl
Normal file
25
view/templates/moderation/report/create/aside.tpl
Normal file
|
@ -0,0 +1,25 @@
|
|||
<div class="widget">
|
||||
<p><strong>{{$l10n.contact_title}}</strong></p>
|
||||
{{if $contact}}
|
||||
{{include file="contact/entry.tpl"}}
|
||||
{{/if}}
|
||||
<p><strong>{{$l10n.category_title}}</strong></p>
|
||||
{{if $category}}
|
||||
<p>{{$category}}</p>
|
||||
{{/if}}
|
||||
{{if $rules}}
|
||||
<p><strong>{{$l10n.rules_title}}</strong></p>
|
||||
<ol>
|
||||
{{foreach $rules as $rule_id => $rule_text}}
|
||||
<li value="{{$rule_id}}">{{$rule_text}}</li>
|
||||
{{/foreach}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
{{if $comment}}
|
||||
<p><strong>{{$l10n.comment_title}}</strong></p>
|
||||
<p>{{$comment nofilter}}</p>
|
||||
{{/if}}
|
||||
{{if $posts}}
|
||||
<p><strong>{{$l10n.posts_title}} ({{$posts}})</strong></p>
|
||||
{{/if}}
|
||||
</div>
|
16
view/templates/moderation/report/create/pick_category.tpl
Normal file
16
view/templates/moderation/report/create/pick_category.tpl
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.description}}</p>
|
||||
|
||||
<form action="" method="post">
|
||||
{{include file="field_radio.tpl" field=$category_spam}}
|
||||
{{include file="field_radio.tpl" field=$category_illegal}}
|
||||
{{include file="field_radio.tpl" field=$category_safety}}
|
||||
{{include file="field_radio.tpl" field=$category_unwanted}}
|
||||
{{include file="field_radio.tpl" field=$category_violation}}
|
||||
{{include file="field_radio.tpl" field=$category_other}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$comment}}
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
</div>
|
9
view/templates/moderation/report/create/pick_contact.tpl
Normal file
9
view/templates/moderation/report/create/pick_contact.tpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.description}}</p>
|
||||
|
||||
<form action="" method="post">
|
||||
{{include file="field_input.tpl" field=$url}}
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
</div>
|
24
view/templates/moderation/report/create/pick_posts.tpl
Normal file
24
view/templates/moderation/report/create/pick_posts.tpl
Normal file
|
@ -0,0 +1,24 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.description}}</p>
|
||||
|
||||
<form action="" method="post">
|
||||
<table class="table-striped table-condensed">
|
||||
{{foreach $threads as $thread}}
|
||||
<tr>
|
||||
<td>
|
||||
<div id="tread-wrapper-{{$thread.id}}" class="tread-wrapper panel toplevel_item">
|
||||
{{foreach $thread.items as $item}}
|
||||
{{include file="{{$item.template}}"}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="uri-ids[]" value="{{$thread.items[0].uriid}}">
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</table>
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
</div>
|
16
view/templates/moderation/report/create/pick_rules.tpl
Normal file
16
view/templates/moderation/report/create/pick_rules.tpl
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.description}}</p>
|
||||
|
||||
<form action="" method="post">
|
||||
{{foreach $rules as $rule}}
|
||||
<div class="field checkbox" id="div_id_{{$rule.0}}_{{$rule.1}}">
|
||||
<input type="checkbox" name="{{$rule.0}}" id="id_{{$rule.0}}_{{$rule.1}}" value="{{$rule.1}}" {{if $rule.3}}checked="checked"{{/if}}>
|
||||
<label for="id_{{$rule.0}}_{{$rule.1}}">
|
||||
{{$rule.2}}
|
||||
</label>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
</div>
|
28
view/templates/moderation/report/create/summary.tpl
Normal file
28
view/templates/moderation/report/create/summary.tpl
Normal file
|
@ -0,0 +1,28 @@
|
|||
<div class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.description}}</p>
|
||||
|
||||
<div>
|
||||
{{$summary nofilter}}
|
||||
</div>
|
||||
|
||||
<h2>{{$l10n.contact_action_title}}</h2>
|
||||
<p>{{$l10n.contact_action_desc}}</p>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="cid" value="{{$cid}}">
|
||||
<input type="hidden" name="category" value="{{$category}}">
|
||||
<input type="hidden" name="rule-ids" value="{{$ruleIds}}">
|
||||
<input type="hidden" name="uri-ids" value="{{$uriIds}}">
|
||||
|
||||
{{include file="field_radio.tpl" field=$nothing}}
|
||||
{{include file="field_radio.tpl" field=$collapse}}
|
||||
{{include file="field_radio.tpl" field=$ignore}}
|
||||
{{include file="field_radio.tpl" field=$block}}
|
||||
|
||||
{{if $display_forward}}
|
||||
{{include file="field_checkbox.tpl" field=$forward}}
|
||||
{{/if}}
|
||||
|
||||
<p><button type="submit" name="report_create" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
</div>
|
|
@ -161,13 +161,15 @@
|
|||
</div>
|
||||
|
||||
<div class="wall-item-actions-tools">
|
||||
|
||||
{{if $item.drop && $item.drop.pagedrop}}
|
||||
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
|
||||
{{/if}}
|
||||
{{if $item.drop && $item.drop.dropping}}
|
||||
<a role="button" href="item/drop/{{$item.id}}/{{$item.return}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}"><i class="icon-trash icon-large"><span class="sr-only">{{$item.drop.delete}}</span></i></a>
|
||||
{{/if}}
|
||||
{{if $item.report}}
|
||||
<a href="{{$item.report.href}}" title="{{$item.report.label}}"><i class="icon-flag icon-large"><span class="sr-only">{{$item.report.label}}</span></i></a>
|
||||
{{/if}}
|
||||
{{if $item.edpost}}
|
||||
<a role="button" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="icon-edit icon-large"><span class="sr-only">{{$item.edpost.1}}</span></i></a>
|
||||
{{/if}}
|
||||
|
|
|
@ -409,6 +409,11 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<a class="btn-link navicon collapse" href="javascript:collapseAuthor('item/collapse/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.collapse.collapse}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.collapse.collapse}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{if $item.report}}
|
||||
<li role="menuitem">
|
||||
<a class="btn-link navicon ignore" href="{{$item.report.href}}"><i class="fa fa-flag" aria-hidden="true"></i> {{$item.report.label}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</span>
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue