source: source/MovieZilla-master/src/main/resources/templates/add-movie.html

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 5.3 KB
Line 
1<th:block xmlns:th="http://www.thymeleaf.org">
2 <section class="jumbotron text-center">
3 <div class="container">
4 <h1 class="jumbotron-heading">ADD NEW MOVIE</h1>
5 </div>
6 </section>
7
8 <div class="container">
9 <div class="row">
10 <div class="col-md-5">
11 <form th:action="@{/movies/add}" th:method="POST">
12 <input id="id" type="hidden" name="id" th:value="(${movies} != null ? ${movies} : '')">
13
14
15 <div class="form-group">
16 <label for="movie_id">Movie ID</label>
17 <input type="text"
18 class="form-control"
19 id="movie_id"
20 name="movie_id"
21 th:value="(${movies} != null ? ${movies.getMovie_id()} : '')"
22 required
23 placeholder="Your desired ID">
24 </div>
25
26
27 <div class="form-group">
28 <label for="movie_name">Movie name</label>
29 <input type="text"
30 class="form-control"
31 id="movie_name"
32 name="movie_name"
33 th:value="(${movies} != null ? ${movies.getMovie_name()} : '')"
34 required
35 placeholder="Enter Name">
36 </div>
37
38 <div class="form-group">
39 <label for="movie_age_category">Movie Age Category</label>
40 <input type="text"
41 class="form-control"
42 id="movie_age_category"
43 name="movie_age_category"
44 th:value="(${movies} != null ? ${movies.getMovie_age_category()} : '')"
45 required
46 placeholder="Enger Age Category">
47 </div>
48 <div class="form-group">
49 <label for="movie_film_director">Movie Film Director</label>
50 <input type="text"
51 class="form-control"
52 id="movie_film_director"
53 name="movie_film_director"
54 th:value="(${movies} != null ? ${movies.getMovie_film_director()} : '')"
55 required
56 placeholder="Enter Film Director">
57 </div>
58 <div class="form-group">
59 <label for="movie_production">Movie Production</label>
60 <input type="text"
61 class="form-control"
62 id="movie_production"
63 name="movie_production"
64 th:value="(${movies} != null ? ${movies.getMovie_production()} : '')"
65 required
66 placeholder="Enter Age Category">
67 </div>
68 <div class="form-group">
69 <label for="movie_cast">Movie Cast</label>
70 <input type="text"
71 class="form-control"
72 id="movie_cast"
73 name="movie_cast"
74 th:value="(${movies} != null ? ${movies.getMovie_cast()} : '')"
75 placeholder="Enter Cast">
76 </div>
77 <div class="form-group">
78 <label for="movie_time_duration">Movie Time Duration</label>
79 <input type="text"
80 class="form-control"
81 id="movie_time_duration"
82 name="movie_time_duration"
83 th:value="(${movies} != null ? ${movies.getMovie_time_duration()} : '')"
84 placeholder="Enter Time Duration">
85 </div>
86 <div class="form-group">
87 <label>Genre</label>
88 <select name="genre_id" class="form-control" autocomplete="off">
89 <option th:if="${genre} != null"
90 th:selected="${genre.getGenre_id() != null}"
91 th:each="genre : ${genre}"
92 th:value="${genre.getGenre_id()}"
93 th:text="${genre.getGenre_name()}">
94 </option>
95 <option th:if="${genre} == null"
96 th:each="genre : ${genre}"
97 th:value="${genre.getGenre_id()}"
98 th:text="${genre.getGenre_name()}">
99 </option>
100 </select>
101 </div>
102 <button id="submit" type="submit" class="btn btn-primary">Submit</button>
103 <a type="button" class="btn btn-primary" href="/movies">Back</a>
104
105 </form>
106
107 </div>
108 </div>
109 </div>
110</th:block>
Note: See TracBrowser for help on using the repository browser.