Exemple #1
0
    <?php 
echo do_textile($message->getText());
if (trim($message->getAdditionalText())) {
    ?>
    <div class="messageSeparator"><?php 
    echo lang('message separator');
    ?>
</div>
    <?php 
    echo do_textile($message->getAdditionalText());
}
// if
?>
  </div>
<?php 
echo render_object_files($message, $message->canEdit(logged_user()));
?>
  <div class="messageCommentCount">
<?php 
if ($message->countComments()) {
    ?>
    <span><?php 
    echo lang('comments');
    ?>
:</span> <a href="<?php 
    echo $message->getViewUrl();
    ?>
#objectComments"><?php 
    echo $message->countComments();
    ?>
</a>
  </div>
</div>

<?php 
if ($canEdit) {
    ?>
  <?php 
    echo submit_button($ticket->isNew() ? lang('add ticket') : lang('save'));
}
// if
?>
</form>
<br />
<div>
  <?php 
echo render_object_files($ticket, $ticket->canEdit(logged_user()));
?>
</div>

<div id="messageComments"><?php 
echo render_object_comments($ticket, $ticket->getViewUrl());
?>
</div>

<?php 
if (isset($changes) && is_array($changes) && count($changes)) {
    ?>
<div id="changelog" class="block">
  <h2 class="header"><?php 
    echo lang('history');
    ?>
            ?>
" alt="<?php 
            echo clean($comment->getCreatedBy()->getDisplayName());
            ?>
" /></div>
<?php 
        }
        // if
        ?>
      <div class="commentText"><?php 
        echo do_textile($comment->getText());
        ?>
</div>
      <div class="clear"></div>
      <?php 
        echo render_object_files($comment, $comment->canEdit(logged_user()));
        ?>
    </div>
<?php 
        $options = array();
        if ($comment->canEdit(logged_user())) {
            $options[] = '<a href="' . $comment->getEditUrl() . '">' . lang('edit') . '</a>';
        }
        if ($comment->canDelete(logged_user())) {
            $options[] = '<a href="' . $comment->getDeleteUrl() . '" onclick="return confirm(\'' . lang('confirm delete comment') . '\')">' . lang('delete') . '</a>';
        }
        if (count($options)) {
            ?>
    <div class="options"><?php 
            echo implode(' | ', $options);
            ?>
Exemple #4
0
<?php 
}
// if
?>
  
  <div class="formBlock">
    <div>
      <?php 
echo label_tag(lang('assign to'), 'timeFormAssignedTo');
?>
      <?php 
echo assign_to_select_box('time[assigned_to]', active_project(), array_var($time_data, 'assigned_to'), array('id' => 'timeFormAssignedTo'));
?>
    </div>
  </div>
  
  <?php 
echo submit_button($time->isNew() ? lang('add time') : lang('edit time'));
?>
</form>
<?php 
if (false === $time->isNew()) {
    ?>
<br />
<div>
  <?php 
    echo render_object_files($time, $time->canEdit(logged_user()));
    ?>
</div>
<?php 
}