mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-18 06:46:11 +00:00
change interface single task
This commit is contained in:
parent
977c034b64
commit
98419e3533
@ -11,14 +11,13 @@
|
|||||||
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px !important;
|
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px !important;
|
||||||
padding:1.7rem;
|
padding:1.7rem;
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
h1, h2, h3 {
|
margin-bottom: .5rem;
|
||||||
|
.subtitle {
|
||||||
background-color: $chill-ll-gray;
|
background-color: $chill-ll-gray;
|
||||||
border-radius:3px;
|
border-radius:3px;
|
||||||
padding:.5rem;
|
padding:.5rem;
|
||||||
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
// margin-left: auto;
|
|
||||||
// margin-right: auto;
|
|
||||||
// width: 97%;
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
@ -7,15 +7,12 @@
|
|||||||
&.place-new {
|
&.place-new {
|
||||||
background-color: $chill-yellow;
|
background-color: $chill-yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.place-in_progress {
|
&.place-in_progress {
|
||||||
background-color: $chill-green;
|
background-color: $chill-green;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.place-closed {
|
&.place-closed {
|
||||||
background-color: $chill-blue;
|
background-color: $chill-blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.place-canceled {
|
&.place-canceled {
|
||||||
background-color: $chill-beige;
|
background-color: $chill-beige;
|
||||||
}
|
}
|
||||||
|
@ -1,71 +1,68 @@
|
|||||||
<div class="task-show">
|
<div class="task-show">
|
||||||
|
|
||||||
<h1>{{ 'Task'|trans }}</h1>
|
{# <h1 class="content-title">{{ 'Task'|trans }}</h1> #}
|
||||||
|
|
||||||
<h2>{{ task.title }}
|
<h2 style="margin-bottom: 1rem;">{{ task.title }}
|
||||||
{% for place in workflow_marked_places(task) %}
|
{% for place in workflow_marked_places(task) %}
|
||||||
<span class="task-status box type-{{ task.type }} place-{{ place }}">{{ place|trans }}</span>
|
<span class="task-status badge rounded-pill box type-{{ task.type }} place-{{ place }}">{{ place|trans }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<dl class="chill_view_data">
|
<div class="pop-item">
|
||||||
|
<dl class="chill_view_data">
|
||||||
<dt class="inline">{{ 'Description'|trans }}</dt>
|
<dt class="inline">{{ 'Description'|trans }}</dt>
|
||||||
<dd>
|
|
||||||
{% if task.description is empty %}
|
|
||||||
<span class="chill-no-data-statement">{{"No description"|trans}}</span>
|
|
||||||
{% else %}
|
|
||||||
<blockquote class="chill-user-quote">
|
|
||||||
{{ task.description|chill_markdown_to_html }}
|
|
||||||
</blockquote>
|
|
||||||
{% endif %}
|
|
||||||
</dd>
|
|
||||||
|
|
||||||
<dt class="inline">{{ 'Assignee'|trans }}</dt>
|
|
||||||
<dd>
|
|
||||||
{% if task.assignee is null %}
|
|
||||||
<span class="chill-no-data-statement">{{"No one assignee"|trans}}</span>
|
|
||||||
{% else %}
|
|
||||||
{{ task.assignee }}
|
|
||||||
{% endif %}
|
|
||||||
</dd>
|
|
||||||
|
|
||||||
{% if task.scope is not null %}
|
|
||||||
<dt class="inline">{{ 'Scope'|trans }}</dt>
|
|
||||||
<dd>
|
<dd>
|
||||||
<span class="scope">{{ task.scope.name|localize_translatable_string }}</span>
|
{% if task.description is empty %}
|
||||||
|
<span class="chill-no-data-statement">{{"No description"|trans}}</span>
|
||||||
|
{% else %}
|
||||||
|
<blockquote class="chill-user-quote">
|
||||||
|
{{ task.description|chill_markdown_to_html }}
|
||||||
|
</blockquote>
|
||||||
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
{% endif %}
|
<dt class="inline">{{ 'Assignee'|trans }}</dt>
|
||||||
|
<dd class="info-field">
|
||||||
<h3>{{"Dates"|trans}}</h3>
|
{% if task.assignee is null %}
|
||||||
{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
|
<span class="chill-no-data-statement">{{"No one assignee"|trans}}</span>
|
||||||
<dt></dt>
|
{% else %}
|
||||||
<dd>
|
{{ task.assignee }}
|
||||||
<span class="chill-no-data-statement">{{"No dates specified"|trans}}</span>
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
</dt>
|
{% if task.scope is not null %}
|
||||||
{% else %}
|
<dt class="inline">{{ 'Scope'|trans }}</dt>
|
||||||
{% if task.startDate is not null %}
|
<dd class="info-field">
|
||||||
<dt class="inline">{{ 'Start'|trans }}</dt>
|
<span class="scope">{{ task.scope.name|localize_translatable_string }}</span>
|
||||||
<dd>{{ task.startDate|format_date('long') }}</dd>
|
</dd>
|
||||||
|
{% endif %}
|
||||||
|
<h3 class="subtitle">{{"Dates"|trans}}</h3>
|
||||||
|
{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
|
||||||
|
<dt></dt>
|
||||||
|
<dd class="info-field">
|
||||||
|
<span class="chill-no-data-statement">{{"No dates specified"|trans}}</span>
|
||||||
|
</dd>
|
||||||
|
</dt>
|
||||||
|
{% else %}
|
||||||
|
{% if task.startDate is not null %}
|
||||||
|
<dt class="inline">{{ 'Start'|trans }}</dt>
|
||||||
|
<dd class="info-field">{{ task.startDate|format_date('long') }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
{% if task.endDate is not null %}
|
||||||
|
<dt class="inline">{{ 'End'|trans }}</dt>
|
||||||
|
<dd class="info-field">{{ task.endDate|format_date('long') }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
{% if task.warningDate is not null %}
|
||||||
|
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
||||||
|
<dd class="info-field">{{ task.warningDate|format_date('long') }}</dd>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</dl>
|
||||||
{% if task.endDate is not null %}
|
</div>
|
||||||
<dt class="inline">{{ 'End'|trans }}</dt>
|
|
||||||
<dd>{{ task.endDate|format_date('long') }}</dd>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if task.warningDate is not null %}
|
|
||||||
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
|
||||||
<dd>{{ task.warningDate|format_date('long') }}</dd>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
{% if timeline is not null %}
|
{% if timeline is not null %}
|
||||||
<h3>{{"Timeline"|trans}}</h3>
|
<div class="pop-item">
|
||||||
{{ timeline|raw }}
|
<h3 class="subtitle">{{"Timeline"|trans}}</h3>
|
||||||
|
{{ timeline|raw }}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
<ul class="record_actions sticky-form-buttons">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user