Skip to content

Commit

Permalink
fix: disable input fields in infosrc modal when in read-only mode
Browse files Browse the repository at this point in the history
Makes sure that there are no editable input fields in the information source
modal popup when the details view is in read-only mode.

#95
  • Loading branch information
florianesser authored and phuonghuynh committed May 20, 2020
1 parent 45d9915 commit fb41079
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
<div class="form-group col-md-12">
<div th:replace="globals :: formLabel('alternateTitle-' + ${rowStat.index}, #{form.label.alternateTitle})"/>
<div class="input-group">
<input th:if="${isProposal}" th:name="'informationSource[__${index}__].alternateTitle[' + ${rowStat.index} + ']'" th:value="${altTitle}" class="form-control"/>
<span th:unless="${isProposal}" class="text-muted" th:text="${rowStat.index + 1} + '.'"></span>&nbsp;<big th:unless="${isProposal}" th:text="${altTitle}"/>
<span class="input-group-btn" th:if="${isProposal}">
<input th:if="${isProposal} and !${isReadOnly}" th:name="'informationSource[__${index}__].alternateTitle[' + ${rowStat.index} + ']'" th:value="${altTitle}" class="form-control"/>
<span th:unless="${isProposal} and !${isReadOnly}" class="text-muted" th:text="${rowStat.index + 1} + '.'"></span>&nbsp;<big th:unless="${isProposal} and !${isReadOnly}" th:text="${altTitle}"/>
<span class="input-group-btn" th:if="${isProposal} and !${isReadOnly}">
<button type="button" class="btn btn-default button-delete-alt-title" th:id="'delete-alt-title-' + ${rowStat.index}"><span class="glyphicon glyphicon-remove"/></button>
</span>
</div>
Expand Down

0 comments on commit fb41079

Please sign in to comment.