This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
/
index.jade
84 lines (73 loc) · 2.67 KB
/
index.jade
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
extends ../../../layouts/admin
block head
title Manage Categories
block neck
link(rel='stylesheet', href='/views/admin/categories/index.min.css?#{cacheBreaker}')
block feet
script(src='/views/admin/categories/index.min.js?#{cacheBreaker}')
block body
div.row
div.col-xs-12
div#header
div#filters
div#results-table
div#results-paging
script(type='text/template', id='tmpl-header')
div.page-header
form.form-inline.pull-right
div.input-group
input.form-control(name='pivot', type='text', placeholder='pivot', value!='<%= pivot %>')
input.form-control(name='name', type='text', placeholder='name', value!='<%= name %>')
button.btn.btn-primary.btn-add(type='button') Add New
h1 Categories
script(type='text/template', id='tmpl-filters')
form.filters
div.row
div.col-sm-3
label Pivot Search
input.form-control(name='pivot', type='text')
div.col-sm-3
label Name Search
input.form-control(name='name', type='text')
div.col-sm-3
label Sort By
select.form-control(name='sort')
option(value='_id') id ▲
option(value='-_id') id ▼
option(value='name') name ▲
option(value='-name') name ▼
div.col-sm-3
label Limit
select.form-control(name='limit')
option(value='10') 10 items
option(value='20', selected='selected') 20 items
option(value='50') 50 items
option(value='100') 100 items
script(type='text/template', id='tmpl-results-table')
table.table.table-striped
thead
tr
th
th pivot
th.stretch name
th id
tbody#results-rows
script(type='text/template', id='tmpl-results-row')
td
input.btn.btn-default.btn-sm.btn-details(type='button', value='Edit')
td <%- pivot %>
td <%- name %>
td.nowrap <%= _id %>
script(type='text/template', id='tmpl-results-empty-row')
tr
td(colspan='4') no documents matched
script(type='text/template', id='tmpl-results-paging')
div.well
div.btn-group.pull-left
button.btn.btn-default(disabled=true) Page <%= pages.current %> of <%= pages.total %>
button.btn.btn-default(disabled=true) Rows <%= items.begin %> - <%= items.end %> of <%= items.total %>
div.btn-group.pull-right
button.btn.btn-default.btn-page.btn-prev(data-page!='<%= pages.prev %>') Prev
button.btn.btn-default.btn-page.btn-next(data-page!='<%= pages.next %>') Next
div.clearfix
script(type='text/template', id='data-results') !{data.results}