-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
821 additions
and
821 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,219 @@ | ||
{% extends 'main/base.html' %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
{% load static %} | ||
{% load table_tags %} | ||
{% load notification_tags %} | ||
{% include_notify_js_variables %} | ||
<meta charset="utf-8" /> | ||
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png"> | ||
<link rel="icon" type="image/png" href="../assets/img/favicon.ico"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<title>Dashboard</title> | ||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' /> | ||
<!-- Fonts and icons --> | ||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" /> | ||
<!-- CSS Files --> | ||
<link href="{% static 'table/css/bootstrap.min.css' %}" rel="stylesheet"> | ||
<script src="{% static 'table/js/jquery.min.js' %}"></script> | ||
<script src="{% static 'table/js/bootstrap.min.js' %}"></script> | ||
<script src="{% static 'notify/notifyX.min.js' %}"></script> | ||
<link href="{% static 'table/css/light-bootstrap-dashboard.css' %}" rel="stylesheet" /> | ||
<!-- CSS Just for demo purpose, don't include it in your project --> | ||
<link href="{% static 'table/css/demo.css' %}" rel="stylesheet" /> | ||
</head> | ||
<style type="text/css"> | ||
.card{ | ||
border:1px solid rgba(0,0,0,.125); | ||
} | ||
</style> | ||
<style type="text/css"> | ||
.navbar .navbar-toggler{ | ||
border:1px solid transparent; | ||
background-color: transparent; | ||
padding-top: 13px; | ||
} | ||
</style> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="sidebar" data-color="orange" data-image="https://images.unsplash.com/4/madebyvadim.jpg?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=78688b2cbb91cc81bba44ed9f5b4dc9f&auto=format&fit=crop&w=1498&q=80"> | ||
<!-- | ||
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red" | ||
Tip 2: you can also add an image using data-image tag | ||
--> | ||
<div class="sidebar-wrapper"> | ||
<div class="logo"> | ||
<a href="#asdf" class="simple-text"> | ||
Inventory Management | ||
</a> | ||
</div> | ||
<ul class="nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url 'main:index' %}"> | ||
<i class="nc-icon nc-chart-pie-35"></i> | ||
<p>Home</p> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="nav-link active" href="{% url 'main:editprofile' %}"> | ||
<i class="nc-icon nc-circle-09"></i> | ||
<p>User Profile</p> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="nav-link" href="{% url 'main:search' %}"> | ||
<i class="nc-icon nc-notes"></i> | ||
<p>View Inventory</p> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="nav-link" href="{% url 'main:allissueance' %}"> | ||
<i class="nc-icon nc-paper-2"></i> | ||
<p>Issued Equipments</p> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="main-panel"> | ||
<!-- Navbar --> | ||
<nav class="navbar navbar-default navbar-fixed"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button href="" class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-bar burger-lines"></span> | ||
<span class="navbar-toggler-bar burger-lines"></span> | ||
<span class="navbar-toggler-bar burger-lines"></span> | ||
</button> | ||
|
||
</div> | ||
<div class="collapse navbar-collapse"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li> | ||
<a href="{% url 'main:logout'%}"> | ||
Log out | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
<!-- End Navbar --> | ||
|
||
|
||
|
||
<div class="content"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h4 class="card-title">Edit Profile</h4> | ||
</div> | ||
<div class="card-body"> | ||
<form method="post" action="."> | ||
{% csrf_token %} | ||
<div class="row"> | ||
<div class="col-md-6 pr-1"> | ||
<div class="form-group"> | ||
<label>First Name</label> | ||
<input type="text" class="form-control" placeholder="First Name" value="{{user.first_name}}" name ="first_name"> | ||
</div> | ||
</div> | ||
<div class="col-md-6 pl-1"> | ||
<div class="form-group"> | ||
<label>Last Name</label> | ||
<input type="text" class="form-control" placeholder=" Last Name" value="{{user.last_name}}" name ="last_name"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="form-group"> | ||
<label>Branch</label> | ||
<input type="text" class="form-control" placeholder=" Branch" value="{{user.userprofile.branch}}" name ="branch"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 pr-1"> | ||
<div class="form-group"> | ||
<label>Enrolment</label> | ||
<input type="number" class="form-control" placeholder="Enrollment" value="{{user.userprofile.enrollment_no}}" name ="enrollment_no"> | ||
</div> | ||
</div> | ||
<div class="col-md-6 px-1"> | ||
<div class="form-group"> | ||
<label>Year</label> | ||
<input type="number" class="form-control" placeholder=" Year" value="{{user.userprofile.year}}" name ="year"> | ||
</div> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-info btn-fill pull-right">Update Profile</button> | ||
<div class="clearfix"></div> | ||
<br> | ||
<span style="color: red; font-weight: bolder;">* Please put your original enrollment number or else equipment will not be issued.</span> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="card card-user"> | ||
<div class="card-image"> | ||
<img src="https://ununsplash.imgix.net/photo-1431578500526-4d9613015464?fit=crop&fm=jpg&h=300&q=75&w=400" alt="..."> | ||
</div> | ||
<div class="card-body"> | ||
<div class="author"> | ||
<a href="#"> | ||
<img class="avatar border-gray" src="{% static 'table/images/faces/face-3.jpg' %}" alt="..."> | ||
<h5 class="title">{{ user.first_name }} {{ user.last_name }}</h5> | ||
</a> | ||
<p class="description"> | ||
{{ user.username }} | ||
</p> | ||
</div> | ||
<p class="description text-center"> | ||
<ul> | ||
</ul> | ||
</p> | ||
</div> | ||
<hr> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
<!-- Core JS Files --> | ||
<script src="{% static 'table/js/core/jquery.3.2.1.min.js' %}" type="text/javascript"></script> | ||
<script src="{% static 'table/js/core/popper.min.js' %}" type="text/javascript"></script> | ||
<script src="{% static 'table/js/core/bootstrap.min.js' %}" type="text/javascript"></script> | ||
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ --> | ||
<script src="{% static 'table/js/plugins/bootstrap-switch.js' %}"></script><!-- Chartist Plugin --> | ||
<script src="{% static 'table/js/plugins/chartist.min.js' %}"></script> | ||
<!-- Notifications Plugin --> | ||
<script src="{% static 'table/js/plugins/bootstrap-notify.js' %}"></script> | ||
<!-- Control Center for Light Bootstrap Dashboard: scripts for the example pages etc --> | ||
<script src="{% static 'table/js/light-bootstrap-dashboard.js' %}" type="text/javascript"></script> | ||
<!-- Light Bootstrap Dashboard DEMO methods, don't include it in your project! --> | ||
<script src="{% static 'table/js/demo.js' %}"></script> | ||
<script type="text/javascript"> | ||
</script> | ||
|
||
</html> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
{% block content %} | ||
<form method="post" action="."> | ||
{% csrf_token %} | ||
{{ userform }} | ||
{{ profileform }} | ||
<input type="submit" name=""> | ||
</form> | ||
|
||
|
||
{% endblock %} | ||
|
Oops, something went wrong.