소스 검색

[STAG-20] Add care-month validation

Vijayakrishnan Krishnan 4 년 전
부모
커밋
6f4999f27a
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      resources/views/app/patient/care-months.blade.php

+ 4 - 2
resources/views/app/patient/care-months.blade.php

@@ -69,7 +69,8 @@
                 <form url="/api/careMonth/create" redir="patients/view/{{ $patient->uid }}/care-months/view/[data]">
                     <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
                     <div class="mb-2">
-                        <select name="startMonth" class="form-control form-control-sm">
+                        <label class="text-secondary text-sm mb-1">Month *</label>
+                        <select name="startMonth" class="form-control form-control-sm" required>
                             <option value="">-- Start Month --</option>
                             <option value="1" {{ date('n') === '1' ? 'selected' : '' }}>January</option>
                             <option value="2" {{ date('n') === '2' ? 'selected' : '' }}>February</option>
@@ -86,7 +87,8 @@
                         </select>
                     </div>
                     <div class="mb-2">
-                        <select name="startYear" class="form-control form-control-sm">
+                        <label class="text-secondary text-sm mb-1">Year *</label>
+                        <select name="startYear" class="form-control form-control-sm" required>
                             <option value="">-- Start Year --</option>
                             <option value="2020" {{ date('Y') === '2020' ? 'selected' : '' }}>2020</option>
                             <option value="2021" {{ date('Y') === '2021' ? 'selected' : '' }}>2021</option>