aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/resources/templates/partnerEdit.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/resources/templates/partnerEdit.html b/src/main/resources/templates/partnerEdit.html
index 9bcebed..356e42b 100644
--- a/src/main/resources/templates/partnerEdit.html
+++ b/src/main/resources/templates/partnerEdit.html
@@ -28,17 +28,14 @@
<label for="partnerType">Тип:</label>
<select disabled id="partnerType" name="partnerType" required>
<option value="0" disabled>Выберите тип</option>
- <option th:value="'SUPPLIER'" th:text="SUPPLIER" th:selected="${partner.getType() == 'SUPPLIER'}"></option>
- <option th:value="'ISSUER'" th:text="ISSUER" th:selected="${partner.getType() == 'ISSUER'}"></option>
+ <option th:value="'SUPPLIER'" th:text="SUPPLIER" th:selected="${partner.getType().toString() == 'SUPPLIER'}"></option>
+ <option th:value="'ISSUER'" th:text="ISSUER" th:selected="${partner.getType().toString() == 'ISSUER'}"></option>
</select> <br><br>
<label for="partnerAddress">Адрес:</label>
<input disabled type="text" id="partnerAddress" name="partnerAddress" required th:value="${partner.getAddress()}"><br><br>
- <p>Контактные лица делают брррр TODO FIXME</p>
-
<input id="saveBtn" type="submit" value="Сохранить" class="btn btn-primary" hidden>
-
</form>
</div>