added logic for updating user profile plus other bug fixes
This commit is contained in:
66
resources/views/systemusers/partials/profile.blade.php
Normal file
66
resources/views/systemusers/partials/profile.blade.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<div class="modal fade" id="profileModal" tabindex="-1" role="dialog" aria-labelledby="profileModalLabel">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header" style="background-color: #f8f8f8; border-bottom: 1px solid #eee;">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="profileModalLabel"><i class="glyphicon glyphicon-user"></i> User Profile</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form method="POST" id="staffProfileForm">
|
||||
<input type="hidden" name="user_id" class="staffId" value="">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<table class="table table-user-information">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>Full Name:</strong></td>
|
||||
<td><input type="text" class="form-control staffName" name="name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Email:</strong></td>
|
||||
<td><input type="text" class="form-control staffEmail" name="email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Phone:</strong></td>
|
||||
<td><input type="text" class="form-control staffPhone" name="phone"></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td><strong>Designation:</strong></td>
|
||||
<td><input type="text" class="form-control staffDesignation" name="designation"></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td><strong>Password :</strong></td>
|
||||
<td>
|
||||
<input type="password" name="password" class="form-control passwordReset" placeholder="**********">
|
||||
<p class="text-help text-danger">Enter new password to reset</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Date Added:</strong></td>
|
||||
<td><input type="text" readonly class="form-control staffDateAdded"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<button class="btn btn-block btn-primary"><i class="glyphicon glyphicon-floppy-disk"></i> Update</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<!-- <div class="pull-left">
|
||||
<button type="button" class="btn btn-danger btn-sm">
|
||||
<i class="glyphicon glyphicon-lock"></i> Reset Password
|
||||
</button>
|
||||
</div> -->
|
||||
<!-- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary">Edit Profile</button> -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
70
resources/views/systemusers/profile.blade.php
Normal file
70
resources/views/systemusers/profile.blade.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>User Profile</title>
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
background-color: #f9f9f9; /* Light background */
|
||||
}
|
||||
.profile-container {
|
||||
background-color: #ffffff; /* White background */
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
max-width: 600px;
|
||||
margin: 50px auto;
|
||||
}
|
||||
.btn-reset {
|
||||
background-color: #ff8c00; /* Orange Color */
|
||||
color: white;
|
||||
}
|
||||
.btn-reset:hover {
|
||||
background-color: #e07b00; /* Darker orange on hover */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container profile-container">
|
||||
<h2>User Profile</h2>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="name" class="form-label">Name</label>
|
||||
<input type="text" class="form-control" id="name" value="John Doe" readonly>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">Email</label>
|
||||
<input type="email" class="form-control" id="email" value="johndoe@example.com" readonly>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="phone" class="form-label">Phone</label>
|
||||
<input type="tel" class="form-control" id="phone" value="+1234567890" readonly>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="designation" class="form-label">Designation</label>
|
||||
<input type="text" class="form-control" id="designation" value="Software Developer" readonly>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="date-added" class="form-label">Date Added</label>
|
||||
<input type="text" class="form-control" id="date-added" value="November 3, 2021" readonly>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
<button class="btn btn-reset">Reset Password</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap JS and dependencies -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.6/umd/popper.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user