1
0
Fork 0

changed style of validation in modal views

This commit is contained in:
Heiko Kernbach 2014-08-14 17:19:16 +02:00
parent 7d44f3262a
commit adfdec9cb8
4 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@
}
%>
<tr class="tableRow" id="<%='row_' + row.id%>">
<th class="collectionTh"><%=row.label%><%=mandatory%>:</th>
<th class="collectionTh"><div><%=row.label%><%=mandatory%>:</div></th>
<th class="collectionTh">
<%
switch(row.type) {
@ -118,4 +118,4 @@
<%
}
%>
</script>
</script>

View File

@ -342,6 +342,7 @@
$('#' + r.id).addClass('invalid-input');
$('.modal-footer .button-success').prop('disabled', true);
$('.modal-footer .button-success').addClass('disabled');
$('#' + r.id).parent().prev().find("div").addClass("collectionThDiv");
if (errorElement) {
//error element available
@ -358,6 +359,7 @@
$('#' + r.id).removeClass('invalid-input');
$('.modal-footer .button-success').prop('disabled', false);
$('.modal-footer .button-success').removeClass('disabled');
$('#' + r.id).parent().prev().find("div").removeClass("collectionThDiv");
if (errorElement) {
$(errorElement).remove();
}

View File

@ -90,6 +90,9 @@
margin-top: 10px;
}
.collectionThDiv {
margin-bottom: 20px;
}
}
.icon-info-sign {

View File

@ -4421,6 +4421,8 @@ div.breadcrumb a.disabledBread {
.modal-body th div.select2-container {
margin-bottom: 10px;
margin-top: 10px; }
.modal-body th .collectionThDiv {
margin-bottom: 20px; }
.modal-body .icon-info-sign {
margin-bottom: 10px;
margin-left: 10px;