Skip to content

Commit

Permalink
Fixed create edit delete and checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
johc committed Mar 11, 2024
1 parent 8eec691 commit 1ee62df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flask_monitoringdashboard/static/pages/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h4>Configuration settings</h4>
<div class="form-group row">
<label class="col-md-4 col-form-label text-md-right" for="create-admin">Admin</label>
<div class="col-md-8">
<input type="checkbox" id="create-admin" class="form-control"/>
<input type="checkbox" id="create-admin"/>
</div>
</div>
</modal>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h4>Configuration settings</h4>
<div class="form-group row">
<label class="col-md-4 col-form-label text-md-right" for="edit-admin">Admin</label>
<div class="col-md-8">
<input type="checkbox" id="edit-admin" class="form-control" ng-model="user.is_admin"/>
<input type="checkbox" id="edit-admin" ng-model="user.is_admin"/>
</div>
</div>
</modal>
Expand All @@ -131,14 +131,14 @@ <h4>User management</h4>
<td>{{ user.username }}</td>
<td>{{ user.is_admin ? 'Yes' : 'No' }}</td>
<td>
<button class="btn btn-primary" ng-click="openModal('edit', user)">Edit</button>
<button class="btn btn-primary" ng-click="openModal('edit', user)" data-bs-toggle="modal" data-bs-target="#editModal">Edit</button>
</td>
<td>
<button class="btn btn-primary" ng-click="openModal('delete', user)">Delete</button>
<button class="btn btn-primary" ng-click="openModal('delete', user)" data-bs-toggle="modal" data-bs-target="#deleteModal">Delete</button>
</td>
</tr>
</table>
<button class="btn btn-primary" ng-click="openModal('create', null)">Create new user</button>
<button class="btn btn-primary" ng-click="openModal('create', null)" data-bs-toggle="modal" data-bs-target="#createModal">Create new user</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 1ee62df

Please sign in to comment.