소스 검색

Address in add/edit patient > supply-orders

Vijayakrishnan 4 년 전
부모
커밋
1496268d83
1개의 변경된 파일56개의 추가작업 그리고 1개의 파일을 삭제
  1. 56 1
      resources/views/app/patient/supply-orders.blade.php

+ 56 - 1
resources/views/app/patient/supply-orders.blade.php

@@ -4,7 +4,7 @@
         <div class="d-flex align-items-center pb-2">
             <h4 class="font-weight-bold m-0">Supply Orders</h4>
             <span class="mx-2 text-secondary">|</span>
-            <div moe>
+            <div moe large>
                 <a start show href="#">Add</a>
                 <form url="/api/supplyOrder/create" redir="/patients/view/{{ $patient->uid }}/supply-orders/[data]">
                     <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
@@ -19,6 +19,26 @@
                             @endforeach
                         </select>
                     </div>
+                    <div class="mb-2">
+                        <label class="text-secondary text-sm">Address Line1</label>
+                        <input type="text" class="form-control form-control-sm" name="mailingAddressLine1" value="{{$patient->mailing_address_line1}}">
+                    </div>
+                    <div class="mb-2">
+                        <label class="text-secondary text-sm">Address Line2</label>
+                        <input type="text" class="form-control form-control-sm" name="mailingAddressLine2" value="{{$patient->mailing_address_line2}}">
+                    </div>
+                    <div class="mb-2">
+                        <label class="text-secondary text-sm">Address City</label>
+                        <input type="text" class="form-control form-control-sm" name="mailingAddressCity" value="{{$patient->mailing_address_city}}">
+                    </div>
+                    <div class="mb-2">
+                        <label class="text-secondary text-sm">Address State</label>
+                        <input type="text" class="form-control form-control-sm" name="mailingAddressState" value="{{$patient->mailing_address_state}}">
+                    </div>
+                    <div class="mb-2">
+                        <label class="text-secondary text-sm">Address Zip</label>
+                        <input type="text" class="form-control form-control-sm" name="mailingAddressZip" value="{{$patient->mailing_address_zip}}">
+                    </div>
                     <div class="mb-2">
                         <label class="text-secondary text-sm">Reason</label>
                         <input type="text" class="form-control form-control-sm" name="reason">
@@ -114,6 +134,41 @@
                             </form>
                         </div>
                     </div>
+                    <div class="mb-3">
+                        <label class="text-secondary text-sm mb-1">Address</label>
+                        <div moe class="d-block">
+                            <a start show>
+                                {{$supplyOrder->mailing_address_full ? implode(" ", [$supplyOrder->mailing_address_line1, $supplyOrder->mailing_address_line2, $supplyOrder->mailing_address_city, $supplyOrder->mailing_address_state, $supplyOrder->mailing_address_zip]) : '(not set)'}}
+                            </a>
+                            <form url="/api/supplyOrder/updateMailingAddress">
+                                <input type="hidden" name="uid" value="{{ $supplyOrder->uid }}">
+                                <div class="mb-2">
+                                    <label class="text-secondary text-sm">Address Line1</label>
+                                    <input type="text" class="form-control form-control-sm" name="mailingAddressLine1" value="{{$supplyOrder->mailing_address_line1}}">
+                                </div>
+                                <div class="mb-2">
+                                    <label class="text-secondary text-sm">Address Line2</label>
+                                    <input type="text" class="form-control form-control-sm" name="mailingAddressLine2" value="{{$supplyOrder->mailing_address_line2}}">
+                                </div>
+                                <div class="mb-2">
+                                    <label class="text-secondary text-sm">Address City</label>
+                                    <input type="text" class="form-control form-control-sm" name="mailingAddressCity" value="{{$supplyOrder->mailing_address_city}}">
+                                </div>
+                                <div class="mb-2">
+                                    <label class="text-secondary text-sm">Address State</label>
+                                    <input type="text" class="form-control form-control-sm" name="mailingAddressState" value="{{$supplyOrder->mailing_address_state}}">
+                                </div>
+                                <div class="mb-2">
+                                    <label class="text-secondary text-sm">Address Zip</label>
+                                    <input type="text" class="form-control form-control-sm" name="mailingAddressZip" value="{{$supplyOrder->mailing_address_zip}}">
+                                </div>
+                                <div class="d-flex align-items-center">
+                                    <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                                    <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                </div>
+                            </form>
+                        </div>
+                    </div>
                     <div class="mb-3 d-none">
                         <label class="text-secondary text-sm mb-1">Requested Ship Date</label>
                         <div moe class="d-block">