Adding task info about user to taskboard
parent
c66dbc4f9b
commit
74fde653d3
|
@ -34,7 +34,7 @@ class PageMixin
|
||||||
return promise.then (results) =>
|
return promise.then (results) =>
|
||||||
[users, roles] = results
|
[users, roles] = results
|
||||||
|
|
||||||
@scope.users = _.sortBy(users, "full_name_display")
|
@scope.users = _.sortBy(users, "full_name")
|
||||||
@scope.usersById = groupBy(@scope.users, (e) -> e.id)
|
@scope.usersById = groupBy(@scope.users, (e) -> e.id)
|
||||||
|
|
||||||
@scope.roles = _.sortBy(roles, "order")
|
@scope.roles = _.sortBy(roles, "order")
|
||||||
|
|
|
@ -3,8 +3,8 @@ div.taskboard-tagline
|
||||||
div.taskboard-task-inner
|
div.taskboard-task-inner
|
||||||
figure.avatar
|
figure.avatar
|
||||||
a(href="", title="UserName")
|
a(href="", title="UserName")
|
||||||
img.avatar(src="http://thecodeplayer.com/u/uifaces/12.jpg", alt="username")
|
img.avatar(src="{{ usersById[task.assigned_to].avatar_url }}", alt="{{ usersById[task.assigned_to].full_name }}")
|
||||||
figcaption Username
|
figcaption {{ usersById[task.assigned_to].full_name }}
|
||||||
p.taskboard-text
|
p.taskboard-text
|
||||||
span.task-num(ng-bind="task.ref")
|
span.task-num(ng-bind="task.ref")
|
||||||
span.task-name(ng-bind="task.subject")
|
span.task-name(ng-bind="task.subject")
|
||||||
|
|
|
@ -8,7 +8,7 @@ form
|
||||||
select(ng-model="task.status", ng-options="s.id as s.name for s in taskStatusList",
|
select(ng-model="task.status", ng-options="s.id as s.name for s in taskStatusList",
|
||||||
placeholder="Task status")
|
placeholder="Task status")
|
||||||
fieldset
|
fieldset
|
||||||
select(ng-model="task.assigned_to", ng-options="s.id as s.full_name_display for s in users",
|
select(ng-model="task.assigned_to", ng-options="s.id as s.full_name for s in users",
|
||||||
placeholder="Assigned to")
|
placeholder="Assigned to")
|
||||||
option(value="") Unassigned
|
option(value="") Unassigned
|
||||||
fieldset
|
fieldset
|
||||||
|
|
Loading…
Reference in New Issue