expressCart/views/settings_pages.hbs

35 lines
1.9 KiB
Handlebars
Raw Normal View History

2018-02-12 05:47:26 +10:00
{{> partials/menu}}
<div class="col-sm-9">
2018-01-07 04:55:48 +10:00
<div class="row">
<div class="col-md-10">
<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">
{{ @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">
<div class="col-sm-8">
2019-12-26 20:32:28 +10:00
<div class="top-pad-5"><strong>{{ @root.__ "Name" }}:</strong>&nbsp; {{pageName}}</div>
2018-01-07 04:55:48 +10:00
</div>
<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}}
<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">
<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">