mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
front-end/design single tasks
This commit is contained in:
@@ -33,22 +33,22 @@
|
||||
</td>
|
||||
<td>
|
||||
{% if task.startDate is null and task.warningDate is null and task.endDate is null %}
|
||||
{{'Unknown dates'|trans}}
|
||||
{{'No dates specified'|trans}}
|
||||
{% else %}
|
||||
<ul class="record_actions_column">
|
||||
<li>
|
||||
{% if task.startDate is not null %}
|
||||
{{'Start: '|trans}}{{ task.startDate|localizeddate('medium', 'none') }}
|
||||
{{'Start'|trans}} :{{ task.startDate|localizeddate('medium', 'none') }}
|
||||
{% endif %}
|
||||
</li>
|
||||
<li>
|
||||
{% if task.warningDate is not null %}
|
||||
{{'Warning: '|trans}}{{ task.warningDate|localizeddate('medium', 'none') }}
|
||||
{{'Warning'|trans}} :{{ task.warningDate|localizeddate('medium', 'none') }}
|
||||
{% endif %}
|
||||
</li>
|
||||
<li>
|
||||
{% if task.endDate is not null %}
|
||||
{{'End: '|trans}}{{ task.endDate|localizeddate('medium', 'none') }}
|
||||
{{'End'|trans}} :{{ task.endDate|localizeddate('medium', 'none') }}
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
@@ -56,6 +56,16 @@
|
||||
</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<div class="bt-dropdown">
|
||||
<a href="" class="sc-button bt-task-exchange"> </a>
|
||||
<div class="bt-dropdown-content">
|
||||
{% for transition in workflow_transitions(task) %}
|
||||
<a href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name|trans, 'kind': 'single-task', 'return_path': app.request.uri }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">{{ task_workflow_metadata(task, 'transition.verb', transition) }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('chill_task_single_task_show', { 'id': task.id }) }}" class="sc-button bt-show "></a>
|
||||
</li>
|
||||
|
@@ -25,32 +25,58 @@
|
||||
{% block personcontent %}
|
||||
<h1 class="chill-red">{{ 'Task'|trans }}</h1>
|
||||
|
||||
<h2>{{ task.title }}</h2>
|
||||
|
||||
<dl class="chill_view_data">
|
||||
<dt class="inline">{{ 'Title'|trans }}</dt>
|
||||
<dd>{{ task.title }}</dd>
|
||||
|
||||
<dt class="inline">{{ 'Description'|trans }}</dt>
|
||||
<dd>{{ task.description }}</dd>
|
||||
<dd>
|
||||
{% if task.description is empty %}
|
||||
<span class="chill-no-data-statement">{{"No description"|trans}}</span>
|
||||
{% else %}
|
||||
{{ task.description }}
|
||||
{% endif %}
|
||||
</dd>
|
||||
|
||||
<dt class="inline">{{ 'Assignee'|trans }}</dt>
|
||||
<dd>{{ task.assignee }}</dd>
|
||||
<dd>
|
||||
{% if task.assignee is null %}
|
||||
<span class="chill-no-data-statement">{{"No one assignee"|trans}}</span>
|
||||
{% else %}
|
||||
{{ task.assignee }}
|
||||
{% endif %}
|
||||
</dd>
|
||||
|
||||
<dt class="inline">{{ 'Scope'|trans }}</dt>
|
||||
<dd><span class="scope">{{ task.scope.name|localize_translatable_string }}</span></dd>
|
||||
|
||||
<dt class="inline">{{ 'Start date'|trans }}</dt>
|
||||
<dd>{{ task.startDate|localizeddate('long', 'none') }}</dd>
|
||||
<h3>{{"Dates"|trans}}</h3>
|
||||
{% if task.startDate is null and task.endDate is null and task.warningDate is null %}
|
||||
<dt>
|
||||
<dd><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>{{ task.startDate|localizeddate('long', 'none') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
<dt class="inline">{{ 'End date'|trans }}</dt>
|
||||
<dd>{{ task.endDate|localizeddate('long', 'none') }}</dd>
|
||||
{% if task.endDate is not null %}
|
||||
<dt class="inline">{{ 'End'|trans }}</dt>
|
||||
<dd>{{ task.endDate|localizeddate('long', 'none') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
<dt class="inline">{{ 'Warning date'|trans }}</dt>
|
||||
<dd>{{ task.warningDate|localizeddate('long', 'none') }}</dd>
|
||||
{% if task.warningDate is not null %}
|
||||
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
||||
<dd>{{ task.warningDate|localizeddate('long', 'none') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</dl>
|
||||
|
||||
<ul class="record_actions">
|
||||
<li class="cancel">
|
||||
<a class="sc-button bt-cancel" href="{{ path('chill_task_task_list_by_person', { 'personId': person.id } ) }}">
|
||||
<a class="sc-button bt-cancel" href="{{ path('chill_task_singletask_list', { 'person_id': person.id } ) }}">
|
||||
{{ 'Back to the list'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user