forked from ironhack-labs/lab-ajax-crud-characters
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
92 lines (91 loc) · 3.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./public/stylesheets/style.css">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<title>IH Characters</title>
</head>
<body>
<section class="container">
<h1>Ironhack Characters API</h1>
<div class="characters-container">
<div class="character-info">
<div class="name">Character Name</div>
<div class="occupation">Character Occupation</div>
<div class="cartoon">Is a Cartoon?</div>
<div class="weapon">Character Weapon</div>
</div>
</div>
<section class="operations">
<div class="operation">
<button id="fetch-all">Fetch all</button>
</div>
<div class="operation">
<label for="character-id">Search by ID: </label>
<input type="text" name="character-id">
<button id="fetch-one">Fetch one</button>
</div>
<div class="operation delete">
<label for="character-id-delete">Delete by ID: </label>
<input type="text" name="character-id-delete">
<button id="delete-one">Delete one</button>
</div>
</section>
</section>
<section class="container">
<section class="form-container">
<h2>New Character</h2>
<form id="new-character-form" class="character-form">
<div class="field">
<label for="name">Name: </label>
<input type="text" name="name">
</div>
<div class="field">
<label for="occupation">Occupation: </label>
<input type="text" name="occupation">
</div>
<div class="field">
<label for="weapon">Weapon: </label>
<input type="text" name="weapon">
</div>
<div class="field">
<label for="cartoon">Is a Cartoon: </label>
<input name="cartoon" type="checkbox">
</div>
<button id="send-data">Create</button>
</form>
</section>
<section class="form-container">
<h2>Edit Character</h2>
<form id="edit-character-form" class="character-form">
<div class="field">
<label for="id">ID: </label>
<input type="text" name="chr-id">
</div>
<div class="field">
<label for="name">Name: </label>
<input type="text" name="name">
</div>
<div class="field">
<label for="occupation">Occupation: </label>
<input type="text" name="occupation">
</div>
<div class="field">
<label for="weapon">Weapon: </label>
<input type="text" name="weapon">
</div>
<div class="field">
<label for="cartoon">Is a Cartoon: </label>
<input name="cartoon" type="checkbox">
</div>
<button id="send-data">Update</button>
</form>
</section>
</section>
<script type="text/javascript" src="./public/javascript/APIHandler.js"></script>
<script type="text/javascript" src="./public/javascript/index.js"></script>
</body>
</html>