You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

comment-list.part.php 1.1KB

123456789101112131415161718
  1. <style >
  2. #table_respond td, #table_respond th{padding:0.35rem !important}
  3. </style>
  4. <table class="table" id="table_respond">
  5. <?php if(is_array($comments) && !empty($comments)): ?>
  6. <?php foreach($comments as $index => $comment): ?>
  7. <?php
  8. echo $this->partial('Request/comment-element', ['commentId'=>$comment['id'], 'commentPosition'=>$comment['position'], 'show_specialties'=>$comment['show_specialties'], 'show_meta'=>$comment['show_meta'], 'is_moderator'=>$comment['is_moderator'], 'style'=>'margin-bottom:5px;', 'userId'=>$comment['user_id'], 'userUpdatedAt'=>$comment['user_updated_at'], 'userName'=>ucwords($comment['user_name']), 'userSurname'=>ucwords($comment['user_surname']), 'userExtra'=>$comment['medspec_list'], 'isResponder'=>$comment['is_responder'], 'userNote'=>$comment['remarks_public'], 'commentCreatedAt'=>$comment['created_at'], 'commentText'=>htmlspecialchars($comment['comment']), 'attachments'=>$comment['attachments']]);
  9. ?>
  10. <?php endforeach; ?>
  11. <?php else: ?>
  12. <div class="alert alert-info"><?php echo _('No comments so far.'); ?></div>
  13. <?php endif; ?>
  14. </table>