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">
<center><h3> {{ Price_prediction }} </h3></center>
<div role="alert"> </div>
<center><h3> {{ Price_prediction }} </h3></center> </form>
</div>
</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,57 +16,48 @@ ...@@ -16,57 +16,48 @@
<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> <th> EmployeeName </th>
<th> EmployeeName </th> <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>
</thead>
<tbody>
</tr> {% if d %}
</thead> {% for i in d %}
<tbody> <tr>
{% if d %} <td>{{i.StaffID}}</td>
{% for i in d %} <td>{{i.EmployeeName}}</td>
<tr> <td>{{i.JobDone}}</td>
<td>{{i.StaffID}}</td> <td>{{i.WorkQuality}} / 5 </td>
<td>{{i.TakenTime}} Minutes</td>
<td>{{i.EmployeeName}}</td> </tr>
<td>{{i.JobDone}}</td> {% endfor %}
<td>{{i.WorkQuality}} / 5 </td> {% endif %}
<td>{{i.TakenTime}} Minutes</td> </tbody>
</table>
</tr> </div>
{% endfor %}
{% endif %}
</tbody>
</table>
</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,54 +16,45 @@ ...@@ -16,54 +16,45 @@
<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;">
<table class="table table-striped">
<div class="container" style="overflow-x:auto;">
<thead>
<table class="table table-striped"> <tr>
<th> StaffID </th>
<thead> <th> EmployeeName </th>
<tr> <th> Available Status </th>
</tr>
<th> StaffID </th> </thead>
<th> EmployeeName </th> <tbody>
<th> Available Status </th> {% if d %}
</tr> {% for i in d %}
</thead> <tr>
<tbody> <td>{{i.StaffID}}</td>
{% if d %} <td>{{i.EmployeeName}}</td>
{% for i in d %} <td><div class="alert alert-success">Available</div></td>
<tr> </tr>
<td>{{i.StaffID}}</td> {% endfor %}
{% endif %}
<td>{{i.EmployeeName}}</td> </tbody>
<td><div class="alert alert-success"> </table>
Available </div>
</div></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</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>
<div class="text-right">
</form> <br><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