Changeset d795fa6 for resources/views/dashboard/settings
- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/settings/index.blade.php
r120759b rd795fa6 18 18 </div> 19 19 20 @if(isset($link)) 21 {{$link}} 22 @endif 23 20 24 <div class="row"> 21 25 <div class="col-md-12"> … … 25 29 <div class="nav flex-lg-column flex-sm-row nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> 26 30 <a class="nav-link active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Account</a> 27 <a class="nav-link" id=" v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Security</a>31 <a class="nav-link" id="security-tab" data-toggle="pill" href="#security" role="tab" aria-controls="security" aria-selected="false">Security</a> 28 32 <a class="nav-link" id="v-pills-settings-tab" data-toggle="pill" href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false">Social</a> 29 33 </div> … … 35 39 <div class="card-body"> 36 40 <h6 class="card-title">Account</h6> 37 <form action="{{ route("dashboard.users.editUserData", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' >41 <form action="{{ route("dashboard.users.editUserData", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' class="needs-validation" novalidate> 38 42 @method("patch") 39 43 @csrf … … 42 46 <div class="form-group"> 43 47 <label>Name</label> 44 <input type="text" name="name" value="{{ $user->name }}" class="form-control" placeholder="Name" required> 48 <input type="text" name="name" value="{{ $user->name }}" minlength="2" maxlength="30" class="form-control" placeholder="Name" required> 49 <div class="invalid-feedback"> 50 Please enter only letters and spaces with length between [2, 30] 51 </div> 45 52 </div> 46 53 </div> … … 56 63 <div class="form-group"> 57 64 <label class="form-label">Mobile Number</label> 58 <input type="text" name=" mobile_number" value="{{ $user->mobile_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required>65 <input type="text" name="phone_number" value="{{ $user->phone_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 59 66 </div> 60 67 </div> … … 77 84 </div> 78 85 </div> 79 <div class="tab-pane fade" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">86 <div class="tab-pane{{old('tab') == 'security' ? ' active' : null}}" id="security" role="tabpanel" aria-labelledby="security-tab"> 80 87 <div class="card"> 81 88 <div class="card-body"> … … 236 243 237 244 @endsection 245 246 @section('script') 247 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> 248 <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" integrity="sha512-uto9mlQzrs59VwILcLiRYeLKPPbS/bT71da/OEBYEwcdNUk8jYIy+D176RYoop1Da+f9mvkYrmj5MCLZWEtQuA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> 249 <script> 250 $(document).ready(function () { 251 if (window.location.hash) { 252 $('.nav-pills a[href="#'+window.location.hash+'"]').tabs('show'); 253 } 254 }); 255 </script> 256 @endsection
Note:
See TracChangeset
for help on using the changeset viewer.