eye candy
This commit is contained in:
		| @@ -13,7 +13,7 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; | ||||
|  * | ||||
|  */ | ||||
| public class BookingBean implements Serializable { | ||||
| 	private static final long serialVersionUID = 2L; | ||||
| 	private static final long serialVersionUID = 4L; | ||||
|  | ||||
| 	private Integer pk; | ||||
| 	private String forename; | ||||
| @@ -39,6 +39,8 @@ public class BookingBean implements Serializable { | ||||
| 	private Boolean isOver; | ||||
| 	private String campName; | ||||
| 	private String registrator; | ||||
| 	private Boolean accept; | ||||
| 	private String subscriber; | ||||
|  | ||||
| 	/** | ||||
| 	 * @return the forename | ||||
| @@ -358,4 +360,20 @@ public class BookingBean implements Serializable { | ||||
| 		this.registrator = registrator; | ||||
| 	} | ||||
|  | ||||
| 	public Boolean getAccept() { | ||||
| 		return accept; | ||||
| 	} | ||||
|  | ||||
| 	public void setAccept(Boolean accept) { | ||||
| 		this.accept = accept; | ||||
| 	} | ||||
|  | ||||
| 	public String getSubscriber() { | ||||
| 		return subscriber; | ||||
| 	} | ||||
|  | ||||
| 	public void setSubscriber(String subscriber) { | ||||
| 		this.subscriber = subscriber; | ||||
| 	} | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -14,7 +14,6 @@ import org.jooq.Condition; | ||||
| import org.jooq.DSLContext; | ||||
| import org.jooq.Record; | ||||
| import org.jooq.SelectConditionStep; | ||||
| import org.jooq.impl.DSL; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Repository; | ||||
| import org.springframework.transaction.annotation.Transactional; | ||||
| @@ -59,6 +58,9 @@ public class IndexGateway { | ||||
| 					    T_PERSON.CREATED, | ||||
| 					    T_PERSON.EMAIL, | ||||
| 					    T_PERSON.SEX, | ||||
| 					    T_PERSON.ACCEPT, | ||||
| 					    T_PROFILE.FORENAME, | ||||
| 					    T_PROFILE.SURNAME, | ||||
| 					    REGISTRATOR.FORENAME, | ||||
| 					    REGISTRATOR.SURNAME, | ||||
| 					    V_CAMP.NAME, | ||||
| @@ -103,6 +105,7 @@ public class IndexGateway { | ||||
| 			bean.setUrl(r.get(V_CAMP.URL)); | ||||
| 			bean.setIsOver(r.get(V_CAMP.IS_OVER)); | ||||
| 			bean.setCampName(r.get(V_CAMP.NAME)); | ||||
| 			bean.setAccept(r.get(T_PERSON.ACCEPT)); | ||||
| 			StringBuilder buf = new StringBuilder(); | ||||
| 			String forename = r.get(REGISTRATOR.FORENAME); | ||||
| 			String surname = r.get(REGISTRATOR.SURNAME); | ||||
| @@ -111,6 +114,14 @@ public class IndexGateway { | ||||
| 			} | ||||
| 			buf.append(surname != null ? surname : ""); | ||||
| 			bean.setRegistrator(buf.toString()); | ||||
| 			buf = new StringBuilder(); | ||||
| 			String regForename = r.get(T_PROFILE.FORENAME); | ||||
| 			String regSurname = r.get(T_PROFILE.SURNAME); | ||||
| 			if (regForename != null) { | ||||
| 			buf.append(regForename).append(" "); | ||||
| 			} | ||||
| 			buf.append(regSurname != null ? regSurname : ""); | ||||
| 			bean.setSubscriber(buf.toString()); | ||||
| 			list.add(bean); | ||||
| 		} | ||||
| 		return list; | ||||
|   | ||||
| @@ -52,7 +52,7 @@ | ||||
| 									</tr> | ||||
| 									<tr> | ||||
| 										<th>Kontostand</th> | ||||
| 										<td><span th:text="${#strings.replace(#numbers.formatCurrency(booker.paid), '¤', '€')}" th:if="${booker.paid != null}"></span> | ||||
| 										<td><span th:text="${#numbers.formatDecimal(booker.paid, 1, 2) + ' €'}" th:if="${booker.paid != null}"></span> | ||||
| 									</tr> | ||||
| 								</tbody> | ||||
| 							</table> | ||||
|   | ||||
| @@ -35,7 +35,7 @@ | ||||
| 								<td th:text="${b.sex}"></td> | ||||
| 								<td th:text="${b.camp}"></td> | ||||
| 								<td th:text="${b.role}"></td> | ||||
| 								<td><span th:text="${#strings.replace(#numbers.formatCurrency(b.paid), '¤', '€')}"></span> | ||||
| 								<td><span th:text="${#numbers.formatDecimal(b.paid, 1, 2) + ' €'}" th:if="${b.paid != null}"></span> | ||||
| 									<form action="#" th:action="@{'/business/bookings/payment/' + ${b.pk}}" th:object="${addBean}" method="post"> | ||||
| 										<input type="number" step="0.01" th:field="*{payment}"> <input type="submit" style="padding: 4px" value="einzahlen"> | ||||
| 									</form></td> | ||||
|   | ||||
| @@ -30,7 +30,7 @@ | ||||
| 							<tr> | ||||
| 								<td th:text="${#numbers.formatDecimal(b.campYear, 1, 0)}"></td> | ||||
| 								<td><a th:href="@{/business/camp/{id}(id=${b.campId})}" th:text="${b.campName}" class="tablelink" title="Freizeitübersicht laden"></a></td> | ||||
| 								<td th:text="${#strings.replace(#numbers.formatCurrency(b.budget), '¤', '€')}"></td> | ||||
| 								<td th:text="${#numbers.formatDecimal(b.budget, 1, 2) + ' €'}"></td> | ||||
| 							</tr> | ||||
| 						</th:block> | ||||
| 					</tbody> | ||||
|   | ||||
| @@ -52,7 +52,7 @@ | ||||
| 									</tr> | ||||
| 									<tr> | ||||
| 										<td>Beiträge</td> | ||||
| 										<th th:text="${#strings.replace(#numbers.formatCurrency(booking.paid), '¤', '€')}"></th> | ||||
| 										<th><span th:text="${#numbers.formatDecimal(booking.paid, 1, 2) + ' €'}" th:if="${booking.paid != null}"></span></th> | ||||
| 								</tbody> | ||||
| 							</table> | ||||
| 						</div> | ||||
| @@ -79,7 +79,7 @@ | ||||
| 											<td><a class="btn btn-icon-silent" th:href="@{/business/bookings/{id}(id=${b.pk})}" title="bearbeiten" th:text="${b.name}"></a></td> | ||||
| 											<td th:text="${b.sex}"></td> | ||||
| 											<td th:text="${b.role}"></td> | ||||
| 											<td th:text="${#strings.replace(#numbers.formatCurrency(b.paid), '¤', '€')}"></td> | ||||
| 											<td><span th:text="${#numbers.formatDecimal(b.paid, 1, 2) + ' €'}" th:if="${b.paid != null}"></span></td> | ||||
| 											<td th:text="${#temporals.format(b.bookingDate, 'dd.MM.yyyy')}"></td> | ||||
| 											<td th:text="${b.accept == null ? '' : (b.accept ? 'Ja' : 'abgelehnt')}"></td> | ||||
| 										</tr> | ||||
|   | ||||
| @@ -72,10 +72,10 @@ | ||||
| 						</div> | ||||
| 						<div class="card-footer"> | ||||
| 							<div th:if="${b.created != null}"> | ||||
| 								angemeldet am <span th:text="${#temporals.format(b.created, 'dd.MM.yyyy')}"></span> | ||||
| 								angemeldet am <span th:text="${#temporals.format(b.created, 'dd.MM.yyyy')}"></span> von <span th:text="${b.subscriber}"></span> | ||||
| 							</div> | ||||
| 							<div th:if="${!#strings.isEmpty(b.registrator)}"> | ||||
| 								bearbeitet von <span th:text="${b.registrator}"></span> | ||||
| 							<div th:if="${b.accept != null}"> | ||||
| 								<span th:text="${b.accept ? 'bestätigt' : 'abgelehnt'}"></span> von <span th:text="${b.registrator}"></span> | ||||
| 							</div> | ||||
| 							<span th:if="${b.isOver}">Die Freizeit ist bereits vorbei.</span> | ||||
| 						</div> | ||||
|   | ||||
| @@ -40,7 +40,7 @@ | ||||
| 					</div> | ||||
| 					<div class="row"> | ||||
| 						<div class="col-sm-3">Preis</div> | ||||
| 						<div class="col-sm-9" th:text="${c.price}"></div> | ||||
| 						<div class="col-sm-9" th:text="${c.price + ' €'}"></div> | ||||
| 					</div> | ||||
| 					<div class="row"> | ||||
| 						<div class="col-sm-3">Ferien</div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user