-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·132 lines (116 loc) · 6.32 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
<!DOCTYPE html>
<!--[if lt IE 7]>
<html lang="en" ng-app="wichtel" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html lang="en" ng-app="wichtel" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html lang="en" ng-app="wichtel" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en" ng-app="wichtel" class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Wichtel</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="libs/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="libs/animate-css/animate.min.css">
<link rel="stylesheet" href="css/styles.css">
<script src="libs/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!--[if lte IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
<div class="container" ng-controller="wichtelController">
<div class="notifications">
<div class="alert alert-info" ng-class="{'ng-enter fadeInDown': sent}" role="alert" ng-show="sent">
{{NOTIFICATIONS.sent}}
</div>
<div class="alert alert-success" ng-class="{'ng-enter fadeInDown': success}" role="alert" ng-show="success">
{{NOTIFICATIONS.success}} <span>- Lade <a ng-href="download.php">hier</a> deine Sicherungsdatei</span>
</div>
<div class="alert alert-warning" ng-class="{'ng-enter fadeInDown': notEnoughWichtels}" role="alert" ng-show="notEnoughWichtels">
{{NOTIFICATIONS.warning}}
</div>
<div class="alert alert-danger" ng-class="{'ng-enter fadeInDown': error}" role="alert" ng-show="error">
{{NOTIFICATIONS.error}}
</div>
</div>
<h1>Wichtelmann Control Center</h1>
<form role="form" name="wichtelForm" ng-submit="wichtelExpress(wichtelForm.$valid)" novalidate>
<h3><small>Absender [Optional]</small></h3>
<div class="row sender">
<ng-form name="innerSenderForm">
<div class="col-xs-10 col-md-5">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="form-group">
<label for="senderEmail">E-Mail</label>
<div class="input-group">
<div class="input-group-addon">@</div>
<input class="form-control" name="email" id="senderEmail" placeholder="wichtelmann@nordpol.gov" ng-model="sender.email" type="email">
</div>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="form-group">
<label for="senderSubject">Betreff</label>
<input class="form-control" name="subject" id="senderSubject" placeholder="Pssst... dein Wichtel ist..." ng-model="sender.subject" type="text">
</div>
</div>
</div>
</div>
<div class="col-xs-10 col-md-5">
<div class="form-group">
<label for="senderMessage">Nachricht</label>
<input class="form-control" name="message" id="senderMessage" placeholder="Kauft ein Wichtelgeschenk für max. 15€" ng-model="sender.message">
</div>
</div>
<div class="col-xs-2 col-md-2"></div>
</ng-form>
</div>
<h3><small>Wichtel</small></h3>
<div class="row">
<div class="col-md-12">
<button type="button" class="btn btn-success" ng-click="addWichtel()">Wichtel hinzufügen</button>
<mark> Fülle die Felder mit Namen und E-Mail Adresse der Wichtel</mark>
</div>
</div>
<div class="row" ng-repeat="(index, wichtel) in wichtels" ng-class="{last : $last, fadeInDown : animation.fadeIn, fadeOutUp : animation.fadeOut}">
<ng-form name="innerWichtelForm">
<div class="col-xs-10 col-md-5" ng-class="{ 'has-error' : innerWichtelForm.name.$invalid && (!innerWichtelForm.name.$pristine || submitted) }">
<input class="form-control" name="name" placeholder="Name" ng-model="wichtel.name" required>
</div>
<div class="col-xs-10 col-md-5">
<div class="input-group" ng-class="{ 'has-error' : innerWichtelForm.email.$invalid && (!innerWichtelForm.email.$pristine || submitted) }">
<div class="input-group-addon">@</div>
<input class="form-control" name="email" placeholder="eMail" ng-model="wichtel.email" type="email" required>
</div>
</div>
<div class="col-xs-2 col-md-2">
<button type='button' class="btn btn-danger glyphicon glyphicon-trash pull-left" aria-hidden="true" ng-click="removeWichtel(index)"></button>
</div>
</ng-form>
</div>
<div class="row">
<div class="col-md-4">
<button type="submit" class="btn btn-default" ng-disabled="wichtelForm.$invalid || sent">
Wichtel versenden
</button>
</div>
</div>
</form>
</div>
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
-->
<script src="libs/angular/angular.min.js"></script>
<script src="libs/angular-animate/angular-animate.min.js"></script>
<script src="app.js"></script>
<script src="config/config.js"></script>
<script src="controller/wichtelController.js"></script>
</body>
</html>