-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (83 loc) · 3.49 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Task Management App</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app" class="pushable">
<div class="ui sidebar inverted vertical menu visible fixed left">
<div class="ui logo item">
<b><i class="icon tasks purple"></i> Task Manager</b>
</div>
<div class="item">
<div class="ui message green">
User this tool to manageyour todos. Have Fun!
</div>
</div>
<div class="item" v-if="message">
<div class="ui message blue" >
<i class="icon info circle"></i> {{ message }}
</div>
</div>
</div>
<div class="ui container pusher">
<div class="ui grid">
<div class="six wide column">
<div id="todo" class="tasklist">
<div class="ui header">
<i class="icon play circle orange"></i> In Progress Task ({{ todoTasks.length }})
</div>
<task v-bind:task="task" v-for="task in todoTasks" />
</div>
<div id="completed" class="tasklist">
<div class="ui header">
<i class="icon check circle green"></i> Completed Task ({{completedTasks.length}})
</div>
<task v-bind:task="task" v-for="task in completedTasks" />
</div>
</div>
<div class="six wide column">
<div id="editor" class="details ui raise segment purple">
<div class="ui header grid">
<div class="left floated nine wide column">
<i class="icon edit violet"></i> Details
</div>
<div class="right floated five wide column">
<button class="ui green button right float" v-on:click="clear">
<i class="icon plus circle"></i> New
</button>
</div>
</div>
<div class="ui segment">
<form class="ui form" v-on:submit.prevent="(action == 'create') ? createTask($event) : updateTask($event, task.id)" >
<input type="hidden" name="id" v-model="task.id"/>
<div class="field">
<label>Name</label>
<input type="text" name="name" placeholder="Name" required = "true" v-model="task.name">
</div>
<div class="field">
<label>Description</label>
<input type="text" name="description" placeholder="Description" required = "true" v-model="task.description">
</div>
<div class="field inline">
<label>Completed</label>
<input type="checkbox" name="completed" v-model="task.completed"/>
</div>
<button class="ui button green" > Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="app.js">
</script>
</body>
</html>