atas/views/test.eta

120 lines
3.7 KiB
Plaintext
Raw Normal View History

2025-01-17 23:02:39 +01:00
<%~ include("partials/base_head.eta", {"title": "API Test"}) %>
<%~ include("partials/nav.eta") %>
<section class="hero is-primary" id="heroStatus">
<div class="hero-body">
<p class="title" data-tK="start-hero-header-welcome">Test Page</p>
<p class="subtitle" data-tK="start-hero-header-subtitle-default" id="heroExplainer">API Integration test page</p>
</div>
</section>
<section class="section">
<h1 class="title" data-tK="start-sysinfo-header">Singelton Query</h1>
<nav class="level">
<div class="level-item has-text-centered">
<div>
<p class="heading">Kontakte</p>
<p class="title"><span data-dataSource="AlertContacts" data-dataAction="COUNT" class="is-skeleton">Load.</span></p>
</div>
</div>
<!--<div class="level-item has-text-centered">
<div>
<p class="heading">Alarme</p>
<p class="title"><span data-dataSource="Alerts" data-dataCol="id" data-dataAction="COUNT" class="is-skeleton">Load.</span></p>
</div>
</div>-->
<div class="level-item has-text-centered">
<div>
<p class="heading">Version</p>
<p class="title"><span data-dataSource="version" data-dataAction="SPECIAL" class="is-skeleton">Load.</span></p>
</div>
</div>
</nav>
</section>
<!-- TODO: Mark required fields as required; add handling for validation -->
<div id="modal-js-example" class="modal">
<div class="modal-background"></div>
2025-01-30 00:32:10 +01:00
2025-01-17 23:02:39 +01:00
<div class="modal-content">
<div class="box entryPhase is-hidden">
<h2 class="title">New Contact</h1>
<i class="bi bi-arrow-clockwise title"></i>
</div>
2025-01-30 00:32:10 +01:00
<div class="box entryPhase">
2025-01-17 23:02:39 +01:00
<h2 class="title">New Contact</h1>
<form data-targetTable="AlertContacts">
<div class="field">
<label class="label">Name</label>
<div class="control has-icons-left">
2025-01-30 00:32:10 +01:00
<input class="input" type="text" placeholder="John Doe" value="" name="name">
<span class="icon is-small is-left">
2025-01-17 23:02:39 +01:00
<i class="bi bi-file-earmark-person-fill"></i>
2025-01-30 00:32:10 +01:00
</span>
2025-01-17 23:02:39 +01:00
</div>
2025-01-30 00:32:10 +01:00
</div>
<div class="field">
2025-01-17 23:02:39 +01:00
<label class="label">Telephone</label>
<div class="control has-icons-left">
2025-01-30 00:32:10 +01:00
<input class="input" type="text" placeholder="+49 1234 5678912" value="" name="phone">
<span class="icon is-small is-left">
2025-01-17 23:02:39 +01:00
<i class="bi bi-telephone-fill"></i>
2025-01-30 00:32:10 +01:00
</span>
</div>
2025-01-17 23:02:39 +01:00
</div>
2025-01-30 00:32:10 +01:00
<div class="field">
2025-01-17 23:02:39 +01:00
<label class="label">Comment</label>
<div class="control has-icons-left">
2025-01-30 00:32:10 +01:00
<input class="input" type="text" placeholder="" value="" name="comment">
<span class="icon is-small is-left">
2025-01-17 23:02:39 +01:00
<i class="bi bi-chat-fill"></i>
2025-01-30 00:32:10 +01:00
</span>
</div>
2025-01-17 23:02:39 +01:00
</div>
2025-01-30 00:32:10 +01:00
<br>
2025-01-17 23:02:39 +01:00
2025-01-30 00:32:10 +01:00
<div class="field is-grouped">
2025-01-17 23:02:39 +01:00
<div class="control">
<input type="submit" class="button is-link" value="Save" data-actionBtn="save">
</div>
2025-01-30 00:32:10 +01:00
<!--<div class="control">
<button type="button" class="button is-link is-light" data-actionBtn="cancel">Cancel</button>
</div>-->
2025-01-17 23:02:39 +01:00
</div>
</form>
2025-01-30 00:32:10 +01:00
</div>
2025-01-17 23:02:39 +01:00
</div>
2025-01-30 00:32:10 +01:00
2025-01-17 23:02:39 +01:00
<button class="modal-close is-large" aria-label="close"></button>
2025-01-30 00:32:10 +01:00
</div>
2025-01-17 23:02:39 +01:00
2025-01-30 00:32:10 +01:00
<button class="js-modal-trigger button" data-target="modal-js-example">
2025-01-17 23:02:39 +01:00
Create new Contact
2025-01-30 00:32:10 +01:00
</button>
2025-01-17 23:02:39 +01:00
<section class="section">
<h1 class="title" data-tK="start-recent-header">Alarm Kontakte</h1>
<input class="input" type="text" data-searchTargetId="contactTable" placeholder="Search..." />
<table class="table is-striped is-fullwidth" data-dataSource="AlertContacts" id="contactTable">
<thead>
<tr>
<th data-dataCol = "id"><abbr title="Position">Pos</abbr></th>
<th data-dataCol = "name">Name</th>
<th data-dataCol = "phone">Telefon Nummer</th>
<th data-dataCol = "comment">Kommentar</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
<%~ include("partials/footer.eta") %>
<%~ include("partials/base_foot.eta") %>