<div class="row-fluid">
                <?php 
    $form = CActiveForm::begin();
    ?>

                <?php 
    echo $form->errorSummary($replyForm);
    ?>
                <div class="form-group">
                    <?php 
    echo $form->textArea($replyForm, 'message', array('class' => 'form-control', 'id' => 'newMessage', 'rows' => '4', 'placeholder' => Yii::t('MailModule.views_mail_show', 'Write an answer...')));
    ?>
                    <?php 
    echo humhub\widgets\MarkdownEditor::widget(array('fieldId' => 'newMessage'));
    ?>
                </div>
                <hr>

                <?php 
    echo \humhub\widgets\AjaxButton::widget(['label' => Yii::t('MailModule.views_mail_show', 'Send'), 'ajaxOptions' => ['type' => 'POST', 'success' => 'function(html){ $("#mail_message_details").html(html); }', 'url' => Url::to(['/mail/mail/show', 'id' => $message->id])], 'htmlOptions' => ['class' => 'btn btn-primary']]);
    ?>


                <div class="pull-right">

                    <!-- Button to trigger modal to add user to conversation -->
                    <?php 
    echo Html::a('<i class="fa fa-plus"></i> ' . Yii::t('MailModule.views_mail_show', 'Add user'), ['/mail/mail/add-user', 'id' => $message->id, 'ajax' => 1], array('class' => 'btn btn-info', 'data-target' => '#globalModal'));
    ?>
Ejemplo n.º 2
0
} else {
    ?>
                    <?php 
    echo $form->hiddenField($page, 'title');
    ?>
                <?php 
}
?>


                <div class="form-group">
                    <?php 
echo $form->textArea($revision, 'content', array('id' => 'txtWikiPageContent', 'rows' => '15', 'placeholder' => Yii::t('WikiModule.views_page_edit', 'Page content')));
?>
                    <?php 
echo humhub\widgets\MarkdownEditor::widget(array('fieldId' => 'txtWikiPageContent', 'previewUrl' => $contentContainer->createUrl('preview-markdown')));
?>
                    <script>
                        $(document).ready(function () {
                            // Fix MarkdownEditor Url Placeholder, user can also insert wiki page title
                            $('#addLinkTarget').attr("placeholder", "<?php 
echo Yii::t('WikiModule.views_page_edit', 'Enter a wiki page name or url (e.g. http://example.com)');
?>
");
                        });
                    </script>
                </div>

                <?php 
if ($page->canAdminister()) {
    ?>