mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
add color to task status
This commit is contained in:
parent
fe5f63457b
commit
fe45ce5447
@ -5,4 +5,5 @@ Branch master
|
|||||||
- add assignee in task list;
|
- add assignee in task list;
|
||||||
- fix some translation;
|
- fix some translation;
|
||||||
- add a filtering by center on list;
|
- add a filtering by center on list;
|
||||||
|
- add color in boxes for task statuses;
|
||||||
|
|
||||||
|
34
Resources/public/sass/_task-statuses.scss
Normal file
34
Resources/public/sass/_task-statuses.scss
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
.task-status {
|
||||||
|
&.box {
|
||||||
|
font-variant: small-caps;
|
||||||
|
display: inline;
|
||||||
|
padding: .2em .6em .3em;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 1;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
vertical-align: baseline;
|
||||||
|
border-radius: .25em;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.type-task_default {
|
||||||
|
// 'new', 'in_progress', 'closed', 'canceled'
|
||||||
|
&.place-new {
|
||||||
|
background-color: var(--chill-yellow);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.place-in_progress {
|
||||||
|
background-color: var(--chill-green);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.place-closed {
|
||||||
|
background-color: var(--chill-blue);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.place-canceled {
|
||||||
|
background-color: var(--chill-beige);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
@import '../../../../main/Resources/public/sass/custom/config/colors';
|
@import '../../../../main/Resources/public/sass/custom/config/colors';
|
||||||
|
@import "_task-statuses.scss";
|
||||||
|
|
||||||
div#single_task_warningInterval {
|
div#single_task_warningInterval {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{% for place in workflow_marked_places(task) %}
|
{% for place in workflow_marked_places(task) %}
|
||||||
<span class="">{{ place|trans }}</span>
|
<span class="task-status box type-{{ task.type }} place-{{ place }}">{{ place|trans }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if task.assignee is not null %}
|
{% if task.assignee is not null %}
|
||||||
|
@ -25,17 +25,12 @@
|
|||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
<h1 class="chill-red">{{ 'Task'|trans }}</h1>
|
<h1 class="chill-red">{{ 'Task'|trans }}</h1>
|
||||||
|
|
||||||
<h2>{{ task.title }}</h2>
|
<h2>{{ task.title }} {% for place in workflow_marked_places(task) %}
|
||||||
|
<span class="task-status box type-{{ task.type }} place-{{ place }}">{{ place|trans }}</span>
|
||||||
|
{% endfor %}</h2>
|
||||||
|
|
||||||
<dl class="chill_view_data">
|
<dl class="chill_view_data">
|
||||||
|
|
||||||
<dt class="inline">{{ 'Task status'|trans }}</dt>
|
|
||||||
<dd>
|
|
||||||
{% for place in workflow_marked_places(task) %}
|
|
||||||
<span class="">{{ place|trans }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</dd>
|
|
||||||
|
|
||||||
<dt class="inline">{{ 'Description'|trans }}</dt>
|
<dt class="inline">{{ 'Description'|trans }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% if task.description is empty %}
|
{% if task.description is empty %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user