UI Update

parent 5eeebf7c
...@@ -18,43 +18,32 @@ ...@@ -18,43 +18,32 @@
<br/><br/> <br/><br/>
{% if messages %} {% if messages %}
<div class="alert alert-danger" role="alert"> <div class="alert alert-danger" role="alert">
{% for message in messages %} {% for message in messages %}
{% if message.tags %} {% endif %} {{ message }} {% if message.tags %} {% endif %} {{ message }}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
<div class="card-heading"> <div class="card-heading">
<h2 class="title"> ASSIGN EMPLOYEE </h2> <h2 class="title"> ASSIGN EMPLOYEE </h2>
</div> </div>
<div class="card-body"> <div class="card-body">
<form action="/Admin/EmployeeStatus_Update/" method="post"> <form action="/Admin/EmployeeStatus_Update/" method="post">
{% csrf_token %} {% csrf_token %}
<table class="table table-light"> <table class="table table-light">
{{form.as_table}} {{form.as_table}}
</table> </table>
<input type="submit" value="Assign" class="btn btn--radius-2 btn" style="background:#02111f"/>
<input type="submit" value="Assign" class="btn btn--radius-2 btn" style="background:#02111f"/>
<div role="alert"> <div role="alert">
<center><h3> {{ Price_prediction }} </h3></center> <center><h3> {{ Price_prediction }} </h3></center>
</div> </div>
</form>
</form>
<br> <br>
<br> <br> <br> <br> <br> <br> <br>
<br> <br> <br> <br> <br> <br> <br>
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
</div> </div>
</div> </div>
......
...@@ -16,28 +16,24 @@ ...@@ -16,28 +16,24 @@
<div style="margin-left: 0px;" class="card card-5"> <div style="margin-left: 0px;" class="card card-5">
{% if messages %} {% if messages %}
<ul class="messages"> <ul class="messages">
{% for message in messages %} {% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li> <li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<div class="card-heading"> <div class="card-heading">
<h2 class="title"> EMPLOYEE DATA </h2> <h2 class="title"> EMPLOYEE DATA </h2>
</div> </div>
<div id="myDiv"> <div id="myDiv">
<div id="div_print"> <div id="div_print">
<div class="card card-body printableArea"> <div class="card card-body printableArea">
<div class="container" style="overflow-x:auto;"> <div class="container" style="overflow-x:auto;">
EMPLOYEE DATA LIST EMPLOYEE DATA LIST
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th> StaffID </th> <th> StaffID </th>
...@@ -45,8 +41,6 @@ ...@@ -45,8 +41,6 @@
<th> Work Done </th> <th> Work Done </th>
<th> Work Rate </th> <th> Work Rate </th>
<th> Taken Time </th> <th> Taken Time </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -54,19 +48,16 @@ ...@@ -54,19 +48,16 @@
{% for i in d %} {% for i in d %}
<tr> <tr>
<td>{{i.StaffID}}</td> <td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td> <td>{{i.EmployeeName}}</td>
<td>{{i.JobDone}}</td> <td>{{i.JobDone}}</td>
<td>{{i.WorkQuality}} / 5 </td> <td>{{i.WorkQuality}} / 5 </td>
<td>{{i.TakenTime}} Minutes</td> <td>{{i.TakenTime}} Minutes</td>
</tr> </tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div></div> </div></div>
...@@ -87,13 +78,11 @@ ...@@ -87,13 +78,11 @@
<div class="card-body"> <div class="card-body">
<input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print "> <input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print ">
</div> </div>
<div class="alert alert-primary fixed-bottom mb-0 text-center" style="background: #747578; border: none; color: white;" role="alert" > © SERVPORT 2022 </div> <div class="alert alert-primary fixed-bottom mb-0 text-center" style="background: #747578; border: none; color: white;" role="alert" > © SERVPORT 2022 </div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -16,32 +16,27 @@ ...@@ -16,32 +16,27 @@
<div style="margin-left: 0px;" class="card card-5"> <div style="margin-left: 0px;" class="card card-5">
{% if messages %} {% if messages %}
<ul class="messages"> <ul class="messages">
{% for message in messages %} {% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li> <li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<div class="card-heading"> <div class="card-heading">
<h2 class="title"> EMPLOYEE EFFICIENCY PREDICTION </h2> <h2 class="title"> EMPLOYEE EFFICIENCY PREDICTION </h2>
</div> </div>
<div id="myDiv"> <div id="myDiv">
<div id="div_print"> <div id="div_print">
<div class="card card-body printableArea"> <div class="card card-body printableArea">
<div role="alert" > <div role="alert" >
<div class="container" style="overflow-x:auto;"> <div class="container" style="overflow-x:auto;">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th> StaffID </th> <th> StaffID </th>
<th> EmployeeName </th> <th> EmployeeName </th>
<th> Available Status </th> <th> Available Status </th>
...@@ -52,18 +47,14 @@ ...@@ -52,18 +47,14 @@
{% for i in d %} {% for i in d %}
<tr> <tr>
<td>{{i.StaffID}}</td> <td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td> <td>{{i.EmployeeName}}</td>
<td><div class="alert alert-success"> <td><div class="alert alert-success">Available</div></td>
Available
</div></td>
</tr> </tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div></div></div> </div></div></div>
...@@ -88,25 +79,20 @@ ...@@ -88,25 +79,20 @@
<div class="card-body"> <div class="card-body">
<form action="/Admin/Employee_Efficiency/" method="post"> <form action="/Admin/Employee_Efficiency/" method="post">
{% csrf_token %} {% csrf_token %}
<table class="table table-light"> <table class="table table-light">
{{form.as_table}} {{form.as_table}}
</table> </table>
<input type="submit" value="PREDICT EMPLOYEE" class="btn btn--radius-2" style="background: #02111f;"/> <input type="submit" value="PREDICT EMPLOYEE" class="btn btn--radius-2" style="background: #02111f;"/>
</form>
<br>
</form> <br><div class="text-right"> <div class="text-right">
<input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print "> <input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print ">
</div> </div>
<br> <br>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment