Merge pull request '055' (#40) from ayushman into main
Reviewed-on: #40
This commit is contained in:
commit
b16b88df6d
3 changed files with 47 additions and 1 deletions
|
@ -117,6 +117,9 @@ load()
|
|||
"/admin" -> get:
|
||||
compileTemplateFile("view" / "admin" / "index.html", baseDir = getScriptDir())
|
||||
|
||||
"/admin/add-product" -> get:
|
||||
compileTemplateFile("view" / "admin" / "addproduct.html", baseDir = getScriptDir())
|
||||
|
||||
servePublic("src/public", "/static")
|
||||
|
||||
run()
|
||||
|
|
43
src/view/admin/addproduct.html
Normal file
43
src/view/admin/addproduct.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
{% extends "view/admin/partials/_master.html" %}
|
||||
|
||||
{% block addProduct %} active {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<!-- Sign Up Start -->
|
||||
<div class="container-fluid">
|
||||
<div class="row h-100 align-items-center justify-content-center" style="min-height: 100vh;">
|
||||
<div class="col-12 col-sm-8 col-md-6 col-lg-5 col-xl-4">
|
||||
<div class="bg-secondary rounded p-4 p-sm-5 my-4 mx-3">
|
||||
<div class="d-flex align-items-center justify-content-between mb-3">
|
||||
<a href="index.html" class="">
|
||||
<h3 class="text-primary"><i class="fa fa-user-edit me-2"></i>DarkPan</h3>
|
||||
</a>
|
||||
<h3>Sign Up</h3>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
<input type="text" class="form-control" id="floatingText" placeholder="jhondoe">
|
||||
<label for="floatingText">Username</label>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
|
||||
<label for="floatingInput">Email address</label>
|
||||
</div>
|
||||
<div class="form-floating mb-4">
|
||||
<input type="password" class="form-control" id="floatingPassword" placeholder="Password">
|
||||
<label for="floatingPassword">Password</label>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-between mb-4">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="exampleCheck1">
|
||||
<label class="form-check-label" for="exampleCheck1">Check me out</label>
|
||||
</div>
|
||||
<a href="">Forgot Password</a>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary py-3 w-100 mb-4">Sign Up</button>
|
||||
<p class="text-center mb-0">Already have an Account? <a href="">Sign In</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Sign Up End -->
|
||||
{% endblock %}
|
|
@ -68,7 +68,7 @@
|
|||
<a href="element.html" class="dropdown-item">Other Elements</a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="widget.html" class="nav-item nav-link"><i class="fa fa-th me-2"></i>Widgets</a>
|
||||
<a href="/admin/add-product" class="nav-item nav-link {% block addProduct %} {% endblock %}"><i class="fa fa-th me-2"></i>Add Products</a>
|
||||
<a href="form.html" class="nav-item nav-link"><i class="fa fa-keyboard me-2"></i>Forms</a>
|
||||
<a href="table.html" class="nav-item nav-link"><i class="fa fa-table me-2"></i>Tables</a>
|
||||
<a href="chart.html" class="nav-item nav-link"><i class="fa fa-chart-bar me-2"></i>Charts</a>
|
||||
|
|
Loading…
Reference in a new issue