Runway 1.1.0
This commit is contained in:
1 parent
ce217fc952
commit
07d5bd7e9a
223 files changed
+21147
-255
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head><meta charset="utf-8"><title>Guestbook</title></head>
|
||||
<body>
|
||||
<!-- The guestbook console screen (@ConsoleScreen, site console). Markup only: bindings in console.th.xml. -->
|
||||
<div id="content">
|
||||
<div class="page-header d-print-none mb-3">
|
||||
<h2 class="page-title" id="gb-heading">Guestbook</h2>
|
||||
</div>
|
||||
<div id="gb-flash" class="alert alert-success" role="status"><span id="gb-flash-text">done</span></div>
|
||||
<div id="gb-error" class="alert alert-danger" role="alert"><span id="gb-error-text">error</span></div>
|
||||
<div class="alert alert-warning" id="gb-unavailable">The database is not available.</div>
|
||||
<div class="card" id="gb-card">
|
||||
<div class="card-header"><h3 class="card-title"><span id="gb-count-label">Entries</span>:
|
||||
<span id="gb-count">0</span></h3></div>
|
||||
<p class="card-body text-secondary mb-0" id="gb-empty">No entries yet.</p>
|
||||
<div class="table-responsive" id="gb-table">
|
||||
<table class="table table-vcenter card-table">
|
||||
<thead><tr><th id="gb-h-at">When</th><th id="gb-h-name">Name</th><th id="gb-h-message">Message</th>
|
||||
<th></th></tr></thead>
|
||||
<tbody>
|
||||
<tr id="gb-row">
|
||||
<td class="text-nowrap small gb-at">time</td>
|
||||
<td class="gb-name">name</td>
|
||||
<td class="gb-message">message</td>
|
||||
<td>
|
||||
<form method="post" action="/__admin/runway-demo-database/delete" class="m-0">
|
||||
<input class="gb-csrf" type="hidden" name="_csrf" value="">
|
||||
<input class="gb-id" type="hidden" name="id" value="">
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger gb-delete">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer" id="gb-pager">
|
||||
<a class="btn btn-sm" id="gb-newer" href="?page=0">Newer</a>
|
||||
<a class="btn btn-sm" id="gb-older" href="?page=1">Older</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Decoupled logic of the guestbook console screen. `gb` is the Screen record the controller put in the model. -->
|
||||
<thlogic>
|
||||
<attr sel="#gb-heading" th:text="#{guestbook.console.title}"/>
|
||||
<attr sel="#gb-flash" th:if="${guestbookFlash != null}"/>
|
||||
<attr sel="#gb-flash-text" th:text="${guestbookFlash}"/>
|
||||
<attr sel="#gb-error" th:if="${guestbookError != null}"/>
|
||||
<attr sel="#gb-error-text" th:text="${guestbookError}"/>
|
||||
<attr sel="#gb-unavailable" th:unless="${gb.available()}" th:text="#{guestbook.console.unavailable}"/>
|
||||
<attr sel="#gb-card" th:if="${gb.available()}"/>
|
||||
<attr sel="#gb-count-label" th:text="#{guestbook.console.count}"/>
|
||||
<attr sel="#gb-count" th:text="${gb.count()}"/>
|
||||
<attr sel="#gb-empty" th:if="${gb.page().entries().isEmpty()}" th:text="#{guestbook.console.empty}"/>
|
||||
<attr sel="#gb-table" th:unless="${gb.page().entries().isEmpty()}"/>
|
||||
<attr sel="#gb-h-at" th:text="#{guestbook.console.at}"/>
|
||||
<attr sel="#gb-h-name" th:text="#{guestbook.name}"/>
|
||||
<attr sel="#gb-h-message" th:text="#{guestbook.message}"/>
|
||||
<attr sel="#gb-row" th:each="e : ${gb.page().entries()}"/>
|
||||
<attr sel="#gb-row//.gb-at" th:text="${e.at()}"/>
|
||||
<attr sel="#gb-row//.gb-name" th:text="${e.name()}"/>
|
||||
<attr sel="#gb-row//.gb-message" th:text="${e.message()}"/>
|
||||
<attr sel="#gb-row//.gb-id" th:value="${e.id()}"/>
|
||||
<attr sel="#gb-row//.gb-delete" th:text="#{guestbook.console.delete}"/>
|
||||
<attr sel=".gb-csrf"
|
||||
th:attr="name=${_csrf != null ? _csrf.parameterName : '_csrf'},value=${_csrf != null ? _csrf.token : ''}"/>
|
||||
<attr sel="#gb-pager" th:if="${gb.page().page() > 0 or gb.page().more()}"/>
|
||||
<attr sel="#gb-newer" th:if="${gb.page().page() > 0}" th:href="@{''(page=${gb.page().page() - 1})}"
|
||||
th:text="#{guestbook.console.newer}"/>
|
||||
<attr sel="#gb-older" th:if="${gb.page().more()}" th:href="@{''(page=${gb.page().page() + 1})}"
|
||||
th:text="#{guestbook.console.older}"/>
|
||||
</thlogic>
|
||||
Reference in new issue
Block a user