blob: b77d5d66cdf57c9151ce9116c07f31df4bfb422f (
plain)
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
|
<header>
<div class="header-content">
<form action="/search/courses" method="get" id="search-field">
<section class="header-content-inner">
<p><strong>The solutions to all your problems</strong></p>
<hr> <!-- Divider -->
<div class="search col-md-8 col-lg-8 col-md-offset-2">
<!-- Search-bar, Drop-down and Prompt -->
{{# if messages.error }}
<section class="alert alert-danger custom-Alert">
<h4>{{ messages.error }}</h4>
</section>
{{/if}}
{{# if success }}
<section class="alert alert-success">
<!-- Change those to banners later -->
<h2>Signup Successful!</h2>
</section>
{{ else }}
{{# if errors }}
<section class="alert alert-danger">
<ul>
{{# each errors }}
<li>{{ this.msg }}</li>
{{/each}}
</ul>
</section>
{{/if}}
{{/if}}
{{#if flashMsg}}
<section class="alert alert-danger">
{{flashMsg}}
</section>
{{/if}}
<div class="input-group">
<!-- Search Category Drop-Down -->
<div class="input-group-btn">
<button type="button"
class="btn btn-default dropdown-toggle search-button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false" id="search-drop-down">
<span id="drop-down-value">Courses</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="search-type">
<!-- add classes to <a> refs, on click, check texts, hide/adjust,
change action etc. accordingly -->
<li><a href="#" class="search-menu">Courses</a></li>
<li><a href="#" class="search-menu">Users</a> </li>
</ul>
</div>
<!-- Search bar -->
<input type="text"
id = "user-input"
class="form-control"
aria-label="..."
name="search"
placeholder="Enter course name">
<!-- Prompt Search -->
<span class="input-group-btn">
<button id = 'go-button'
class="btn btn-default search-button go-button"
type="submit">Go!</button>
</span>
</div>
</div>
<!-- Site Description -->
<h5 class="home-intro">
Solutions.repo is a community driven service that provides visitors
with solutions to past UofT Exams.
</h5>
</section>
</form>
</div>
</header>
|