-
Notifications
You must be signed in to change notification settings - Fork 3
/
MobiApp.html
214 lines (195 loc) · 7.08 KB
/
MobiApp.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<head>
<title>MobiAPP</title>
</head>
<template name="ApplicationLayout">
<!--<h1>{{i18n 'helloWorld'}}</h1>-->
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="hidden-xs hidden-sm navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<span class="logo-lg"> <img src="images/MobiAppLogo2.png" style="width: 10%; height: 100%" alt="User Image"></span></a>
</div>
<div class="hidden-xs hidden-sm collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/new-issue">{{i18n 'NewIssue'}}</a></li>
<li><a href="/issues-list">{{i18n 'SeeSubmitted'}}</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/about">{{i18n 'AboutUs'}}</a></li>
<li><a href="/logout">Log Out</a></li>
</ul>
</div>
</div>
</nav>
</body>
<article>
<div class="container">
{{> yield}}
</div>
</article>
<footer>
{{> yield "footer"}}
</footer>
</template>
<template name="Home">
<div class="container">
<div class="row">
<h1 style="text-align: center; padding-bottom:20px;">MobiApp</h1>
</div>
<div class="row">
<div class="col-xs-6 col-md-3" style="padding-bottom:20px">
<a href="/new-issue"><img src="images/new-issue.png" style="max-width:100%;"></a>
</div>
<div class="col-xs-6 col-md-3" style="padding-bottom:20px">
<a href="/issues-list"><img src="images/issues-list.png" style="max-width:100%;"></a>
</div>
<div class="col-xs-6 col-md-3">
<a href="/about"><img src="images/about-us.png" style="max-width:100%;"></a>
</div>
<div class="col-xs-6 col-md-3">
<a href="/logout"><img src="images/log-out.png" style="max-width:100%;"></a>
</div>
</div>
</div>
</template>
<template name="newIssue">
<form class="form-horizontal">
<fieldset>
<legend>{{i18n 'SubmitTheIssue'}}</legend>
<div class="form-group {{flagTitle}}" >
<label for="issue-title" class="col-lg-2 control-label">{{i18n 'Title'}}</label>
<div class="col-lg-10">
<span class="help-block">{{i18n 'HowCall'}}</span>
<input name="title" type="text" class="form-control" id="issue-title" placeholder={{i18n 'TitleOfIssue'}}>
</div>
</div>
<div class="form-group {{flagDescription}}">
<label for="issue-description" class="col-lg-2 control-label">{{i18n 'Description'}}</label>
<div class="col-lg-10">
<span class="help-block">{{i18n 'GiveShort'}}</span>
<textarea class="form-control" rows="1" name="description" id="issue-description" placeholder={{i18n 'DescribeHere'}}></textarea>
</div>
</div>
{{#if showMap}}
{{> GoogleMap}}
{{else}}
{{> LocationForm}}
{{/if}}
<div class="form-group">
<label for="file-submit" class="col-lg-2 control-label">{{i18n 'Photo'}}</label>
<div class="col-lg-10" id="file-submit">
<span class="help-block">{{i18n 'ShowUs'}}</span>
<input type="file" class="myFileInput" accept="image/*">
</div>
</div>
<div class="form-group">
<label for="select" class="col-lg-2 control-label">Selects</label>
<div class="col-lg-10" id="select">
<span class="help-block">{{i18n 'Inform'}}</span>
<select multiple="" class="form-control">
<option>{{i18n 'SaoPauloTransport'}}</option>
<option>{{i18n 'Police'}}</option>
<option>{{i18n 'CityHall'}}</option>
<option selected="selected">{{i18n 'Other'}}</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<div class="checkbox">
<label>
<input type="checkbox" name="updcheck">{{i18n 'Updates'}}
</label>
</div>
<br>
<button type="submit" class="btn btn-primary" value="Submit Issue" style="float: left;">{{i18n 'Submit'}}</button>
<button type="reset" class="btn btn-default" style="float: right;">{{i18n 'Cancel'}}</button>
</div>
</div>
</fieldset>
</form>
</template>
<template name="IssuesList">
<div class ="container">
<h2>{{i18n Title}}</h2>
<table class="table table-striped table-hover ">
<thead>
<tr>
<th>{{i18n 'Title'}}</th>
<th>{{i18n 'Description'}}</th>
<th>{{i18n 'Status'}}</th>
<th>{{i18n 'LastModified'}}</th>
</tr>
</thead>
<tbody>
{{#each issues}}
{{> task}}
{{/each}}
</tbody>
</table>
</div>
</template>
<template name="task">
<tr>
<td>{{title}}</td>
<td>{{description}}</td>
<td><span class="label label{{label_mapper status}}">{{status}}</span></td>
<td>{{lastModified}}</td>
</tr>
</template>
<template name="GoogleMap">
<div class="form-group {{flagLocation}}">
<label for="issue-description" class="col-lg-2 control-label">{{i18n 'Location'}}</label>
<div class="col-lg-10">
<span class="help-block">{{i18n 'GpsDetail'}}</span>
<textarea class="form-control" rows="2" name="location" id="issue-location" placeholder={{i18n 'WhereIt'}}></textarea>
</div>
</div>
</template>
<template name="LocationForm">
<div class="form-group {{flagLocation}}">
<label for="issue-description" class="col-lg-2 control-label">Location</label>
<div class="col-lg-10">
<span class="help-block">You have your GPS off so provide us with the address</span>
<textarea class="form-control" rows="2" name="location" id="issue-location" placeholder="Where it happened?"></textarea>
</div>
</div>
</template>
<template name="About">
<div class="row">
<h1 style="text-align: center; padding-bottom:20px;">Our Team</h1>
</div>
<div class="row">
<div class="col-xs-6 col-md-3" style="padding-bottom:20px">
<img src="images/arthur.png" style="max-width:100%;">
</div>
<div class="col-xs-6 col-md-3 col-md-offset-1" style="padding-bottom:20px">
<img src="images/michelle.png" style="max-width:100%;">
</div>
<div class="col-xs-6 col-md-3 col-md-offset-1" style="padding-bottom:20px">
<img src="images/oskar.png" style="max-width:100%;">
</div>
<div class="col-xs-6 col-md-3 col-md-offset-2" style="padding-bottom:20px">
<img src="images/kenny.png" style="max-width:100%;">
</div>
<div class="col-xs-6 col-xs-offset-3 col-md-3 col-md-offset-1" style="padding-bottom:20px">
<img src="images/paulo.png" style="max-width:100%;">
</div>
</div>
</template>
<template name="Login">
{{> atForm}}
</template>
<template name="Footer">
<div class='container'>
<hr />
<p>Copyright © Mobilab, 2015.</p>
</div>
</template>