Skip to content

Commit

Permalink
Added back button to create survey and answer pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothytran committed Nov 11, 2023
1 parent 537ac12 commit 3337792
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/resources/templates/answerSurvey.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ <h1>Survey#<span th:text="${surveyId}"></span>: <span th:text="${surveyTitle}"><
</div>
<button type="submit">Submit</button>
</form>
<div th:replace="~{fragments/footer :: footer}"></div>
<footer>
<a href="/" th:href="@{/}">Go Back</a>
<div th:replace="~{fragments/footer :: footer}"></div>
</footer>
</body>
</html>
5 changes: 4 additions & 1 deletion src/main/resources/templates/createSurvey.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ <h2 contenteditable="true" class="form-title">Form Title</h2>
<button type="submit" id="create-survey">Create Form</button>
</form>
</div>
<div th:replace="~{fragments/footer :: footer}"></div>
<footer>
<a href="/" th:href="@{/}">Go Back</a>
<div th:replace="~{fragments/footer :: footer}"></div>
</footer>
<script src="/scripts/createSurvey.js" type="application/javascript"></script>
</body>
</html>

0 comments on commit 3337792

Please sign in to comment.