-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,8 @@ | |
padding: 10px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.task-item { | ||
background-color: #f9f9f9; | ||
margin-bottom: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,44 @@ | ||
<h4 class="vpad10 text-primary"> | ||
Tasks ({{$vm.template.tasks.length || 0}}) | ||
<a class="pull-right" href ng-click="$vm.addTask()"> | ||
<i class="fa fa-plus"></i> | ||
Add task</a> | ||
</h4> | ||
<div ng-if="$vm.template.tasks.length !== 0" ui-sortable="$vm.sortableOptions" ng-model="$vm.template.tasks"> | ||
<div class="panel panel-default" ng-init="$vm.isCollapsed=true" ng-repeat="t in $vm.template.tasks"> | ||
<div class="panel-heading"> | ||
<span class="drag-handle text-primary clickable mr-xxs"> | ||
<i class="fa fa-bars"></i> | ||
</span> | ||
<span> | ||
<a href ng-click="$vm.isCollapsed=!$vm.isCollapsed"> | ||
<i class="fa" ng-class="{'fa-caret-down': $vm.isCollapsed, 'fa-caret-up': !$vm.isCollapsed}"></i> | ||
</a> | ||
</span> | ||
<span class="hpad5">{{t.title}}</span> | ||
<span class="mr-xxs" ng-if="t.owner">(Assigned to <em>{{$vm.getUserInfo.get(t.owner) | getField:'name'}}</em>)</span> | ||
<div class="case-template-section"> | ||
<h4 class="vpad10 text-primary"> | ||
Tasks ({{$vm.template.tasks.length || 0}}) | ||
<a class="pull-right" href ng-click="$vm.addTask()"> | ||
<i class="fa fa-plus"></i> | ||
</a> | ||
</h4> | ||
|
||
<span class="pull-right"> | ||
<a class="text-default" href ng-click="$vm.editTask(t)"> | ||
<i class="fa fa-pencil"></i> Edit</a> | ||
<span class="hpad5"></span> | ||
<a class="text-danger" href ng-click="$vm.removeTask(t)"> | ||
<i class="fa fa-times"></i> Delete</a> | ||
</span> | ||
</div> | ||
<div class="panel-body" ng-hide="$vm.isCollapsed"> | ||
<p btf-markdown="t.description" ng-show="t.description != ''"></p> | ||
<p class="text-warning" ng-show="!t.description || t.description===''"> | ||
<em>No description specified</em> | ||
</p> | ||
<div class="empty-message" ng-if="!$vm.template.tasks || $vm.template.tasks.length === 0"> | ||
No tasks have been specified. | ||
</div> | ||
|
||
<div ng-if="$vm.template.tasks.length !== 0" ui-sortable="$vm.sortableOptions" ng-model="$vm.template.tasks"> | ||
<div class="task-item" ng-init="isCollapsed=true" ng-repeat="t in $vm.template.tasks"> | ||
<div class="panel-heading"> | ||
<span class="drag-handle text-primary clickable mr-xxs"> | ||
<i class="fa fa-bars"></i> | ||
</span> | ||
<span> | ||
<a href ng-click="isCollapsed=!isCollapsed"> | ||
<i class="fa" ng-class="{'fa-caret-down': isCollapsed, 'fa-caret-up': !isCollapsed}"></i> | ||
</a> | ||
</span> | ||
<span class="hpad5">{{t.title}}</span> | ||
<span class="mr-xxs" ng-if="t.owner">(Assigned to <em>{{$vm.getUserInfo.get(t.owner) | getField:'name'}}</em>)</span> | ||
|
||
<span class="pull-right"> | ||
<a class="text-default" href ng-click="$vm.editTask(t)"> | ||
<i class="fa fa-pencil"></i> Edit</a> | ||
<span class="hpad5"></span> | ||
<a class="text-danger" href ng-click="$vm.removeTask(t)"> | ||
<i class="fa fa-trash"></i> Delete</a> | ||
</span> | ||
</div> | ||
<div class="panel-body" ng-hide="isCollapsed"> | ||
<p btf-markdown="t.description" ng-show="t.description != ''"></p> | ||
<p class="text-warning" ng-show="!t.description || t.description===''"> | ||
<em>No description specified</em> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="empty-message" ng-if="!$vm.template.tasks || $vm.template.tasks.length === 0"> | ||
No tasks have been specified | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters