23 lines
2.7 KiB
HTML
Executable File
23 lines
2.7 KiB
HTML
Executable File
{section name=customer loop=$my_tasks} {if $my_tasks[customer].id} {if ($my_tasks[customer].prioritet=='Низкий')} {assign var=div_css value='alert-light'} {/if} {if ($my_tasks[customer].prioritet=='Обычный')} {assign var=div_css value='alert-warning'}
|
|
{/if} {if ($my_tasks[customer].prioritet=='Высокий')} {assign var=div_css value='alert-danger'} {/if}
|
|
|
|
<div class="col-md-12 mt-3 p-3 alert {$div_css}" id="{$my_tasks[customer].id}" style="border: 1px solid gray; border-radius:10px;">
|
|
<h5 style="color: gray; font-size: 14pt;">{$my_tasks[customer].start} - {$my_tasks[customer].t} {if ($my_tasks[customer].prosrok==1 && $my_tasks[customer].status==0)} <span style="margin-left: 20px;color:red; font-size: 10pt;"> Просрочена </span>{/if}</h5>
|
|
<h4>От: {$my_tasks[customer].autor_fio} -> {$my_tasks[customer].isp_fio}</h4>
|
|
|
|
<div>
|
|
{$my_tasks[customer].txt}
|
|
</div>
|
|
|
|
{if ($my_tasks[customer].status==0)}
|
|
<a href="#new_comment" data-toggle="modal" data-id="{$my_tasks[customer].id}" class="btm-add-comment btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 240px;">Добавить коментарий</a> {/if} {if
|
|
($my_tasks[customer].comments_count)}
|
|
|
|
<a href="#show_comments" data-toggle="modal" data-id="{$my_tasks[customer].id}" class="btm-show-comments btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 50px;" title="Количество коментариев">{$my_tasks[customer].comments_count}</a> {/if} {if ($my_tasks[customer].status==0)}
|
|
<a href="#" data-id="{$my_tasks[customer].id}" class="btm-end-task btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 190px;">Завершить</a> {/if} {if ($my_tasks[customer].status==1)}
|
|
<a href="#" data-id="{$my_tasks[customer].id}" class="btm-repeat-task btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 190px;">Возобновить</a> {/if} {if ($my_tasks[customer].status==0)}
|
|
<a href="#modal_change_srok" data-toggle="modal" data-id="{$my_tasks[customer].id}" class="btm-change-srok btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 190px;">Отложить</a> {/if}
|
|
{if ($my_tasks[customer].status==0)}
|
|
<a href="#modal_deleg" data-toggle="modal" data-id="{$my_tasks[customer].id}" class="btm-deleg btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold mt-3" style="width: 190px;">Делегировать</a> {/if}
|
|
</div>
|
|
{/if} {/section} |