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>
<div class="form-group"> <div class="form-group">
<input type="submit" id="createProject" name="createProject" class="btn btn-primary" <div th:if="*{project} == null">
value="Добавить проект"/> <input type="submit" name="createProject" class="btn btn-primary"
value="Добавить проект"/>
</div>
<input type = "hidden" th:field="*{project.id}"/> <input type = "hidden" th:field="*{project.id}"/>
</div> </div>
</div> </div>