-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
92 lines (92 loc) · 4.46 KB
/
template.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{{m:root="/static/templates"}}
{{m:master="master.html"}}
<script type="text/javascript" src="node_modules/metronical.metron/dist/gen/metron.js"></script>
<section data-m-type="list" data-m-model="Post" data-m-state="show">
<div data-m-segment="alert" data-m-state="hide"></div>
<h1>Demo CRUD Operations List</h1>
<div data-m-segment="filters">
<div>
<fieldset>
<label for="Filter_Post_PostType">Post Type</label>
<select id="Filter_Post_PostTypeID" name="PostTypeID" data-m-action="filter" data-m-binding="PostType" data-m-text="Name">
<option value=""></option>
</select>
<label for="Filter_Post_Term">Search Term</label>
<input type="text" id="Filter_Post_Term" name="Term" />
<button data-m-action="filter" data-m-search="Name" data-m-search-for="Filter_Post_Term" title="Search">Go</button>
</fieldset>
</div>
</div>
<div data-m-segment="controls">
<button data-m-action="undo" class="button-outline">Undo</button>
<button data-m-action="new">New</button>
<button data-m-action="download" class="button-outline">Download</button>
</div>
<table data-m-segment="list">
<thead>
<tr>
<th data-m-type="list-menu">Menu</th>
<th data-m-action="sort" data-m-col="PostTypeID">Post Type</th>
<th data-m-action="sort" data-m-col="Active">Active?</th>
<th data-m-action="sort" data-m-col="Name">Name</th>
<th data-m-action="sort" data-m-col="DateCreated">Date Created</th>
<th data-m-action="sort" data-m-col="DateModified">Date Modified</th>
</tr>
</thead>
<tbody data-m-state="hide">
<tr data-m-action="repeat">
<td>
<button title="edit" data-m-action="edit" data-m-primary="PostID:{{PostID}};" class="button-outline">edit</button>
<button title="delete" data-m-action="delete" data-m-primary="PostID:{{PostID}};" class="button-outline">delete</button>
</td>
<td>{{PostTypeID}}</td>
<td>{{Active}}</td>
<td>{{Name}}</td>
<td>{{DateCreated}}</td>
<td>{{DateModified}}</td>
</tr>
</tbody>
</table>
<ul data-m-segment="paging">
<li><a title="First" href="#" class="button button-outline"><<</a></li>
<li><a title="Previous" href="#" class="button button-outline"><</a></li>
<li><a title="Next" href="#" class="button button-outline">></a></li>
<li><a title="Last" href="#" class="button button-outline">>></a></li>
</ul>
<div data-m-segment="controls">
<fieldset>
<label for="Filter_Post_PageSize">Page Size</label>
<select id="Filter_Post_PageSize" name="PageSize" data-m-segment="paging">
<option value="10" selected="selected">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</fieldset>
</div>
</section>
<section data-m-type="form" data-m-model="Post" data-m-state="hide">
<div data-m-segment="alert" data-m-state="hide"></div>
<h1>Demo CRUD Operations Form</h1>
<div>
<fieldset>
<input type="hidden" id="Post_PostID" name="PostID" data-m-primary="true" />
<input type="hidden" id="Post_RS" name="RS" />
<input type="hidden" id="Post_TS" name="TS" />
<label for="Post_PostTypeID">Post Type</label>
<select id="Post_PostTypeID" name="PostTypeID" required="required">
<option value=""></option>
</select>
<label for="Post_Name">Name</label>
<input type="text" id="Post_Name" name="Name" maxlength="100" required="required" />
<label for="Post_Description">Description</label>
<textarea id="Post_Description" name="Description"></textarea>
<label for="Post_Active" class="label-inline">Active?</label>
<input type="checkbox" id="Post_Active" name="Active" />
<div data-m-segment="controls">
<button data-m-action="save">Save</button>
<a data-m-action="cancel" class="button button-clear">Cancel</a>
</div>
</fieldset>
</div>
</section>