Hide button "Add Project" when project already exists (not perfect)

This commit is contained in:
T-Midnight 2018-12-25 02:44:50 +04:00
parent 18ad291e82
commit 816d115cc8

View File

@ -89,8 +89,10 @@
</div>
<div class="form-group">
<input type="submit" id="createProject" name="createProject" class="btn btn-primary"
value="Добавить проект"/>
<div th:if="*{project} == null">
<input type="submit" name="createProject" class="btn btn-primary"
value="Добавить проект"/>
</div>
<input type = "hidden" th:field="*{project.id}"/>
</div>
</div>