Пример #1
0
echo $commentText;
?>
"</label>
            <div class="errorDiv" id ="delete_comment_<?php 
echo $commentId;
?>
_response">
                <?php 
echo $this->getArg("delete_comment_. {$commentId}._response");
?>
            </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-2 col-lg-2">

            <?php 
if (SessionUtils::canDeletePost($userLogged->getUserId(), $authorId) || SessionUtils::canDeletePost($userLogged->getUserId(), $dashboardId) || SessionUtils::isAdmin()) {
    ?>
                <form id="deleteCommentForm<?php 
    echo $commentId;
    ?>
" name="deleteCommentForm<?php 
    echo $commentId;
    ?>
" action="deleteComment/<?php 
    echo $commentId;
    ?>
" method = "post"  novalidate>
                    <label for="delete_comment_<?php 
    echo $commentId;
    ?>
_submit" class="btn btn-danger btn-block glyphicon glyphicon-remove">