-
Notifications
You must be signed in to change notification settings - Fork 1
/
new_card.html
112 lines (66 loc) · 2.72 KB
/
new_card.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
<!DOCTYPE html>
<html ng-app="CardsApp">
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="./materialize/css/materialize.css" media="screen,projection" />
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--Linking manifest-->
<link rel="manifest" href="/cards/manifest.json">
</head>
<body ng-controller="CardsController">
<script type="text/javascript" src="./angular/angular.min.js"></script>
<div class="row">
<div class="col s12">
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper yellow lighten-1">
<a href="#" class="brand-logo black-text">New Card</a>
<a href="./cards!.html" data-target="mobile-demo" ><i class="material-icons black-text">close</i></a>
</div>
</nav>
</div>
</div>
</div>
<div class="row" style="padding: 20px">
<div class="input-field">
<input id="first_name" type="text" class="materialize-textarea" ng-model="head">
<label for="first_name">Heading </label>
<span class="helper-text">May/ May not be the question... Something snappy which helps you recollect</span>
</div>
<div class="file-field input-field">
<div class="btn yellow lighten-1 black-text">
<span>Image</span>
<input type="file" accept="image/*" id="files">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
<span class="helper-text">A picture of the question or an image supporting it</span>
</div>
<p style="font-size: 0.9em">Populate with possible options and select all that apply</p>
<p style="font-size: 0.9em"> ( Incase of multi-correct ) </p>
<div class="row" ng-repeat="opt in opts">
<div class="col s12">
<div class="row">
<p class="col s1">
<label>
<input name="group1" type="checkbox" ng-model="opt.bool" />
<span></span>
</label>
</p>
<input type="text" class="col s11" ng-model="opt.val">
</div>
</div>
</div>
<button class="btn yellow lighten-1 black-text" ng-click="createCard()">Add Card</button>
</div>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="./materialize/js/materialize.js"></script>
<script src="./main.js"></script>
<script src="./material_init.js"></script>
</body>
</html>