-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathentry-form-record-list-hbs.htm
More file actions
52 lines (51 loc) · 2.1 KB
/
entry-form-record-list-hbs.htm
File metadata and controls
52 lines (51 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{#if isLoading}}<div data-template-id="loading-template"></div>{{/if}}
{{#if hasError}}<div data-template-id="error-template"></div>{{/if}}
{{#if isLoaded}}
<div class="row mb-4">
<div class="col">
<input class="form-control" data-filter-selector="table" placeholder="Enter filter">
</div>
</div>
<div class="row">
<div class="col">
{{#if records.length}}
<div class="table-responsive">
<table class="table table-striped click-to-highlight" data-sort>
<thead>
<tr>
<th>Id</th>
<th>Label</th>
<th>Number</th>
<th>Category</th>
<th>Date</th>
<th>Active</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
{{#each records}}
<tr>
<td><a href="#/record/{{id}}">{{id}}</a></td>
<td class="text-nowrap">{{label}}</td>
<td>{{num_value}}</td>
<td>{{category}}</td>
<td class="text-nowrap">{{date_value}}</td>
<td>{{yesNo active}}</td>
<td>{{nl2br comment}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{else}}
<button
class="btn btn-primary"
data-click-url="https://www.dataformsjs.com/data/example/entry-form/generate-sample-data"
data-action="update-view"
data-request-method="POST">
Generate Sample Records
</button>
{{/if}}
</div>
</div>
{{/if}}