Skip to content

Commit

Permalink
Add tags to available staffing requests table
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Bharadwaj committed May 19, 2021
1 parent 67fe26e commit c3565d1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
1 change: 1 addition & 0 deletions orchestra/bots/staffbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def get_staffing_request_metadata(self, staffing_request_inquiry):
worker.user)
return {
'user': user,
'tags': staffbot_request.task.tags.get('tags', []),
'accept_url': accept_url,
'reject_url': reject_url,
'role_counter': staffbot_request.required_role_counter,
Expand Down
6 changes: 0 additions & 6 deletions orchestra/static/dist/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1383,12 +1383,6 @@ li.checklist-item, .new-item {
border: 1px solid #cccccc; }
.collapsed-toggle {
cursor: pointer; }

.tags-col {
max-width: 150px; }
.tags-col span {
display: inline-block;
margin-right: 3px; }
/**
* Common stylesheet for Orchestra.
*
Expand Down
9 changes: 9 additions & 0 deletions orchestra/static/dist/orchestra/common/css/orchestra.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,12 @@ a.logo {
width: 10%; }
.staffing-container .card table .row-actions {
width: 15%; }

.tags-col {
max-width: 150px;
}

.tags-col span {
display: inline-block;
margin-right: 3px;
}
8 changes: 0 additions & 8 deletions orchestra/static/orchestra/dashboard/tasktable.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
.collapsed-toggle {
cursor: pointer;
}

.tags-col {
max-width: 150px;
span {
display: inline-block;
margin-right: 3px;
}
}
12 changes: 10 additions & 2 deletions orchestra/templates/communication/available_staffing_requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<table class="table">
<tr>
<th class="row-project">Project</th>
<th class="row-project-description">Project description</th>
<th class="row-project-description tags-col">Project description</th>
<th class="row-task">Task</th>
<th class="row-details">Details</th>
<th class="row-created-at">Available since</th>
Expand All @@ -24,7 +24,15 @@
{% for request in requests %}
<tr>
<td>{{ request.workflow_description }}</td>
<td>{{ request.project_description }}</td>
<td class="tags-col">
{{ request.project_description }}
<br>
{% for tag in request.tags %}
<span class="label label-{{tag.status}}">
{{tag.label}}
</span>
{% endfor %}
</td>
<td>{% if request.role_counter > 0 %}[Review] {% endif %}{{ request.step_description }}</td>
<td>{{ request.detailed_description | safe }}</td>
<td>{{ request.available_datetime|date:"m/d/Y H:i" }}</td>
Expand Down

0 comments on commit c3565d1

Please sign in to comment.