Got it! You want plain .html template files representing the standard CRUD layout pages (index, view, create, update, delete) styled consistently with the Bootstrap 5.3 admin template I provided earlier — but you do NOT want the Yii2 PHP code inside , only pure HTML templates that you can later adapt or convert to Yii2 views.
What I will provide:
5 clean, simple .html files:
index.html → with a Bootstrap GridView-like table and action buttons (View, Update, Delete)
view.html → detail view of a single item
create.html → form to create a new item
update.html → similar form to create but for updating
delete.html (usually a confirmation dialog/page)
Each page will use the same sidebar/navbar layout and consistent styling.
Folder structure example:
code Copy code
/admin-template/
├── index.html
├── view.html
├── create.html
├── update.html
└── delete.html
1. index.html — List with GridView using Bootstrap Table and action buttons
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Items - Admin Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* Sidebar and general styles same as before */
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
#sidebar {
min-width: 250px;
max-width: 250px;
min-height: 100vh;
background-color: #343a40;
color: white;
}
#sidebar a.nav-link {
color: rgba(255, 255, 255, 0.8);
}
#sidebar a.nav-link:hover,
#sidebar a.nav-link.active {
background-color: #0d6efd;
color: white;
}
main {
flex-grow: 1;
padding: 20px;
}
.navbar-bg {
background-color: #f8f9fa;
}
</style>
</head>
<body>
<div class="d-flex">
<!-- Sidebar -->
<nav id="sidebar" class="d-flex flex-column p-3">
<a href="#" class="d-flex align-items-center mb-3 text-white text-decoration-none">
<span class="fs-4">Admin Panel</span>
</a>
<hr />
<ul class="nav nav-pills flex-column mb-auto">
<li><a href="index.html" class="nav-link active">Items</a></li>
<li><a href="#" class="nav-link text-white">Users</a></li>
<li><a href="#" class="nav-link text-white">Settings</a></li>
</ul>
<hr />
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="userMenu" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/32" alt="Avatar" class="rounded-circle me-2" />
<strong>Admin</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="userMenu">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Sign out</a></li>
</ul>
</div>
</nav>
<!-- Main Content -->
<main class="flex-grow-1">
<nav class="navbar navbar-expand-lg navbar-bg mb-4">
<div class="container-fluid">
<h1 class="h3 mb-0">Items</h1>
<a href="create.html" class="btn btn-primary ms-auto">Create New Item</a>
</div>
</nav>
<!-- GridView table -->
<div class="table-responsive">
<table class="table table-striped table-bordered align-middle">
<thead class="table-dark">
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Description</th>
<th scope="col">Created At</th>
<th scope="col" style="width: 140px;">Actions</th>
</tr>
</thead>
<tbody>
<!-- Item Row Example -->
<tr>
<th scope="row">1</th>
<td>Item One</td>
<td>Short description of item one.</td>
<td>2024-06-01</td>
<td>
<a href="view.html" class="btn btn-sm btn-outline-primary">View</a>
<a href="update.html" class="btn btn-sm btn-outline-warning">Update</a>
<a href="delete.html" class="btn btn-sm btn-outline-danger">Delete</a>
</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Item Two</td>
<td>Details about item two.</td>
<td>2024-06-02</td>
<td>
<a href="view.html" class="btn btn-sm btn-outline-primary">View</a>
<a href="update.html" class="btn btn-sm btn-outline-warning">Update</a>
<a href="delete.html" class="btn btn-sm btn-outline-danger">Delete</a>
</td>
</tr>
<!-- More rows as needed -->
</tbody>
</table>
</div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
2. view.html — Detail view page of a single item
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>View Item - Admin Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style> /* same styling as index.html */
body { display: flex; min-height: 100vh; flex-direction: column;}
#sidebar { width: 250px; background-color: #343a40; color: #fff; min-height: 100vh; }
#sidebar a.nav-link { color: rgba(255, 255, 255, 0.8); }
#sidebar a.nav-link:hover, #sidebar a.nav-link.active { background: #0d6efd; color: #fff; }
main { flex-grow: 1; padding: 20px;}
.navbar-bg {background-color: #f8f9fa;}
</style>
</head>
<body>
<div class="d-flex">
<!-- Sidebar -->
<nav id="sidebar" class="d-flex flex-column p-3">
<a href="#" class="d-flex align-items-center mb-3 text-white text-decoration-none">
<span class="fs-4">Admin Panel</span>
</a>
<hr />
<ul class="nav nav-pills flex-column mb-auto">
<li><a href="index.html" class="nav-link active">Items</a></li>
<li><a href="#" class="nav-link text-white">Users</a></li>
<li><a href="#" class="nav-link text-white">Settings</a></li>
</ul>
<hr />
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="userMenu" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/32" alt="" class="rounded-circle me-2" />
<strong>Admin</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="userMenu">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Sign out</a></li>
</ul>
</div>
</nav>
<!-- Main content -->
<main class="flex-grow-1">
<nav class="navbar navbar-expand-lg navbar-bg mb-4">
<div class="container-fluid">
<h1 class="h3 mb-0">View Item</h1>
<a href="index.html" class="btn btn-secondary ms-auto">Back to List</a>
</div>
</nav>
<dl class="row">
<dt class="col-sm-3">ID</dt>
<dd class="col-sm-9">1</dd>
<dt class="col-sm-3">Name</dt>
<dd class="col-sm-9">Item One</dd>
<dt class="col-sm-3">Description</dt>
<dd class="col-sm-9">A detailed description of Item One goes here.</dd>
<dt class="col-sm-3">Created At</dt>
<dd class="col-sm-9">2024-06-01</dd>
<dt class="col-sm-3">Updated At</dt>
<dd class="col-sm-9">2024-06-05</dd>
</dl>
<div class="mt-4">
<a href="update.html" class="btn btn-warning me-2">Update</a>
<a href="delete.html" class="btn btn-danger">Delete</a>
</div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
3. create.html — Create item form page
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Create Item - Admin Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style> /* same styling */
body { display: flex; min-height: 100vh; flex-direction: column;}
#sidebar { width: 250px; background-color: #343a40; color: #fff; min-height: 100vh; }
#sidebar a.nav-link { color: rgba(255, 255, 255, 0.8); }
#sidebar a.nav-link:hover, #sidebar a.nav-link.active { background: #0d6efd; color: #fff; }
main { flex-grow: 1; padding: 20px;}
.navbar-bg {background-color: #f8f9fa;}
</style>
</head>
<body>
<div class="d-flex">
<!-- Sidebar -->
<nav id="sidebar" class="d-flex flex-column p-3">
<a href="#" class="d-flex align-items-center mb-3 text-white text-decoration-none">
<span class="fs-4">Admin Panel</span>
</a>
<hr />
<ul class="nav nav-pills flex-column mb-auto">
<li><a href="index.html" class="nav-link active">Items</a></li>
<li><a href="#" class="nav-link text-white">Users</a></li>
<li><a href="#" class="nav-link text-white">Settings</a></li>
</ul>
<hr />
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="userMenu" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/32" alt="" class="rounded-circle me-2" />
<strong>Admin</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="userMenu">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Sign out</a></li>
</ul>
</div>
</nav>
<!-- Main content -->
<main class="flex-grow-1">
<nav class="navbar navbar-expand-lg navbar-bg mb-4">
<div class="container-fluid">
<h1 class="h3 mb-0">Create New Item</h1>
<a href="index.html" class="btn btn-secondary ms-auto">Back to List</a>
</div>
</nav>
<form>
<div class="mb-3">
<label for="itemName" class="form-label">Name</label>
<input type="text" id="itemName" class="form-control" placeholder="Enter item name" required>
</div>
<div class="mb-3">
<label for="itemDescription" class="form-label">Description</label>
<textarea id="itemDescription" class="form-control" rows="4" placeholder="Enter description" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Create</button>
</form>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
4. update.html — Update item form page (same as create but with pre-filled values)
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Update Item - Admin Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* same styling applies */
body { display: flex; min-height: 100vh; flex-direction: column;}
#sidebar { width: 250px; background-color: #343a40; color: #fff; min-height: 100vh; }
#sidebar a.nav-link { color: rgba(255, 255, 255, 0.8); }
#sidebar a.nav-link:hover, #sidebar a.nav-link.active { background: #0d6efd; color: #fff; }
main { flex-grow: 1; padding: 20px;}
.navbar-bg {background-color: #f8f9fa;}
</style>
</head>
<body>
<div class="d-flex">
<!-- Sidebar -->
<nav id="sidebar" class="d-flex flex-column p-3">
<a href="#" class="d-flex align-items-center mb-3 text-white text-decoration-none">
<span class="fs-4">Admin Panel</span>
</a>
<hr />
<ul class="nav nav-pills flex-column mb-auto">
<li><a href="index.html" class="nav-link active">Items</a></li>
<li><a href="#" class="nav-link text-white">Users</a></li>
<li><a href="#" class="nav-link text-white">Settings</a></li>
</ul>
<hr />
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="userMenu" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/32" alt="" class="rounded-circle me-2" />
<strong>Admin</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="userMenu">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Sign out</a></li>
</ul>
</div>
</nav>
<!-- Main content -->
<main class="flex-grow-1">
<nav class="navbar navbar-expand-lg navbar-bg mb-4">
<div class="container-fluid">
<h1 class="h3 mb-0">Update Item</h1>
<a href="index.html" class="btn btn-secondary ms-auto">Back to List</a>
</div>
</nav>
<form>
<div class="mb-3">
<label for="itemName" class="form-label">Name</label>
<input type="text" id="itemName" class="form-control" value="Item One" required>
</div>
<div class="mb-3">
<label for="itemDescription" class="form-label">Description</label>
<textarea id="itemDescription" class="form-control" rows="4" required>A detailed description of Item One goes here.</textarea>
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
5. delete.html — Delete confirmation page
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Delete Item - Admin Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style> /* same styling again */
body { display: flex; min-height: 100vh; flex-direction: column;}
#sidebar { width: 250px; background-color: #343a40; color: #fff; min-height: 100vh; }
#sidebar a.nav-link { color: rgba(255, 255, 255, 0.8); }
#sidebar a.nav-link:hover, #sidebar a.nav-link.active { background: #0d6efd; color: #fff; }
main { flex-grow: 1; padding: 20px;}
.navbar-bg {background-color: #f8f9fa;}
</style>
</head>
<body>
<div class="d-flex">
<!-- Sidebar -->
<nav id="sidebar" class="d-flex flex-column p-3">
<a href="#" class="d-flex align-items-center mb-3 text-white text-decoration-none">
<span class="fs-4">Admin Panel</span>
</a>
<hr />
<ul class="nav nav-pills flex-column mb-auto">
<li><a href="index.html" class="nav-link active">Items</a></li>
<li><a href="#" class="nav-link text-white">Users</a></li>
<li><a href="#" class="nav-link text-white">Settings</a></li>
</ul>
<hr />
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="userMenu" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/32" alt="" class="rounded-circle me-2" />
<strong>Admin</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="userMenu">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Sign out</a></li>
</ul>
</div>
</nav>
<!-- Main content -->
<main class="flex-grow-1">
<nav class="navbar navbar-expand-lg navbar-bg mb-4">
<div class="container-fluid">
<h1 class="h3 mb-0">Delete Item</h1>
<a href="index.html" class="btn btn-secondary ms-auto">Back to List</a>
</div>
</nav>
<div class="alert alert-danger" role="alert">
Are you sure you want to delete <strong>Item One</strong>?
</div>
<form method="POST">
<button type="submit" class="btn btn-danger me-2">Delete</button>
<a href="index.html" class="btn btn-secondary">Cancel</a>
</form>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
Summary
Each .html page shares the same sidebar/navbar and basic styling for consistency.
Index shows a GridView table with actions linking to the other pages.
View page displays details of an item.
Create/Update pages have clean Bootstrap forms.
Delete page asks for a confirmation.
Next steps:
You can take these .html templates and convert them into Yii2 view files (.php).
Replace static HTML content with actual dynamic data and URLs.
Use Yii2 form widgets and GridView where necessary in PHP.
If you want, I can immediately provide a Yii2-integrated version of these templates to help speed up your development! Just ask.