Explorar el Código

Remove moe confirmation from start/stop working on client

Vijayakrishnan hace 4 años
padre
commit
ba20dd7008
Se han modificado 1 ficheros con 4 adiciones y 29 borrados
  1. 4 29
      resources/views/layouts/patient.blade.php

+ 4 - 29
resources/views/layouts/patient.blade.php

@@ -492,51 +492,26 @@
                             </div>
                         </div></div> <!-- z -->
                     </div>
-                    {{--<div>
-                        <pre>
-                            <?php
-                            dump($patient->activeMcpRequest ? $patient->activeMcpRequest->toArray() : 'null');
-                            ?>
-                        </pre>
-                        <pre>
-                            patient->active_mcp_request_id:
-                            <?php
-                            dump($patient->active_mcp_request_id);
-                            ?>
-                        </pre>
-                        <pre>
-                            pro->last_mcp_request_id:
-                            <?php
-                            dump($pro->last_mcp_request_id);
-                            ?>
-                        </pre>
-                    </div>--}}
                     <div class="text-container border-bottom d-flex align-items-center mcp-theme-1 px-3">
 
                         <div class="mr-auto py-2">
                             @if($pro->isWorkingOnClient($patient))
                                 {{-- stop work on client --}}
                                 <div moe>
-                                    <a href="" start show  class="btn btn-sm btn-danger text-white font-weight-bold small">Stop working on this client</a>
-                                    <form url="/api/proClientWork/KillRunningWorkForSelf" class="mcp-theme-1">
+                                    <form url="/api/proClientWork/KillRunningWorkForSelf" class="mcp-theme-1" show>
                                         <input type="hidden" name="uid" value="{{$patient->uid}}">
-                                        <p>Stop working on this patient?</p>
                                         <div>
-                                            <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
-                                            <button cancel class="btn btn-sm btn-default border">Cancel</button>
+                                            <button submit class="btn btn-sm btn-danger text-white font-weight-bold small">Stop working on this client</button>
                                         </div>
                                     </form>
                                 </div>
                             @else
                                 {{-- start work on client --}}
                                 <div moe>
-                                    <a href="" start show  class="btn btn-sm btn-primary text-white font-weight-bold small">Start working on this client</a>
-                                    <form url="/api/proClientWork/create" class="mcp-theme-1">
+                                    <form url="/api/proClientWork/create" class="mcp-theme-1" show>
                                         <input type="hidden" name="clientUid" value="{{$patient->uid}}">
-                                        <p>Start working on this patient?</p>
                                         <div>
-                                            <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
-                                            <button cancel class="btn btn-sm btn-default border">Cancel</button>
+                                            <button submit class="btn btn-sm btn-primary text-white font-weight-bold small">Start working on this client</button>
                                         </div>
                                     </form>
                                 </div>