added background image
This commit is contained in:
		| @@ -18,7 +18,7 @@ apply plugin: 'war' | |||||||
| apply plugin: 'application' | apply plugin: 'application' | ||||||
|  |  | ||||||
| group = 'de.jottyfan.camporganizer' | group = 'de.jottyfan.camporganizer' | ||||||
| version = '0.2.0' | version = '0.2.1' | ||||||
| sourceCompatibility = 17 | sourceCompatibility = 17 | ||||||
| mainClassName = "de.jottyfan.camporganizer.Main" | mainClassName = "de.jottyfan.camporganizer.Main" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,18 +1,24 @@ | |||||||
| package de.jottyfan.camporganizer.module.admin; | package de.jottyfan.camporganizer.module.admin; | ||||||
|  |  | ||||||
|  | import javax.servlet.http.HttpServletRequest; | ||||||
|  |  | ||||||
| import org.springframework.stereotype.Controller; | import org.springframework.stereotype.Controller; | ||||||
|  | import org.springframework.ui.Model; | ||||||
| import org.springframework.web.bind.annotation.GetMapping; | import org.springframework.web.bind.annotation.GetMapping; | ||||||
|  |  | ||||||
|  | import de.jottyfan.camporganizer.module.common.CommonController; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * |  * | ||||||
|  * @author jotty |  * @author jotty | ||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
| @Controller | @Controller | ||||||
| public class AdminController { | public class AdminController extends CommonController { | ||||||
|  |  | ||||||
| 	@GetMapping("/admin") | 	@GetMapping("/admin") | ||||||
| 	public String getMain() { | 	public String getMain(Model model, HttpServletRequest request) { | ||||||
|  | 		super.setupSession(model, request); | ||||||
| 		return "/admin/main"; | 		return "/admin/main"; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -31,8 +31,7 @@ html { | |||||||
| } | } | ||||||
|  |  | ||||||
| body { | body { | ||||||
| 	background-image: linear-gradient(to bottom right, rgb(255, 255, 255), | 	background-image: url('../images/background.jpg'); | ||||||
| 		rgb(154, 153, 150)); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| a { | a { | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								src/main/resources/static/images/background.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/main/resources/static/images/background.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 139 KiB | 
| @@ -15,44 +15,51 @@ | |||||||
| 		</ul> | 		</ul> | ||||||
| 	</th:block> | 	</th:block> | ||||||
| 	<th:block layout:fragment="content"> | 	<th:block layout:fragment="content"> | ||||||
| 		<div class="mainpage"> | 	<div class="mainpage"> | ||||||
| 			<div class="container"> | 		<script type="text/javascript"> | ||||||
| 				<div class="row"> | 			var mytoggle = new MyToggle(); | ||||||
| 					<div class="col-sm-6 col-md-4 col-lg-3" th:each="c : ${camps}"> | 		</script> | ||||||
| 						<div class="card bottomdist16"> | 		<div class="card bottomdist16" style="max-width: 660px; margin-left: auto; margin-right: auto; background: transparent" th:each="c : ${camps}"> | ||||||
| 							<div class="card-header"> | 			<div class="card-header mytoggle_btn" th:onclick="mytoggle.toggle('campdiv_[[${c.pk}]]')"> | ||||||
| 								<span th:text="${c.name}" class="headlinefont"></span><span class="headlinefont"> </span><span th:text="${#numbers.formatInteger(c.year, 0)}" class="headlinefont" | 				<span th:text="${c.name}" class="headlinefont"></span><span class="headlinefont"> </span><span th:text="${#numbers.formatInteger(c.year, 0)}" class="headlinefont" | ||||||
| 									th:if="${c.year != null}"></span> | 					th:if="${c.year != null}"></span> | ||||||
| 							</div> | 			</div> | ||||||
| 							<div class="card-body"> | 			<div th:id="'campdiv_' + ${c.pk}" class="card-body mytoggle_collapsed"> | ||||||
| 								<table style="width: 100%"> | 				<div class="container"> | ||||||
| 									<tr> | 					<div class="row"> | ||||||
| 										<th class="menufont" style="min-width: 64px">Ort</th> | 						<div class="col-sm-3">Ort</div> | ||||||
| 										<td><a th:href="${c.url}" th:text="${c.locationName}" class="menufont" target="_blank"></a></td> | 						<div class="col-sm-9"> | ||||||
| 									</tr> | 							<a th:href="${c.url}" th:text="${c.locationName}" target="_blank"></a> | ||||||
| 									<tr> | 						</div> | ||||||
| 										<th class="menufont">Alter</th> | 					</div> | ||||||
| 										<td class="menufont" th:text="${c.minAge} + ' - ' + ${c.maxAge}"></td> | 					<div class="row"> | ||||||
| 									</tr> | 						<div class="col-sm-3">Jungen und Mädchen</div> | ||||||
| 									<tr> | 						<div class="col-sm-9" th:text="${c.minAge} + ' - ' + ${c.maxAge}"></div> | ||||||
| 										<th class="menufont">Zeit</th> | 					</div> | ||||||
| 										<td><span class="menufont" th:text="${#temporals.format(c.arrive, 'dd.MM.')} + ' - ' + ${#temporals.format(c.depart, 'dd.MM.yyyy')}" | 					<div class="row"> | ||||||
| 											th:if="${c.arrive != null &&  c.depart != null}"></span></td> | 						<div class="col-sm-3">Zeit</div> | ||||||
| 									</tr> | 						<div class="col-sm-9"> | ||||||
| 									<tr> | 							<span th:text="${#temporals.format(c.arrive, 'dd.MM.')} + ' - ' + ${#temporals.format(c.depart, 'dd.MM.yyyy')}" th:if="${c.arrive != null &&  c.depart != null}"></span> | ||||||
| 										<th class="menufont">Preis</th> | 						</div> | ||||||
| 										<td class="menufont" th:text="${c.price}"></td> | 					</div> | ||||||
| 									</tr> | 					<div class="row"> | ||||||
| 									<tr> | 						<div class="col-sm-3">Preis</div> | ||||||
| 										<td colspan="2" style="text-align: center"><a class="btn btn-outline-primary buttonfont" th:href="@{/registration/{id}(id=${c.pk})}">jetzt anmelden</a></td> | 						<div class="col-sm-9" th:text="${c.price}"></div> | ||||||
| 									</tr> | 					</div> | ||||||
| 								</table> | 					<div class="row"> | ||||||
| 							</div> | 						<div class="col-sm-3">Ferien</div> | ||||||
|  | 						<div class="col-sm-9" th:text="${c.countries}"></div> | ||||||
|  | 					</div> | ||||||
|  | 					<div class="row"> | ||||||
|  | 						<div class="col-sm-3"></div> | ||||||
|  | 						<div class="col-sm-9"> | ||||||
|  | 							<a class="btn btn-primary buttonfont" th:href="@{/registration/{id}(id=${c.pk})}">jetzt anmelden</a> | ||||||
| 						</div> | 						</div> | ||||||
| 					</div> | 					</div> | ||||||
| 				</div> | 				</div> | ||||||
| 			</div> | 			</div> | ||||||
| 		</div> | 		</div> | ||||||
|  | 	</div> | ||||||
| 	</th:block> | 	</th:block> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
		Reference in New Issue
	
	Block a user