Skip to content

Commit 4d3d624

Browse files
authored
Merge pull request #1122 from hargata/Hargata/979.fix
minor UI bug fixes
2 parents 3d33a79 + ef0f4fa commit 4d3d624

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Views/Vehicle/Inspection/_InspectionRecordModal.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454
else if (templateField.FieldType == InspectionFieldType.Check)
5555
{
56-
<div class="d-flex justify-content-between">
56+
<div class="d-flex justify-content-between flex-wrap">
5757
@foreach (InspectionRecordTemplateFieldOption fieldOption in templateField.Options)
5858
{
5959
<div class="form-check form-check-inline" data-type="fieldOptionContainer">
@@ -65,7 +65,7 @@
6565
}
6666
else if (templateField.FieldType == InspectionFieldType.Radio)
6767
{
68-
<div class="d-flex justify-content-between">
68+
<div class="d-flex justify-content-between flex-wrap">
6969
@foreach (InspectionRecordTemplateFieldOption fieldOption in templateField.Options)
7070
{
7171
<div class="form-check form-check-inline" data-type="fieldOptionContainer">

Views/Vehicle/Inspection/_InspectionRecords.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@
141141
</div>
142142
</div>
143143
</div>
144-
<div class="modal fade" data-bs-focus="false" id="inspectionRecordTemplateModal" tabindex="-1" role="dialog" aria-hidden="true" onpaste="handleModalPaste(event)">
144+
<div class="modal fade" data-bs-focus="false" id="inspectionRecordTemplateModal" tabindex="-1" role="dialog" aria-hidden="true">
145145
<div class="modal-dialog" role="document">
146146
<div class="modal-content" id="inspectionRecordTemplateModalContent">
147147
</div>
148148
</div>
149149
</div>
150-
<div class="modal fade" data-bs-focus="false" id="inspectionRecordTemplateEditModal" tabindex="-1" role="dialog" aria-hidden="true" onpaste="handleModalPaste(event)">
150+
<div class="modal fade" data-bs-focus="false" id="inspectionRecordTemplateEditModal" tabindex="-1" role="dialog" aria-hidden="true">
151151
<div class="modal-dialog" role="document">
152152
<div class="modal-content" id="inspectionRecordTemplateEditModalContent">
153153
</div>

wwwroot/js/inspectionrecord.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,6 @@ function getAndValidateInspectionRecord() {
309309
if (hasNotes) {
310310
let fieldNoteElem = fieldElem.find('[data-type="fieldNotes"]');
311311
fieldData["notes"] = fieldNoteElem.val();
312-
if (fieldNoteElem.val().trim() == '') {
313-
hasError = true;
314-
fieldNoteElem.addClass('is-invalid');
315-
} else {
316-
fieldNoteElem.removeClass('is-invalid');
317-
}
318312
}
319313
if (fieldType != 'Text') {
320314
let fieldOptions = [];

0 commit comments

Comments
 (0)