Add user settings page to manage remote server settings
This commit is contained in:
parent
4c6334ea13
commit
a670d478f8
4 changed files with 173 additions and 0 deletions
39
view/templates/settings/server/index.tpl
Normal file
39
view/templates/settings/server/index.tpl
Normal file
|
@ -0,0 +1,39 @@
|
|||
<div id="settings-server" class="generic-page-wrapper">
|
||||
<h1>{{$l10n.title}} ({{$count}})</h1>
|
||||
|
||||
<p>{{$l10n.desc nofilter}}</p>
|
||||
|
||||
{{$paginate nofilter}}
|
||||
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
|
||||
<table class="table table-striped table-condensed table-bordered">
|
||||
<tr>
|
||||
<th>{{$l10n.siteName}}</th>
|
||||
<th><span title="{{$l10n.ignored_title}}">{{$l10n.ignored}} <i class="fa fa-question-circle"></i></span></th>
|
||||
<th><span title="{{$l10n.delete_title}}"><i class="fa fa-trash" aria-hidden="true" title="{{$l10n.delete}}"></i> <span class="sr-only">{{$l10n.delete}}</span> <i class="fa fa-question-circle"></i></span></th>
|
||||
</tr>
|
||||
|
||||
{{foreach $servers as $index => $server}}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{$server->gserver->url}}">{{($server->gserver->siteName) ? $server->gserver->siteName : $server->gserver->url}} <i class="fa fa-external-link"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
{{include file="field_checkbox.tpl" field=$ignoredCheckboxes[$index]}}
|
||||
</td>
|
||||
<td>
|
||||
{{include file="field_checkbox.tpl" field=$deleteCheckboxes[$index]}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
|
||||
</table>
|
||||
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
||||
</form>
|
||||
|
||||
{{$paginate nofilter}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue