
Task statuses can now be changed by authorized users. It's a fairly naive implementation, using the three statuses that are already supported by the API. Ultimately I'd like it if the status list were populated from the server, however for now this should do. - Created a dropdown control that allows a status to be changed. - Updated the UI to present slightly different UI for logged in or logged out. - Update UI to allow different color indicators for different statuses. Change-Id: I98c1eb31438fb7f05d991ad7c0972dc994087a1e
24 lines
788 B
HTML
24 lines
788 B
HTML
<span class="label label-{{style}}" ng-hide="editable">
|
|
{{status}}
|
|
</span>
|
|
<div class="dropdown" ng-show="editable">
|
|
<a class="btn btn-{{style}} btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
{{status}}
|
|
<i class="fa fa-caret-down"></i>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
|
<li ng-class="{disabled: status == 'Todo'}">
|
|
<a href=""
|
|
ng-click="setStatus('Todo')">Todo</a>
|
|
</li>
|
|
<li ng-class="{disabled: status == 'In review'}">
|
|
<a href=""
|
|
ng-click="setStatus('In review')">In review</a>
|
|
</li>
|
|
<li ng-class="{disabled: status == 'Landed'}">
|
|
<a href=""
|
|
ng-click="setStatus('Landed')">Landed</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|