Files
pulse-signage/src/webui/views/templates/list.hbs
T
2026-07-13 21:44:49 +01:00

36 lines
1.3 KiB
Handlebars

<div class="page-header">
<div>
<h2>Slide templates</h2>
<p>Design reusable canvas layouts and region definitions.</p>
</div>
<a class="button-link" href="/admin/templates/new">Create Template</a>
</div>
<div class="card">
<h3>Existing templates</h3>
<table class="table-cards">
<thead><tr><th>Name</th><th>Canvas</th><th>Regions</th><th>Actions</th></tr></thead>
<tbody>
{{#if templates.length}}
{{#each templates}}
<tr>
<td data-label="Name">{{name}}</td>
<td data-label="Canvas">{{canvas_size_width}}x{{canvas_size_height}}</td>
<td data-label="Regions">{{regionCount}}</td>
<td data-label="Actions">
<div class="actions">
<a class="button-link list-action" href="/admin/templates/{{id}}/edit">Edit</a>
<form class="inline-form" method="post" action="/admin/templates/{{id}}/delete" data-confirm-message="Delete this template?">
<button class="danger list-action" type="submit">Delete</button>
</form>
</div>
</td>
</tr>
{{/each}}
{{else}}
<tr><td colspan="4" class="empty">No templates yet.</td></tr>
{{/if}}
</tbody>
</table>
</div>