forked from philippearnaud/listio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 1.22 KB
/
Copy pathindex.html
File metadata and controls
31 lines (31 loc) · 1.22 KB
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
<!DOCTYPE html>
<html ng-app="todoApp">
<head>
<meta charset="UTF-8">
<title>Listio</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" />
<script src="angular.min.js" type="text/javascript"></script>
<script src="todo.js" type="text/javascript" charset="utf-8"> </script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"> </script>
</head>
<body>
<h1>Listio</h1>
<div ng-controller="TodoController">
<a href="" ng-click="reset()"> Reset </a>
<span> <ng-pluralize count="todos.length" when="{
'0': 'Bouh, pas de collègue, pas de croissant !', '1':'Un seul collègue, le hasard ne sera pas en ta faveur', 'other':'OUHOU la teuf'}"></span>
<ul class="unstyled">
<li ng-repeat="todo in todos">
<input type="checkbox" ng-model="todo.done">
<span class="done-{{todo.done}}">{{todo.text}}</span>
</li>
</ul>
<form ng-submit="addTodo()">
<input type="text" ng-model="todoText" size="30" placeholder="Ajoute l'email d'un collègue" name="email" required>
<input class="btn-primary" type="submit" value="add">
<span class="error" ng-show="myForm.email.$error.required">
Ce n'est pas un email valide </span>
</form>
</div>
</body>
</html>