-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathentry-form-record-list-vue.htm
More file actions
48 lines (47 loc) · 1.98 KB
/
entry-form-record-list-vue.htm
File metadata and controls
48 lines (47 loc) · 1.98 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
<div v-if="isLoading" data-template-id="loading-template"></div>
<div v-if="hasError" data-template-id="error-template"></div>
<div v-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">
<div v-if="records.length" 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>
<tr v-for="record in records">
<td><a v-bind:href="'#/record/' + record.id">{{ record.id }}</a></td>
<td class="text-nowrap">{{ record.label }}</td>
<td>{{ record.num_value }}</td>
<td>{{ record.category }}</td>
<td class="text-nowrap">{{ record.date_value }}</td>
<td v-format-yes-no="record.active"></td>
<td style="white-space: pre;">{{ record.comment }}</td>
</tr>
</tbody>
</table>
</div>
<button
v-else
class="btn btn-primary"
data-click-url="https://www.dataformsjs.com/data/example/entry-form/generate-sample-data"
data-action="refresh-plugins"
data-request-method="POST">
Generate Sample Records
</button>
</div>
</div>
</div>