2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/menu}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-9">
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-10">
|
2019-12-26 13:23:21 +10:00
|
|
|
<h2 class="clearfix">{{ @root.__ "Static pages" }} <div class="pull-right"><a href="/admin/settings/pages/new" class="btn btn-outline-success">{{ @root.__ "New page" }}</a></div></h2>
|
2018-01-07 04:55:48 +10:00
|
|
|
<p class="text-muted">
|
2019-11-06 18:31:25 +10:00
|
|
|
{{ @root.__ "Static_Pages_Info" }}
|
2018-02-12 05:47:26 +10:00
|
|
|
</p>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if pages}}
|
|
|
|
<ul class="list-group">
|
|
|
|
{{#each pages}}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<div class="row">
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-8">
|
2019-12-26 20:32:28 +10:00
|
|
|
<div class="top-pad-5"><strong>{{ @root.__ "Name" }}:</strong> {{pageName}}</div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<a class="btn btn-outline-success" href="/admin/settings/pages/edit/{{_id}}">{{ @root.__ "Edit" }}</a>
|
|
|
|
<button class="btn btn-outline-danger" id="btnPageDelete" data-id="{{_id}}">{{ @root.__ "Delete" }}</button>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
2019-11-06 18:31:25 +10:00
|
|
|
<h4 class="text-warning text-center">{{ @root.__ "There are currently no static pages setup. Please setup a static page." }}</h4>
|
2018-01-07 04:55:48 +10:00
|
|
|
<p class="text-center">
|
2019-12-26 13:23:21 +10:00
|
|
|
<a class="btn btn-outline-success" href="/admin/settings/pages/new"> {{ @root.__ "Create new" }}</a>
|
2018-01-07 04:55:48 +10:00
|
|
|
</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.min.js"></script>
|
|
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.css" rel="stylesheet">
|