-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (105 loc) · 5.96 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Metron TypeScript/JavaScript Convenience Library</title>
<link type="text/css" href="node_modules/milligram/dist/milligram.min.css" rel="stylesheet" />
<link type="text/css" href="node_modules/metronical.metron/dist/css/app.css" rel="stylesheet" />
<script type="text/javascript" src="node_modules/rsvp/dist/rsvp.js"></script>
<script type="text/javascript" src="node_modules/metronical.metron/dist/gen/metron.js"></script>
<script type="text/javascript" src="static/js/_gen/app.js"></script>
</head>
<body data-m-root="" data-m-autoload="true">
<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" class="column">Menu</th>
<th data-m-action="sort" data-m-col="PostTypeID" class="column">Post Type</th>
<th data-m-action="sort" data-m-col="Active" class="column">Active?</th>
<th data-m-action="sort" data-m-col="Name" class="column">Name</th>
<th data-m-action="sort" data-m-col="DateCreated" class="column">Date Created</th>
<th data-m-action="sort" data-m-col="DateModified" class="column">Date Modified</th>
</tr>
</thead>
<tbody data-m-type="table-body" data-m-state="hide">
<tr data-m-type="row" 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>
</body>
</html>