From 13c46f877d0540f22b16f80facd7e60de74490fa Mon Sep 17 00:00:00 2001
From: Leonardo Vannucci <leonardo.vannucci@grupposistematica.it>
Date: Mon, 17 Sep 2018 16:10:40 +0200
Subject: [PATCH] Avvio istanze URP
---
dg1cloud-core/src/main/resources/templates/startURP.html | 68 +++++++++++++++++++---------------
1 files changed, 38 insertions(+), 30 deletions(-)
diff --git a/dg1cloud-core/src/main/resources/templates/startURP.html b/dg1cloud-core/src/main/resources/templates/startURP.html
index efd21ef..3a33e52 100644
--- a/dg1cloud-core/src/main/resources/templates/startURP.html
+++ b/dg1cloud-core/src/main/resources/templates/startURP.html
@@ -25,37 +25,45 @@
method="post" role="form"
enctype="multipart/form-data" >
<div th:if="${message}" th:text="${message}" th:class="${'alert ' + alertClass}"></div>
- <div class="form-group">
- <label for="mittente" class="control-label">Mittente*</label>
- <input type="email" class="form-control" th:field="*{mittente}" required placeholder="Email mittente" />
- <p th:if="${#fields.hasErrors('mittente')}">Email mittente mancante</p>
+ <div th:th:if="${appIdentifier}">
+ <div th:text="${'Protocollo ' + appIdentifier + ' del ' + appIdentifierDate}" th:class="${'alert alert-info'}"></div>
+ <div>
+ <p><a th:href="@{/startURP}" class="btn btn-link"><span th:text="${'Effettua una nuova richiesta'}"></span></a></p>
+ </div>
</div>
- <div class="form-group">
- <label for="oggetto" class="control-label">Oggetto*</label>
- <input type="text" class="form-control" th:field="*{oggetto}" required />
- <p th:if="${#fields.hasErrors('oggetto')}">Compilare l'oggetto della richiesta</p>
- </div>
- <div class="form-group">
- <label for="oggetto" class="control-label">Richiesta*</label>
- <textarea rows="5" class="form-control" th:field="*{corpo}" required ></textarea>
- <p th:if="${#fields.hasErrors('corpo')}">Scrivere il corpo della richiesta</p>
- </div>
- <div class="form-group">
- <label for="allegato" class="control-label">Allegato richiesta*</label>
- <input type="file" class="form-control" th:field="*{allegato}" required ></input>
- <p th:if="${#fields.hasErrors('allegato')}">Inserire un allegato</p>
- <p class="error-message"
- th:each="error: ${#fields.errors('allegato')}"
- th:text="${error}"></p>
- </div>
- <div class="form-group">
- <div class="g-recaptcha" th:attr="data-sitekey=${@captchaSettings.getKey()}"></div>
- <p class="error-message"
- th:each="error: ${#fields.errors('reCaptchaResponse')}"
- th:text="'Errore validazione reCaptcha'"></p>
- </div>
- <div class="form-group">
- <button name="Invia richiesta" type="submit" th:text="'Invia richiesta'"></button>
+ <div th:unless="${appIdentifier}">
+ <div class="form-group">
+ <label for="mittente" class="control-label">Mittente*</label>
+ <input type="email" class="form-control" th:field="*{mittente}" required placeholder="Email mittente" />
+ <p th:if="${#fields.hasErrors('mittente')}">Email mittente mancante</p>
+ </div>
+ <div class="form-group">
+ <label for="oggetto" class="control-label">Oggetto*</label>
+ <input type="text" class="form-control" th:field="*{oggetto}" required />
+ <p th:if="${#fields.hasErrors('oggetto')}">Compilare l'oggetto della richiesta</p>
+ </div>
+ <div class="form-group">
+ <label for="oggetto" class="control-label">Richiesta*</label>
+ <textarea rows="5" class="form-control" th:field="*{corpo}" required ></textarea>
+ <p th:if="${#fields.hasErrors('corpo')}">Scrivere il corpo della richiesta</p>
+ </div>
+ <div class="form-group">
+ <label for="allegato" class="control-label">Allegato richiesta*</label>
+ <input type="file" class="form-control" th:field="*{allegato}" required ></input>
+ <p th:if="${#fields.hasErrors('allegato')}">Inserire un allegato</p>
+ <p class="error-message"
+ th:each="error: ${#fields.errors('allegato')}"
+ th:text="${error}"></p>
+ </div>
+ <div class="form-group">
+ <div class="g-recaptcha" th:attr="data-sitekey=${@captchaSettings.getKey()}"></div>
+ <p class="error-message"
+ th:each="error: ${#fields.errors('reCaptchaResponse')}"
+ th:text="'Errore validazione reCaptcha'"></p>
+ </div>
+ <div class="form-group">
+ <button name="Invia richiesta" type="submit" th:text="'Invia richiesta'"></button>
+ </div>
</div>
</form>
</div>
--
Gitblit v1.6.2