-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (83 loc) · 3.89 KB
/
index.html
File metadata and controls
92 lines (83 loc) · 3.89 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
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CRUD</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i&subset=latin-ext" rel="stylesheet">
</head>
<body>
<h1 class="kodilla-heading kodilla-heading--main">Kodilla CRUD App</h1>
<main class="crud container">
<section class="datatable">
<h2>Add a new task</h2>
<form
class="datatable__row datatable__row--add"
method="POST"
action="http://localhost:8080/v1/task/createTask"
data-task-add-form
>
<fieldset class="datatable__row-section datatable__row-section--input-section">
<label class="datatable__input-label">
Task name
</label>
<input type="text" name="title" placeholder="Insert a task name" required minlength="3">
</fieldset>
<fieldset class="datatable__row-section datatable__row-section--input-section">
<label class="datatable__input-label">
Task content
</label>
<textarea name="content" placeholder="Insert task content" required minlength="3"></textarea>
</fieldset>
<fieldset class="datatable__row-section datatable__row-section--button-section">
<button type="submit" data-task-add-button class="datatable__button">Add a task</button>
</fieldset>
</form>
</section>
<section class="datatable">
<h2>Tasks from the API</h2>
<div class="datatable__tasks-container" data-tasks-container></div>
</section>
</main>
<div class="template" data-datatable-row-template>
<form class="datatable__row" data-task-id="0">
<fieldset class="datatable__row-section datatable__row-section--input-section" data-task-name-section>
<label class="datatable__input-label">
Task name
</label>
<input type="text" name="title" placeholder="Insert a new task name" data-task-name-input required minlength="3">
<p class="datatable__field-value" data-task-name-paragraph></p>
</fieldset>
<fieldset class="datatable__row-section datatable__row-section--input-section" data-task-content-section>
<label class="datatable__input-label">
Task content
</label>
<textarea name="title" placeholder="Insert new task content" data-task-content-input required minlength="3"></textarea>
<p class="datatable__field-value" data-task-content-paragraph></p>
</fieldset>
<div class="datatable__row-section-wrapper">
<fieldset class="datatable__row-section datatable__row-section--button-section">
<button type="button" data-task-submit-update-button class="datatable__button datatable__button--editing ">Submit update</button>
<button type="button" data-task-edit-abort-button class="datatable__button datatable__button--editing">Abort update</button>
<button type="button" data-task-edit-button class="datatable__button">Edit</button>
<button type="button" data-task-delete-button class="datatable__button">Delete</button>
</fieldset>
<fieldset class="datatable__row-section datatable__row-section--trello-section">
<select class="datatable__select" name="board-name" data-board-name-select>
<option disabled selected>--- select an board ---</option>
</select>
<select class="datatable__select" name="list-name" data-list-name-select>
<option disabled selected>--- select a list ---</option>
</select>
<button type="button" data-trello-card-creation-trigger class="datatable__button datatable__button--card-creation">
Create a card
</button>
</fieldset>
</div>
</form>
</div>
<script src="jquery-3.2.1.min.js"></script>
<script src="script.js"></script>
</body>
</html>