UI Update

parent 5eeebf7c
......@@ -18,43 +18,32 @@
<br/><br/>
{% if messages %}
<div class="alert alert-danger" role="alert">
{% for message in messages %}
{% if message.tags %} {% endif %} {{ message }}
{% endfor %}
</div>
{% endif %}
{% for message in messages %}
{% if message.tags %} {% endif %} {{ message }}
{% endfor %}
</div>
{% endif %}
<div class="card-heading">
<h2 class="title"> ASSIGN EMPLOYEE </h2>
</div>
<div class="card-body">
<form action="/Admin/EmployeeStatus_Update/" method="post">
{% csrf_token %}
<table class="table table-light">
{{form.as_table}}
</table>
<input type="submit" value="Assign" class="btn btn--radius-2 btn" style="background:#02111f"/>
<div role="alert">
<center><h3> {{ Price_prediction }} </h3></center>
</div>
</form>
{% csrf_token %}
<table class="table table-light">
{{form.as_table}}
</table>
<input type="submit" value="Assign" class="btn btn--radius-2 btn" style="background:#02111f"/>
<div role="alert">
<center><h3> {{ Price_prediction }} </h3></center>
</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>
</div>
</div>
......
......@@ -16,57 +16,48 @@
<div style="margin-left: 0px;" class="card card-5">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</ul>
{% endif %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</ul>
{% endif %}
<div class="card-heading">
<h2 class="title"> EMPLOYEE DATA </h2>
</div>
<div id="myDiv">
<div id="div_print">
<div class="card card-body printableArea">
<div class="container" style="overflow-x:auto;">
EMPLOYEE DATA LIST
<table class="table table-striped">
<thead>
<tr>
<th> StaffID </th>
<th> EmployeeName </th>
<th> Work Done </th>
<th> Work Rate </th>
<th> Taken Time </th>
</tr>
</thead>
<tbody>
{% if d %}
{% for i in d %}
<tr>
<td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td>
<td>{{i.JobDone}}</td>
<td>{{i.WorkQuality}} / 5 </td>
<td>{{i.TakenTime}} Minutes</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
<table class="table table-striped">
<thead>
<tr>
<th> StaffID </th>
<th> EmployeeName </th>
<th> Work Done </th>
<th> Work Rate </th>
<th> Taken Time </th>
</tr>
</thead>
<tbody>
{% if d %}
{% for i in d %}
<tr>
<td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td>
<td>{{i.JobDone}}</td>
<td>{{i.WorkQuality}} / 5 </td>
<td>{{i.TakenTime}} Minutes</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div></div>
......@@ -87,13 +78,11 @@
<div class="card-body">
<input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print ">
</div>
<input name="b_print" type="button" class="btn btn-print" style="background: #02111f;" onClick="printdiv('div_print');" value=" Print ">
</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>
......
......@@ -16,54 +16,45 @@
<div style="margin-left: 0px;" class="card card-5">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</ul>
{% endif %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class=" {{ message.tags }} " {% endif %}> {{ message }} </li>
{% endfor %}
</ul>
{% endif %}
<div class="card-heading">
<h2 class="title"> EMPLOYEE EFFICIENCY PREDICTION </h2>
</div>
<div id="myDiv">
<div id="div_print">
<div class="card card-body printableArea">
<div role="alert" >
<div class="container" style="overflow-x:auto;">
<table class="table table-striped">
<thead>
<tr>
<th> StaffID </th>
<th> EmployeeName </th>
<th> Available Status </th>
</tr>
</thead>
<tbody>
{% if d %}
{% for i in d %}
<tr>
<td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td>
<td><div class="alert alert-success">
Available
</div></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
<div role="alert" >
<div class="container" style="overflow-x:auto;">
<table class="table table-striped">
<thead>
<tr>
<th> StaffID </th>
<th> EmployeeName </th>
<th> Available Status </th>
</tr>
</thead>
<tbody>
{% if d %}
{% for i in d %}
<tr>
<td>{{i.StaffID}}</td>
<td>{{i.EmployeeName}}</td>
<td><div class="alert alert-success">Available</div></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div></div></div>
......@@ -88,25 +79,20 @@
<div class="card-body">
<form action="/Admin/Employee_Efficiency/" method="post">
{% csrf_token %}
<table class="table table-light">
{{form.as_table}}
</table>
<input type="submit" value="PREDICT EMPLOYEE" class="btn btn--radius-2" style="background: #02111f;"/>
</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 ">
</div>
<form action="/Admin/Employee_Efficiency/" method="post">
{% csrf_token %}
<table class="table table-light">
{{form.as_table}}
</table>
<input type="submit" value="PREDICT EMPLOYEE" class="btn btn--radius-2" style="background: #02111f;"/>
</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 ">
</div>
<br>
</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