aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/pages/addNewPokemon.jsp
blob: 095ac40648881ee08970ac619379e0d826741cdc (plain) (blame)
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
boolean isAdmin=(Boolean)session.getAttribute("admin");
if(!isAdmin){
	response.sendRedirect("../index.jsp");
}
%>


<form method="post" action="addNewPokemonHelper.jsp">
<input type="text" name="name" required> Ime <br>
<input type="text" name="description" required> Opis <br>
<input type="number" step="1" name="hp" required> Hp <br>
<input type="text" name="base64Image" required> ImageString64 <br>

<h2>Abilities</h2>
<h3>ATTACK</h3>
<input type="text" name="abilitiesName" required> Ime <br>
<input type="text" name="abilitiesDesc" required> Opis <br>
<input type="hidden" name="abilitiesType" value="0" >
<input type="number" step="0.01" name="abilitiesPower" required> Snaga <br>
<h3>SPECIAL</h3>
<input type="text" name="abilitiesName" required> Ime <br>
<input type="text" name="abilitiesDesc" required> Opis <br>
<input type="hidden" name="abilitiesType" value="1">
<input type="number" step="0.01" name="abilitiesPower" required> Snaga <br>
<h3>HEAL</h3>
<input type="text" name="abilitiesName" required> Ime <br>
<input type="text" name="abilitiesDesc" required> Opis <br>
<input type="hidden" name="abilitiesType" value="2">
<input type="number" step="0.01" name="abilitiesPower" required> Snaga <br>
<h3>SHIELD</h3>
<input type="text" name="abilitiesName" required> Ime <br>
<input type="text" name="abilitiesDesc" required> Opis <br>
<input type="hidden" name="abilitiesType" value="3">
<input type="number" step="0.01" name="abilitiesPower" required> Snaga <br>

<button type="submit">Dodaj</button>



</form>


</body>
</html>