Skip to content

Commit

Permalink
feat: add new template event for ticket due date
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Feb 24, 2025
1 parent 8451caf commit 241303b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions app/Domain/Tickets/Templates/showKanban.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@

<div class="row-fluid">

<?php foreach ($tpl->get('allKanbanColumns') as $key => $statusRow) { ?>
<?php foreach ($tpl->get('allKanbanColumns') as $key => $statusRow) { ?>
<div class="column">
<div class="contentInner <?php echo 'status_'.$key; ?>" >
<?php foreach ($allTickets as $row) { ?>
Expand Down Expand Up @@ -164,12 +164,17 @@
</div>

</div>
<?php if ($row['dateToFinish'] != '0000-00-00 00:00:00' && $row['dateToFinish'] != '1969-12-31 00:00:00') {

echo $tpl->__('label.due_icon'); ?>
<input type="text" title="<?php echo $tpl->__('label.due'); ?>" value="<?php echo format($row['dateToFinish'])->date() ?>" class="duedates secretInput" style="margin-left:0px;" data-id="<?php echo $row['id']; ?>" name="date" />

<div class="tw-flex">
<?php if ($row['dateToFinish'] != '0000-00-00 00:00:00' && $row['dateToFinish'] != '1969-12-31 00:00:00') { ?>
<div>
<?php echo $tpl->__('label.due_icon'); ?>
<input type="text" title="<?php echo $tpl->__('label.due'); ?>" value="<?php echo format($row['dateToFinish'])->date() ?>" class="duedates secretInput" style="margin-left:0px;" data-id="<?php echo $row['id']; ?>" name="date" />
</div>
<div>
<?php $tpl->dispatchTplEvent('afterDates', ['ticket' => $row]); ?>
</div>
<?php } ?>
</div>
</div>
</div>

Expand Down

0 comments on commit 241303b

Please sign in to comment.