Skip to content

Commit

Permalink
edited display precision message and added more functionality for 1.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
k-joseph committed Oct 27, 2014
1 parent 0adc262 commit 13c1530
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
18 changes: 11 additions & 7 deletions webapp/src/main/webapp/WEB-INF/view/dictionary/concept.jsp
Expand Up @@ -289,13 +289,17 @@
</td>
</tr>
<tr>
<th><openmrs:message code="command.concept.displayPrecision"/></th>
<td colspan="2">
<spring:bind path="command.concept.displayPrecision">
<input type="text" name="${status.expression}" value="<c:out value="${status.value}" />" class="mediumWidth" />
<c:if test="${status.errorMessage != ''}"><span class="error">${status.errorMessage}</span></c:if>
</spring:bind>
</td>
<spring:bind path="command.concept.precise">
<c:if test="${status.value}">
<th><openmrs:message code="ConceptNumeric.displayPrecision"/></th>
<td colspan="2">
<spring:bind path="command.concept.displayPrecision">
<c:out value="${status.value}" />
<c:if test="${status.errorMessage != ''}"><span class="error">${status.errorMessage}</span></c:if>
</spring:bind>
</td>
</c:if>
</spring:bind>
</tr>
</table>
</td>
Expand Down
Expand Up @@ -587,7 +587,7 @@
<td colspan="2">
<spring:bind path="command.precise">
<input type="hidden" name="_${status.expression}" value=""/>
<input type="checkbox" name="${status.expression}" <c:if test="${status.value}">checked="checked"</c:if>/>
<input type="checkbox" id="allow_decimal_checkbox" name="${status.expression}" <c:if test="${status.value}">checked="checked"</c:if>/>
<c:if test="${status.errorMessage != ''}"><span class="error">${status.errorMessage}</span></c:if>
</spring:bind>
</td>
Expand All @@ -596,7 +596,7 @@
<th><openmrs:message code="ConceptNumeric.displayPrecision"/></th>
<td colspan="2">
<spring:bind path="command.displayPrecision">
<input type="text" name="${status.expression}" value="<c:out value="${status.value}" />" class="mediumWidth" />
<input type="text" id="display_precision_textbox" name="${status.expression}" value="<c:out value="${status.value}" />" class="mediumWidth" />
<c:if test="${status.errorMessage != ''}"><span class="error">${status.errorMessage}</span></c:if>
</spring:bind>
</td>
Expand Down Expand Up @@ -947,6 +947,10 @@ $j(document).ready( function() {
$j("#cancelOrDone").val('<openmrs:message code="general.cancel"/>');
}
});
if(!$j("#allow_decimal_checkbox").is(':checked')) {
$j("#display_precision_textbox").prop( "disabled", true );
}
});
function createNewTerm(){
Expand Down

0 comments on commit 13c1530

Please sign in to comment.