mirror of https://gitee.com/bigwinds/arangodb
changed style of validation in modal views
This commit is contained in:
parent
7d44f3262a
commit
adfdec9cb8
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -90,6 +90,9 @@
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.collectionThDiv {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-info-sign {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue