| .. | .. |
|---|
| 25 | 25 | method="post" role="form" |
|---|
| 26 | 26 | enctype="multipart/form-data" > |
|---|
| 27 | 27 | <div th:if="${message}" th:text="${message}" th:class="${'alert ' + alertClass}"></div> |
|---|
| 28 | | - <div class="form-group"> |
|---|
| 29 | | - <label for="mittente" class="control-label">Mittente*</label> |
|---|
| 30 | | - <input type="email" class="form-control" th:field="*{mittente}" required placeholder="Email mittente" /> |
|---|
| 31 | | - <p th:if="${#fields.hasErrors('mittente')}">Email mittente mancante</p> |
|---|
| 28 | + <div th:th:if="${appIdentifier}"> |
|---|
| 29 | + <div th:text="${'Protocollo ' + appIdentifier + ' del ' + appIdentifierDate}" th:class="${'alert alert-info'}"></div> |
|---|
| 30 | + <div> |
|---|
| 31 | + <p><a th:href="@{/startURP}" class="btn btn-link"><span th:text="${'Effettua una nuova richiesta'}"></span></a></p> |
|---|
| 32 | + </div> |
|---|
| 32 | 33 | </div> |
|---|
| 33 | | - <div class="form-group"> |
|---|
| 34 | | - <label for="oggetto" class="control-label">Oggetto*</label> |
|---|
| 35 | | - <input type="text" class="form-control" th:field="*{oggetto}" required /> |
|---|
| 36 | | - <p th:if="${#fields.hasErrors('oggetto')}">Compilare l'oggetto della richiesta</p> |
|---|
| 37 | | - </div> |
|---|
| 38 | | - <div class="form-group"> |
|---|
| 39 | | - <label for="oggetto" class="control-label">Richiesta*</label> |
|---|
| 40 | | - <textarea rows="5" class="form-control" th:field="*{corpo}" required ></textarea> |
|---|
| 41 | | - <p th:if="${#fields.hasErrors('corpo')}">Scrivere il corpo della richiesta</p> |
|---|
| 42 | | - </div> |
|---|
| 43 | | - <div class="form-group"> |
|---|
| 44 | | - <label for="allegato" class="control-label">Allegato richiesta*</label> |
|---|
| 45 | | - <input type="file" class="form-control" th:field="*{allegato}" required ></input> |
|---|
| 46 | | - <p th:if="${#fields.hasErrors('allegato')}">Inserire un allegato</p> |
|---|
| 47 | | - <p class="error-message" |
|---|
| 48 | | - th:each="error: ${#fields.errors('allegato')}" |
|---|
| 49 | | - th:text="${error}"></p> |
|---|
| 50 | | - </div> |
|---|
| 51 | | - <div class="form-group"> |
|---|
| 52 | | - <div class="g-recaptcha" th:attr="data-sitekey=${@captchaSettings.getKey()}"></div> |
|---|
| 53 | | - <p class="error-message" |
|---|
| 54 | | - th:each="error: ${#fields.errors('reCaptchaResponse')}" |
|---|
| 55 | | - th:text="'Errore validazione reCaptcha'"></p> |
|---|
| 56 | | - </div> |
|---|
| 57 | | - <div class="form-group"> |
|---|
| 58 | | - <button name="Invia richiesta" type="submit" th:text="'Invia richiesta'"></button> |
|---|
| 34 | + <div th:unless="${appIdentifier}"> |
|---|
| 35 | + <div class="form-group"> |
|---|
| 36 | + <label for="mittente" class="control-label">Mittente*</label> |
|---|
| 37 | + <input type="email" class="form-control" th:field="*{mittente}" required placeholder="Email mittente" /> |
|---|
| 38 | + <p th:if="${#fields.hasErrors('mittente')}">Email mittente mancante</p> |
|---|
| 39 | + </div> |
|---|
| 40 | + <div class="form-group"> |
|---|
| 41 | + <label for="oggetto" class="control-label">Oggetto*</label> |
|---|
| 42 | + <input type="text" class="form-control" th:field="*{oggetto}" required /> |
|---|
| 43 | + <p th:if="${#fields.hasErrors('oggetto')}">Compilare l'oggetto della richiesta</p> |
|---|
| 44 | + </div> |
|---|
| 45 | + <div class="form-group"> |
|---|
| 46 | + <label for="oggetto" class="control-label">Richiesta*</label> |
|---|
| 47 | + <textarea rows="5" class="form-control" th:field="*{corpo}" required ></textarea> |
|---|
| 48 | + <p th:if="${#fields.hasErrors('corpo')}">Scrivere il corpo della richiesta</p> |
|---|
| 49 | + </div> |
|---|
| 50 | + <div class="form-group"> |
|---|
| 51 | + <label for="allegato" class="control-label">Allegato richiesta*</label> |
|---|
| 52 | + <input type="file" class="form-control" th:field="*{allegato}" required ></input> |
|---|
| 53 | + <p th:if="${#fields.hasErrors('allegato')}">Inserire un allegato</p> |
|---|
| 54 | + <p class="error-message" |
|---|
| 55 | + th:each="error: ${#fields.errors('allegato')}" |
|---|
| 56 | + th:text="${error}"></p> |
|---|
| 57 | + </div> |
|---|
| 58 | + <div class="form-group"> |
|---|
| 59 | + <div class="g-recaptcha" th:attr="data-sitekey=${@captchaSettings.getKey()}"></div> |
|---|
| 60 | + <p class="error-message" |
|---|
| 61 | + th:each="error: ${#fields.errors('reCaptchaResponse')}" |
|---|
| 62 | + th:text="'Errore validazione reCaptcha'"></p> |
|---|
| 63 | + </div> |
|---|
| 64 | + <div class="form-group"> |
|---|
| 65 | + <button name="Invia richiesta" type="submit" th:text="'Invia richiesta'"></button> |
|---|
| 66 | + </div> |
|---|
| 59 | 67 | </div> |
|---|
| 60 | 68 | </form> |
|---|
| 61 | 69 | </div> |
|---|