Browse Source

added logout button on sms token page

Josh 4 years ago
parent
commit
de1d7bd6b9
1 changed files with 19 additions and 7 deletions
  1. 19 7
      resources/views/app/confirm_sms_auth_token.blade.php

+ 19 - 7
resources/views/app/confirm_sms_auth_token.blade.php

@@ -13,24 +13,36 @@
             </div>
             </div>
         @endif
         @endif
         <form action="/confirm_sms_auth_token" method="POST">
         <form action="/confirm_sms_auth_token" method="POST">
+            
             @csrf
             @csrf
             <div class="form-group">
             <div class="form-group">
                 <label for="" class="control-label mb-1 text-secondary">Cell Number *</label>
                 <label for="" class="control-label mb-1 text-secondary">Cell Number *</label>
                 <input type="text" class="form-control" value="{{$pro->cell_number}}" name="cellNumber" readonly required>
                 <input type="text" class="form-control" value="{{$pro->cell_number}}" name="cellNumber" readonly required>
             </div>
             </div>
+
             <div class="form-group">
             <div class="form-group">
                 <label for="" class="control-label mb-1 text-secondary d-flex align-items-center">Token * <span class="ml-auto text-sm">(sent to your phone)</span></label>
                 <label for="" class="control-label mb-1 text-secondary d-flex align-items-center">Token * <span class="ml-auto text-sm">(sent to your phone)</span></label>
                 <input autofocus type="text" class="form-control" name="token" required>
                 <input autofocus type="text" class="form-control" name="token" required>
             </div>
             </div>
-            <div class="form-group mb-0 text-center">
-                <button class="btn btn-primary btn-sm px-4 py-2">Submit</button>
+
+            <div class="form-group text-center">
+                <button class="btn w-100 btn-primary btn-sm px-4 py-2">Submit</button>
             </div>
             </div>
+
         </form>
         </form>
-        <div class="mt-2 text-center">
-            <form action="/resend_sms_auth_token" method="POST">
-                @csrf
-                <button class="btn btn-outline-secondary">Resend SMS Auth Token</button>
-            </form>
+        <div class="mt-2 d-flex">
+            <div class="mr-auto">
+                <form action="{{route('logout')}}" method="POST">
+                    @csrf
+                    <button class="btn btn-outline-secondary">Back to login</button>
+                </form>
+            </div>
+            <div>
+                <form action="/resend_sms_auth_token" method="POST">
+                    @csrf
+                    <button class="btn btn-outline-secondary">Resend SMS Auth Token</button>
+                </form>
+            </div>
         </div>
         </div>
     </div>
     </div>
 </div>
 </div>