-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
158 lines (154 loc) · 6.93 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mobilize">
<link rel="shortcut icon" href="assets/favicon.ico">
<title>Documents</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-multiselect.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.3/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="assets/css/app.css">
<link rel="stylesheet" href="assets/css/bootstrap-datepicker3.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-8">
<h1>Document Manager <img class="spinner" src="assets/spinner.gif"></h1>
</div>
<div class="col-md-2 col-md-offset-2">
<h1><button type="button" class="btn btn-success" data-toggle="modal" data-target="#detail-modal">Create New Document</button></h1>
</div>
</div> <!-- end row 1 -->
<div class="row">
<div class="pull-right date-selectors">
<form class="form-inline">
<div class="form-group">
<label for="class_select"><span class="glyphicon glyphicon-user"></span> </label>
<select id="class_select" class="form-control">
<option value="">All Classes</option>
</select>
</div>
<div class="form-group" style="margin-left: 15px;">
<label for="mindate"><span class="glyphicon glyphicon-calendar"></span></label>
<input class="form-control datepicker" id="mindate" placeholder="From">
</div>
<div class="form-group" style="margin-left: 5px;">
<label for="maxdate"><span class="glyphicon glyphicon-calendar"></span></label>
<input class="form-control datepicker" id="maxdate" placeholder="To">
</div>
</form>
</div>
</div>
<div class="row">
<br>
<table id="documents" class="display compact" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Creator</th>
<th>Classes</th>
<th>Modified Date</th>
<th>Privacy</th>
<th>Size</th>
<th>Edit</th>
<th>Download</th>
</tr>
</thead>
</table>
</div> <!-- end row 2 (table) -->
</div>
<div id="detail-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<div class="row">
<div class="col-md-8">
<h4 class="modal-title" id="detail-modal-title">Add New Document</h4>
</div>
<div class="col-md-2">
<button type="button" class="btn btn-danger writer btn-block" style="display:hidden;" id='modal-delete'>Delete</button>
</div>
<div class="col-md-2">
<form action="/app/document/read/contents" method="post" target="outputframe" id="modal-download" style='display:hidden;'>
<input type="hidden" name="document_id" value="x">
<input type="hidden" name="client" value="doc_app">
<input type="submit" class="btn btn-primary btn-block" value="Download">
</form>
</div>
</div>
</div>
<div class="modal-body">
<form action="/app/document/create" method="post" class="form-horizontal" id='createdoc' enctype="application/x-www-form-urlencoded">
<div class="form-group" id="modal-group-file">
<label for="file" class="col-sm-3 control-label">Select File</label>
<div class="col-sm-8"><input type="file" class="form-control writer file-input" id="modal-file" name="document"></div>
</div>
<div class="form-group">
<label for="modal-name" class="col-sm-3 control-label">Name</label>
<div class="col-sm-8"><input type="text" class="form-control writer" id="modal-name"></div>
</div>
<div class="form-group">
<label for="modal-description" class="col-sm-3 control-label">Description</label>
<div class="col-sm-8"><textarea rows="2" class="form-control writer" id="modal-description"></textarea></div>
</div>
<div class="form-group">
<label for="modal-creator" class="col-sm-3 control-label">Creator</label>
<div class="col-sm-8"><input type="text" class="form-control writer" id="modal-creator" readonly></div>
</div>
<div class="form-group">
<label for="modal-privacy" class="col-sm-3 control-label writer">Privacy State</label>
<div class="col-sm-8">
<select class="form-control writer" id="modal-privacy">
<option value="private">Private</option>
<option value="shared">Shared</option>
</select>
</div>
</div>
<div class="form-group" id="form-group-size" style="display:hidden;">
<label for="modal-size" class="col-sm-3 control-label">Size</label>
<div class="col-sm-8"><input type="text" class="form-control" id="modal-size" readonly></div>
</div>
<div class="form-group">
<label for="modal-class" class="col-sm-3 control-label" >Share to Class</label>
<div class="col-sm-8">
<select class="form-control writer" id="modal-class" multiple="multiple">
</select>
</div>
</div>
<div class="form-group">
<label for="modal-campaign" class="col-sm-3 control-label" >Share to Campaign</label>
<div class="col-sm-8">
<select class="form-control writer" id="modal-campaign" multiple="multiple">
</select>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3" id="button-row">
<button type="submit" class="btn btn-success writer" id='modal-save'>Save</button>
<button class="btn btn-default" data-dismiss="modal" aria-label="Close">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery-1.11.1.js"></script>
<script src="assets/js/jquery.cookie.js"></script>
<script src="assets/js/jquery.form.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="assets/js/ohmage.js"></script>
<script src="assets/js/underscore.js"></script>
<script src="assets/js/app.js"></script>
<script src="//cdn.datatables.net/1.10.3/js/jquery.dataTables.min.js"></script>
<script src="assets/js/jquery.datatables.file-size.js"></script>
<script src="assets/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="assets/js/bootstrap-datepicker.min.js"></script>
</body>
</html>