3 set_page_title($comment->isNew() ?
lang('add comment') : lang('edit comment'));
4 project_tabbed_navigation(PROJECT_TAB_OVERVIEW
);
6 $comment->isNew() ?
lang('add comment') : lang('edit comment')
10 <?php
if($comment->isNew()) { ?
>
11 <form action
="<?php echo Comment::getAddUrl($comment_form_object) ?>" method
="post">
13 <form action
="<?php echo $comment->getEditUrl() ?>" method
="post">
16 <?php
tpl_display(get_template_path('form_errors')) ?
>
18 <?php
if($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) { ?
>
19 <p
class="error"><?php
echo lang('admins can post comments on locked objects desc') ?
></p
>
22 <div
class="formAddCommentText">
23 <?php
echo label_tag(lang('text'), 'addCommentText', true) ?
>
24 <?php
echo textarea_field("comment[text]", array_var($comment_data, 'text'), array('class' => 'comment', 'id' => 'addCommentText')) ?
>
27 <?php
if(logged_user()->isMemberOfOwnerCompany()) { ?
>
29 <legend
><?php
echo lang('options') ?
></legend
>
31 <div
class="objectOption">
32 <div
class="optionLabel"><label
><?php
echo lang('private comment') ?
>:</label
></div
>
33 <div
class="optionControl"><?php
echo yes_no_widget('comment[is_private]', 'addCommentIsPrivate', array_var($comment_data, 'is_private'), lang('yes'), lang('no')) ?
></div
>
34 <div
class="optionDesc"><?php
echo lang('private comment desc') ?
></div
>
39 <?php
if($comment->columnExists('comments_enabled') && !$comment->getCommentsEnabled() && logged_user()->isAdministrator()) { ?
>
40 <p
class="error"><?php
echo lang('admins can post comments on locked objects desc') ?
></p
>
43 <?php
echo submit_button($comment->isNew() ?
lang('add comment') : lang('edit comment')) ?
>