* fixed multiple username bug

* added table to devices page
This commit is contained in:
lukas-heiligenbrunner 2020-01-10 18:18:06 +01:00
parent 0518c1c809
commit f7383474ac

View File

@ -65,64 +65,50 @@
</div> </div>
</div> </div>
<!-- Sidebar --> <!-- Sidebar Menu -->
<div class="sidebar"> <nav class="mt-2">
<!-- Sidebar user panel (optional) --> <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
<div class="user-panel mt-3 pb-3 mb-3 d-flex"> data-accordion="false">
<div class="image">
<!-- <img src="lib/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image"> -->
<i class="nav-icon fas fa-user img-circle elevation-2" style="color:white"></i>
</div>
<!-- <i class="nav-icon fas fa-tachometer-alt"></i> -->
<div class="info">
<a href="user.html" class="d-block" id="userlabel">Username to set!</a>
</div>
</div>
<!-- Sidebar Menu --> <li class="nav-item">
<nav class="mt-2"> <a href="#todo" class="nav-link">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" <i class="nav-icon fas fa-cog"></i>
data-accordion="false"> <p>
Settings
</p>
</a>
</li>
<li class="nav-item"> <li class="nav-item">
<a href="#todo" class="nav-link"> <a href="index.html" class="nav-link" id="logoutbtn">
<i class="nav-icon fas fa-cog"></i> <i class="nav-icon fas fa-sign-out-alt"></i>
<p> <p>
Settings Logout
</p> </p>
</a> </a>
</li> </li>
<li class="nav-item"> <li id="adminpanel" class="nav-item hideit">
<a href="index.html" class="nav-link" id="logoutbtn"> <a href="adminpanel.html" class="nav-link">
<i class="nav-icon fas fa-sign-out-alt"></i> <i class="nav-icon fas fa-plus-circle"></i>
<p> <p>
Logout Admin panel
</p> </p>
</a> </a>
</li> </li>
<li id="adminpanel" class="nav-item hideit"> <li id="devicepanel" class="nav-item">
<a href="adminpanel.html" class="nav-link"> <a href="device.html" class="nav-link">
<i class="nav-icon fas fa-plus-circle"></i> <i class="nav-icon fas fa-plus-circle"></i>
<p> <p>
Admin panel Devices
</p> </p>
</a> </a>
</li> </li>
</ul>
<li id="devicepanel" class="nav-item"> </nav>
<a href="device.html" class="nav-link"> <!-- /.sidebar-menu -->
<i class="nav-icon fas fa-plus-circle"></i> </div>
<p>
Devices
</p>
</a>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar --> <!-- /.sidebar -->
</aside> </aside>
@ -193,42 +179,32 @@
<div class="card-header"> <div class="card-header">
<h3 class="card-title"> <h3 class="card-title">
<i class="fas fa-chart-pie mr-1"></i> <i class="fas fa-chart-pie mr-1"></i>
User Data All Devices
</h3> </h3>
<button id="btn-newdevice" type="button" class="btn btn-success"
style="float:right;">Save
</button>
</div><!-- /.card-header --> </div><!-- /.card-header -->
<div class="card-body"> <div class="card-body">
<div class="form-group" style="margin-top: 15px; width: 10cm;"> <table id="table-pickupdates" class="table table-bordered table-hover">
<!-- todo todo --> <thead>
<label for="new_city_cityname">City/Village name</label> <tr>
<input type="email" class="form-control" id="new_city_cityname" <th>City</th>
aria-describedby="emailHelp" placeholder="Enter city name here"> <th>Zone</th>
<small class="form-text text-muted">Please try to use no special <th>Waste Type</th>
characters</small> <th>Date</th>
</div> <th>X</th>
<div class="form-group" style="width: 10cm;"> </tr>
<label for="new_city_zonename">Zone Name</label> </thead>
<input type="email" class="form-control" id="new_city_zonename" <tbody id="picupdates-tablebody">
aria-describedby="emailHelp" placeholder="Enter Zone name here"> </tbody>
<small class="form-text text-muted">Please try to use no special <tfoot>
characters</small> <tr>
</div> <th>City</th>
<th>Zone</th>
<div class="input-group-prepend"> <th>Waste Type</th>
<button id="dropdown-wastetype" type="button" <th>Date</th>
class="btn btn-outline-dark dropdown-toggle" <th>X</th>
data-toggle="dropdown"> </tr>
Select waste type </tfoot>
</button> </table>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Plastic</a>
<a class="dropdown-item" href="#">Metal</a>
<a class="dropdown-item" href="#">Residual waste</a>
<a class="dropdown-item" href="#">Biowaste</a>
</div>
</div>
</div><!-- /.card-body --> </div><!-- /.card-body -->
</div> </div>