settings acp refactor for dedicated routes
parent
9b17ec9f26
commit
117b8dece4
@ -1,73 +0,0 @@
|
|||||||
<h1><i class="fa fa-cogs"></i> Settings</h1>
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
<ul id="settings-tab" class="nav nav-tabs">
|
|
||||||
<li class="active"><a href="#general" data-toggle="tab">General</a></li>
|
|
||||||
<li><a href="#reputation" data-toggle="tab">Reputation</a></li>
|
|
||||||
<li><a href="#email" data-toggle="tab">Email</a></li>
|
|
||||||
<li><a href="#user" data-toggle="tab">User</a></li>
|
|
||||||
<li><a href="#post" data-toggle="tab">Post</a></li>
|
|
||||||
<li><a href="#pagination" data-toggle="tab">Pagination</a></li>
|
|
||||||
<li><a href="#tags" data-toggle="tab">Tags</a></li>
|
|
||||||
<li><a href="#web-crawler" data-toggle="tab">Web Crawler</a></li>
|
|
||||||
<li><a href="#sockets" data-toggle="tab">Sockets</a></li>
|
|
||||||
<li><a href="#advanced" data-toggle="tab">Advanced</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="tab-content">
|
|
||||||
<!-- IMPORT admin/settings/general.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/email.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/user.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/post.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/pagination.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/tags.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/web-crawler.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/sockets.tpl -->
|
|
||||||
<!-- IMPORT admin/settings/advanced.tpl -->
|
|
||||||
|
|
||||||
<!-- This was not moved into a partial because I am removing it soon (@julianlam) -->
|
|
||||||
<!-- ^ Heh, when did I add this... this section is still here apparently. (@julianlam July 2014) -->
|
|
||||||
<div class="tab-pane" id="reputation">
|
|
||||||
<form>
|
|
||||||
<div class="alert alert-warning">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" data-field="reputation:disabled"> <strong>Disable Reputation System</strong>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" data-field="downvote:disabled"> <strong>Disable Down Voting</trong>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-warning">
|
|
||||||
<h3>Privilege Thresholds</h3>
|
|
||||||
<p>Use <strong>privilege thresholds</strong> to manage how much reputation a user must gain to receive moderator access.</p><br />
|
|
||||||
<strong>Manage Thread</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_topic"><br />
|
|
||||||
<strong>Manage Content</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_content"><br />
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" data-field="privileges:disabled"> <strong>Disable Privilege Threshold System</strong>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-warning">
|
|
||||||
<h3>Activity Thresholds</h3>
|
|
||||||
<strong>Minimum reputation to downvote posts</strong><br /> <input type="text" class="form-control" data-field="privileges:downvote"><br />
|
|
||||||
<strong>Minimum reputation to flag posts</strong><br /> <input type="text" class="form-control" data-field="privileges:flag"><br />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span class="hidden" id="csrf" data-csrf="{csrf}"></span>
|
|
||||||
<button class="btn btn-primary" id="save">Save</button>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
require(['forum/admin/settings'], function(Settings) {
|
|
||||||
Settings.prepare();
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
<span class="hidden" id="csrf" data-csrf="{csrf}"></span>
|
||||||
|
<button class="btn btn-primary" id="save">Save</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
require(['forum/admin/settings'], function(Settings) {
|
||||||
|
Settings.prepare();
|
||||||
|
});
|
||||||
|
</script>
|
@ -0,0 +1,17 @@
|
|||||||
|
<h1><i class="fa fa-cogs"></i> Settings</h1>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<ul class="nav nav-pills settings">
|
||||||
|
<li data-pill="general"><a href="{relative_path}/admin/settings/general">General</a></li>
|
||||||
|
<li data-pill="reputation"><a href="{relative_path}/admin/settings/reputation">Reputation</a></li>
|
||||||
|
<li data-pill="email"><a href="{relative_path}/admin/settings/email">Email</a></li>
|
||||||
|
<li data-pill="user"><a href="{relative_path}/admin/settings/user">User</a></li>
|
||||||
|
<li data-pill="post"><a href="{relative_path}/admin/settings/post">Post</a></li>
|
||||||
|
<li data-pill="pagination"><a href="{relative_path}/admin/settings/pagination">Pagination</a></li>
|
||||||
|
<li data-pill="tags"><a href="{relative_path}/admin/settings/tags">Tags</a></li>
|
||||||
|
<li data-pill="web-crawler"><a href="{relative_path}/admin/settings/web-crawler">Web Crawler</a></li>
|
||||||
|
<li data-pill="sockets"><a href="{relative_path}/admin/settings/sockets">Sockets</a></li>
|
||||||
|
<li data-pill="advanced"><a href="{relative_path}/admin/settings/advanced">Advanced</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<br />
|
@ -0,0 +1,36 @@
|
|||||||
|
<!-- IMPORT admin/settings/header.tpl -->
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" data-field="reputation:disabled"> <strong>Disable Reputation System</strong>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" data-field="downvote:disabled"> <strong>Disable Down Voting</trong>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<h3>Privilege Thresholds</h3>
|
||||||
|
<p>Use <strong>privilege thresholds</strong> to manage how much reputation a user must gain to receive moderator access.</p><br />
|
||||||
|
<strong>Manage Thread</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_topic"><br />
|
||||||
|
<strong>Manage Content</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_content"><br />
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" data-field="privileges:disabled"> <strong>Disable Privilege Threshold System</strong>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
<h3>Activity Thresholds</h3>
|
||||||
|
<strong>Minimum reputation to downvote posts</strong><br /> <input type="text" class="form-control" data-field="privileges:downvote"><br />
|
||||||
|
<strong>Minimum reputation to flag posts</strong><br /> <input type="text" class="form-control" data-field="privileges:flag"><br />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- IMPORT admin/settings/footer.tpl -->
|
Loading…
Reference in New Issue