Enhance table todo item and update version to 1.0.2

This commit is contained in:
Supan Adit Pratama 2020-06-28 22:04:29 +07:00
parent 6c73b5712f
commit 54037eed87
3 changed files with 8 additions and 7 deletions

View File

@ -123,12 +123,13 @@
</button>
</div>
</div>
<table class="table table-condensed table-hover">
<br/>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 65%;">Name</th>
<th>Status</th>
<th>Action</th>
<th style="text-align:center;">Status</th>
<th style="text-align:center;">Action</th>
</tr>
</thead>
<tbody id="todo-view-modal-table-body"></tbody>
@ -306,8 +307,8 @@
const buttonDelete = "<button class=\"btn btn-xs btn-danger btn-todo-delete\"><i class=\"fa fa-trash\"></i></button>";
const row = "<tr>\n" +
" <td>" + todoItem.name + "</td>\n" +
" <td><label class=\"label " + (!todoItem.complete ? "label-danger" : "label-success") + "\">" + (!todoItem.complete ? "Not complete" : "Complete") + "</label></td>\n" +
" <td>\n" +
" <td align=\"center\"><label class=\"label " + (!todoItem.complete ? "label-danger" : "label-success") + "\">" + (!todoItem.complete ? "Not complete" : "Complete") + "</label></td>\n" +
" <td align=\"center\">\n" +
" " + buttonToggleMark + "\n" +
" " + buttonEdit + "\n" +
" " + buttonDelete + "\n" +

View File

@ -106,7 +106,7 @@
<footer class="main-footer">
<div class="container">
<div class="pull-right hidden-xs">
<b>Version</b> 1.0.1
<b>Version</b> 1.0.2
</div>
<strong>Copyright &copy; @php echo date('Y'); @endphp <b>Todo</b>&nbsp;<i>App</i>.</strong>
All rights

View File

@ -53,7 +53,7 @@
<div class="row">
<div class="col-xs-8">
<a href="/register" class="text-center">Register new account</a><br/>
Version 1.0.1
Version 1.0.2
</div>
<!-- /.col -->
<div class="col-xs-4">