This repository has been archived by the owner on Feb 21, 2018. It is now read-only.
forked from ubergesundheit/tshirt_bestellung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (105 loc) · 5.02 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
<!doctype html>
<html ng-app="shirtApp">
<head>
<meta charset="utf-8">
<title>T-Shirt Bestellliste</title>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/ngstorage/ngStorage.js"></script>
<script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script>
<script src="json2csv.js"></script>
<script src="ShirtCtrl.js"></script>
<link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body ng-controller="ShirtCtrl">
<div id="form">
<form accept-charset="UTF-8" name="form" novalidate>
<div class="field">
<input class="form-input" placeholder="Name" type="text" ng-model="shirt.shirtName" required />
</div>
<div class="field">
<input class="form-input" placeholder="E-Mail" type="email" ng-model="shirt.shirtEmail" required />
</div>
<div class="field">
<label for="shirt_anzahl">Anzahl</label><br />
<input class="form-input" type="number" min="1" ng-model="shirt.shirtAnzahl" />
</div>
<div class="field">
<span ng-repeat="study in studies">
<input id="shirt_studiengang_{{study}}" type="radio" value="{{study}}" ng-model="shirt.shirtStudiengang" />
<label class="radio_label {{study}}" for="shirt_studiengang_{{study}}">{{study}}</label>
</span>
<input type="hidden" ng-model="shirt.shirtStudiengang" required />
</div>
<div class="field">
<span ng-repeat="gen in gender">
<input id="shirt_geschlecht_{{gen}}" type="radio" value="{{gen}}" ng-model="shirt.shirtGeschlecht" />
<label class="radio_label {{gen}}" for="shirt_geschlecht_{{gen}}">{{gen}}</label>
</span>
<input type="hidden" ng-model="shirt.shirtGeschlecht" required>
</div>
<div class="field">
<span ng-repeat="size in sizes">
<input id="shirt_groesse_{{size}}" type="radio" value="{{size}}" ng-model="shirt.shirtGroesse" />
<label class="radio_label" for="shirt_groesse_{{size}}">{{size}}</label>
</span>
<input type="hidden" ng-model="shirt.shirtGroesse" required>
</div>
<div class="field preview">
<div class="selector_container" style="margin-left:18%;">
<span ng-repeat="color in colors">
<input id="shirt_farbe_{{color}}" type="radio" value="{{color}}" ng-model="shirt.shirtFarbe" />
<label class="radio_label selector_label {{color}}" for="shirt_farbe_{{color}}" title="{{color}}"></label>
</span>
<input type="hidden" ng-model="shirt.shirtFarbe" required>
</div>
<div class="shirt" ng-class="shirt.shirtFarbe">
<p class="globus" ng-class="shirt.shirtAufdruck">g</p>
<p class="shirt_text" data-study="{{shirt.shirtStudiengang.toLowerCase()}}" ng-class="shirt.shirtAufdruck"> | münster</p>
</div>
<div class="selector_container">
<span ng-repeat="print in prints">
<input id="shirt_aufdruck_{{print}}" type="radio" value="{{print}}" ng-model="shirt.shirtAufdruck" />
<label class="radio_label selector_label {{print}}" for="shirt_aufdruck_{{print}}" title="{{print}}">{{bigN(print)}}</label>
</span>
<input type="hidden" ng-model="shirt.shirtAufdruck" required>
</div>
</div>
<div class="actions">
Shirt: {{shirt.shirtFarbe}}<br />Aufdruck: {{shirt.shirtAufdruck}}
<input type="reset" />
<button class="form-input" ng-click="addShirt()" ng-disabled="form.$invalid || isUnchanged(shirt)">Neue Bestellung</button>
</div>
</form>
</div>
<div id="tab">
<table>
<tbody>
<tr class="tabhead">
<td> </td>
<td>Name</td>
<td>E-Mail</td>
<td>Anzahl</td>
<td>Studiengang</td>
<td>Geschlecht</td>
<td>Größe</td>
<td>Farbe</td>
<td>Aufdruck</td>
</tr>
<tr ng-repeat="shirt in $storage.shirts | orderBy:'studiengang'">
<td><a ng-click="deleteShirt(shirt)" href="">×</a></td>
<td><a href="" e-required editable-text="shirt.name" buttons="no">{{ shirt.name }}</a></td>
<td><a href="" e-required editable-text="shirt.email" buttons="no">{{ shirt.email }}</a></td>
<td><a href="" e-required editable-text="shirt.anzahl" buttons="no" e-min="1">{{ shirt.anzahl }}</a></td>
<td><a href="" e-required editable-select="shirt.studiengang" e-ng-options="s for s in studies" buttons="no">{{ shirt.studiengang }}</a></td>
<td><a href="" e-required editable-select="shirt.geschlecht" e-ng-options="g for g in gender" buttons="no">{{ shirt.geschlecht }}</a></td>
<td><a href="" e-required editable-select="shirt.groesse" e-ng-options="s for s in sizes" buttons="no">{{ shirt.groesse }}</a></td>
<td><a href="" e-required editable-select="shirt.farbe" e-ng-options="f for f in colors" buttons="no">{{ shirt.farbe }}</a></td>
<td><a href="" e-required editable-select="shirt.aufdruck" e-ng-options="p for p in prints" buttons="no">{{ shirt.aufdruck }}</a></td>
</tr>
</tbody>
</table>
<a ng-click="download()" href="#">Daten herunterladen</a> | <a ng-click="deleteShirts()" href="">Alle löschen</a>
</div>
</body>
</html>