Update board active status behaviors.
Added text to Settings page checkboxes. Updated boards controller to only show active boards in lists. New CSS class for settings page text.
This commit is contained in:
parent
730c266bac
commit
454921c984
@ -472,9 +472,6 @@ p.detail {
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
#widget-container {
|
||||
/*background-color: #f8f8f8;
|
||||
box-shadow: 0px 0px 7px 0px rgba(51,51,51,.3);
|
||||
border-radius: 5px;*/
|
||||
display: table-cell;
|
||||
}
|
||||
.min-padding { padding: 5px; }
|
||||
@ -519,6 +516,11 @@ fieldset > .list-group {
|
||||
span.filter {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.board-status {
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
min-width: 50px;
|
||||
}
|
||||
#change-password, #default-board, #change-username {
|
||||
width: 48%;
|
||||
float: left;
|
||||
|
@ -155,8 +155,10 @@ function ($scope, $routeParams, $location, $interval, $window,
|
||||
if ($scope.boards) {
|
||||
$scope.boardNames = [];
|
||||
$scope.boards.forEach(function(board) {
|
||||
// Add each board's name to the list.
|
||||
$scope.boardNames.push({id: board.id, name: board.name});
|
||||
if (parseInt(board.active) === 1) {
|
||||
// Add each board's name to the list.
|
||||
$scope.boardNames.push({id: board.id, name: board.name});
|
||||
}
|
||||
|
||||
// If the board is the current board, process and assign it.
|
||||
if (board.id == $scope.boardId) {
|
||||
|
@ -52,7 +52,14 @@
|
||||
data-ng-click="boardFormData.setBoard(board)"></a>
|
||||
<a class="fa fa-trash-o" title="Remove Board"
|
||||
data-ng-click="removeBoard(board.id)"></a>
|
||||
<input type="checkbox" data-ng-checked="board.active == 1" data-ng-click="toggleActiveState(board.id)">
|
||||
<label class="board-status" data-ng-show="board.active == 1">
|
||||
<input type="checkbox" data-ng-checked="board.active == 1" data-ng-click="toggleActiveState(board.id)" title="Active Status">
|
||||
Active
|
||||
</label>
|
||||
<label class="board-status" data-ng-show="board.active == 0">
|
||||
<input type="checkbox" data-ng-checked="board.active == 1" data-ng-click="toggleActiveState(board.id)" title="Active Status">
|
||||
Inactive
|
||||
</label>
|
||||
</span>
|
||||
<span data-ng-if="isDeleting[board.id]" class="fa fa-refresh fa-spin"></span>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user