-
Notifications
You must be signed in to change notification settings - Fork 2
/
add_task.html
180 lines (177 loc) · 12.1 KB
/
add_task.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kanban Project Management Tool</title>
<link rel="icon" type="image/x-icon" href="./assets/img/favicon.png">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="./assets/style/add_task.css">
<link rel="stylesheet" href="./assets/style/fonts.css">
<script src="script.js"></script>
<script src="./assets/js/storage.js"></script>
</head>
<body id="body" onload="initAddTask(),init()"
onclick="closeFunction()">
<div class="flex max-h">
<div class="include-menu" w3-include-html="templates/menu.html"></div>
<div class="main max-h">
<div class="" w3-include-html="templates/header.html"></div>
<main class="main-container">
<div class="main-div overflow">
<h1 class="add-task-title">Add Task</h1>
<form id="add-task-form" action="" class="ad-task-form column-space-between"
onsubmit="startCreateTask('todos'); return false">
<div class="gap48">
<div class="add-task-input-div">
<div class="column add-task-input-div">
<label class="form-input-titel asterisk" for="add-task-title">Title</label>
<input id="add-task-title" class="add-task-input mb28" type="text" name="Title"
required placeholder="Enter a title">
</div>
<div class="column add-task-input-div">
<label class="form-input-titel" for="add-task-description">Description</label>
<textarea id="add-task-description" class="add-task-textarea" type="text"
name="Description" placeholder="Enter a Description"></textarea>
</div>
<div class="column add-task-input-div" onclick="doNotClose(event)">
<div onclick="dropdownMenuToggle('add-task-contact-div', 'assignet-arrow')">
<svg id="assignet-arrow" class="input-icon">
<use href="assets/img/icons.svg#arrow-dropdown-icon"></use>
</svg>
</div>
<label class="form-input-titel" for="add-task-assignet-to"
onclick="dropdownMenuToggle('add-task-contact-div', 'assignet-arrow')">Assignet
to</label>
<input id="add-task-assignet-to" class="add-task-select arrow-icon"
onclick="dropdownMenuToggle('add-task-contact-div', 'assignet-arrow')"
onkeyup="filterContactsForAddTask()" type="text"
placeholder="Select contacts to assign">
<div id="add-task-contact-div" class="dropdown-menu-div d-none">
<div style="height: 9px;"></div>
<div id="add-task-contact" class="dropdown-menu"></div>
<div style="height: 7px;"></div>
</div>
</div>
<div id="contacts-div"></div>
</div>
<div class="seperator"></div>
<div>
<div class="column add-task-input-div">
<label class="form-input-titel asterisk" for="add-task-date">Due date</label>
<input id="add-task-date" class="add-task-input mb28" type="date" name="Due date"
min="" required placeholder="dd//mm//yyyy">
</div>
<div class="column add-task-input-div">
<h2 class="form-input-titel">Prio</h2>
<div class="space-between gap8" id="prio-div">
<div id="prio-button-urgent" class="add-task-prio-button"
onclick="changePriority('urgent')">
Urgent
<svg viewBox="0 0 21 16">
<use href="assets/img/icons.svg#height-prio-icon"></use>
</svg>
</div>
<div id="prio-button-medium" class="add-task-prio-button medium"
onclick="changePriority('medium')">Medium
<svg viewBox="0 0 21 16">
<use href="assets/img/icons.svg#medium-prio-icon"></use>
</svg>
</div>
<div id="prio-button-low" class="add-task-prio-button"
onclick="changePriority('low')">Low
<svg viewBox="0 0 21 16">
<use href="assets/img/icons.svg#low-prio-icon"></use>
</svg>
</div>
</div>
</div>
<div class="column add-task-input-div" onclick="doNotClose(event)">
<div onclick="dropdownMenuToggle('add-task-category-list-div', 'category-arrow')">
<svg id="category-arrow" class="input-icon">
<use href="assets/img/icons.svg#arrow-dropdown-icon"></use>
</svg>
</div>
<h2 class="form-input-titel asterisk"
onclick="dropdownMenuToggle('add-task-category-list-div', 'category-arrow')">
Label</h2>
<input id="add-task-category" class="add-task-input add-task-select arrow-icon"
onclick="dropdownMenuToggle('add-task-category-list-div', 'category-arrow')"
type="text" placeholder="Select task category"
pattern="(Technical Task|User Story|HTML|CSS|JS|Testing)"
title="Gültige Werte: Technical Task, User Story, HTML, CSS, JS, Testing"
required>
<div id="add-task-category-list-div" class="dropdown-menu-div d-none">
<div style="height: 9px;"></div>
<div id="add-task-category-list" class="dropdown-menu">
<div id="task-label-technical" class="add-task-single"
onclick="selectLabel('Technical Task'); closeFunction()">Technical Task</div>
<div id="task-label-user" class="add-task-single"
onclick="selectLabel('User Story'); closeFunction()">User Story</div>
<div id="task-label-html" class="add-task-single"
onclick="selectLabel('HTML'); closeFunction()">HTML</div>
<div id="task-label-css" class="add-task-single"
onclick="selectLabel('CSS'); closeFunction()">CSS</div>
<div id="task-label-js" class="add-task-single" onclick="selectLabel('JS')">
JS</div>
<div id="task-label-tesig" class="add-task-single"
onclick="selectLabel('Testing'); closeFunction()">Testing</div>
</div>
<div style="height: 7px;"></div>
</div>
</div>
<div class="column add-task-input-div" onclick="doNotClose(event)">
<label class="form-input-titel" for="add-task-subtasks">Subtasks</label>
<input id="add-task-subtasks" class="add-task-input" onkeydown="handleEnterKey(event)" onclick="openSubtask()"
type="text" minlength="3" name="Subtasks" placeholder="Add new subtask">
<div id="subbtask-input-icon">
<button type="button" id="add-subtask-button" formnovalidate
onclick="openSubtask()">
<svg class="subtask-icons">
<use href="assets/img/icons.svg#plus-add-icon"></use>
</svg>
</button>
</div>
<ul id="subtask-container">
<li class="subbtask" contenteditable="true">
<span>das ist ein subtask</span>
</li>
<li class="subbtask" contenteditable="true">
das hier ist auch ein subtask wer weis denn sowas moin moin
<div>
<svg class="subtask-icons">
<use href="assets/img/icons.svg#x-icon"></use>
</svg>
<svg class="subtask-icons">
<use href="assets/img/icons.svg#hook-icon"></use>
</svg>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="space-between add-task-submit-container">
<div class="conditions-text">This field is required</div>
<div class="add-task-buttons-div">
<button id="clear-task-button" class="parrent-button-light" onclick="clearTask()"
type="reset">Clear ✖</button>
<button id="add-task-button" class="parrent-button-dark" type="submit">Create Task
<svg>
<use href="assets/img/icons.svg#hook-icon"></use>
</svg>
</button>
</div>
</div>
</form>
</div>
</main>
</div>
</div>
<div id="overlay-div" class="d-none center">
<img src="./assets/img/addTaskAdded.svg" alt="">
</div>
<script src="./assets/js/add_task.js"></script>
<script src="./assets/js/Add_task_second_script.js"></script>
</body>
</html>