mirror of
https://github.com/cuigh/swirl
synced 2025-01-06 19:11:29 +00:00
92 lines
2.6 KiB
Go
92 lines
2.6 KiB
Go
{{ extends "../../_layouts/default" }}
|
|
{{ import "../../_modules/pager" }}
|
|
|
|
{*{{ block script() }}*}
|
|
{*<script>$(() => new Swirl.Service.ListPage())</script>*}
|
|
{*{{ end }}*}
|
|
|
|
{{ block body() }}
|
|
<section class="hero is-info">
|
|
<div class="hero-body">
|
|
<div class="container has-text-centered">
|
|
<h1 class="title is-2">
|
|
SERVICE TEMPLATE
|
|
</h1>
|
|
<h2 class="subtitle is-5">
|
|
Manage service templates.
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
<div class="hero-foot">
|
|
<div class="container">
|
|
<nav class="tabs is-boxed">
|
|
<ul>
|
|
<li>
|
|
<a href="/service/">Services</a>
|
|
</li>
|
|
<li class="is-active">
|
|
<a href="/service/template/">Templates</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<nav class="level">
|
|
<!-- Left side -->
|
|
<div class="level-left">
|
|
<div class="level-item">
|
|
<form>
|
|
<div class="field has-addons">
|
|
<p class="control">
|
|
<input name="name" value="" class="input" placeholder="Search by name">
|
|
</p>
|
|
<p class="control">
|
|
<button class="button is-primary">Search</button>
|
|
</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="level-item">
|
|
<p class="subtitle is-5">
|
|
<strong>0</strong> templates
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<!-- Right side -->
|
|
<div class="level-right">
|
|
<p class="level-item">
|
|
<a class="button is-success" href="new"><span class="icon"><i class="fa fa-plus"></i></span><span>New</span></a>
|
|
</p>
|
|
</div>
|
|
</nav>
|
|
|
|
<table id="table-items" class="table is-bordered is-striped is-narrow is-fullwidth">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Updated at</th>
|
|
<th width="160">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><a href="">Manage Web</a></td>
|
|
<td>后台站点</td>
|
|
<td>2017-09-11 21:17:17</td>
|
|
<td>
|
|
<div class="field has-addons">
|
|
{*<p class="control"><a href="{{.ID}}/edit" class="button is-small is-dark is-outlined">Edit</a></p>*}
|
|
{*<p class="control"><a href="/service/new?template={{.ID}}" class="button is-small is-success is-outlined">Create</a></p>*}
|
|
<p class="control"><button class="button is-small is-danger is-outlined" data-action="delete-template">Delete</button></p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{*{{ yield pager(info=.Pager) }}*}
|
|
</section>
|
|
{{ end }} |