<div class="modal-content">

                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">
                        <strong><?php 
echo Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'Help Us Understand What\'s Happening');
?>
                        </strong>
                    </h4>

                </div>
                <hr />
                <?php 
$form = CActiveForm::begin(['id' => 'report-content-form']);
?>
                <?php 
echo $form->hiddenField($model, 'object_id', array('value' => $object->id));
?>
                <div class="modal-body text-left">


                    <?php 
echo $form->labelEx($model, 'reason');
?>
                    <br />
                    <?php 
echo $form->radioButtonList($model, 'reason', array('1' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'Does not belong to this space'), '2' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'It\'s offensive'), '3' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'It\'s spam')));
?>
                    <?php 
                        </div>
                    </div>

                    <hr>

                <?php 
    }
    ?>

            </ul>
            <!-- END: Results -->


            <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>
Beispiel #3
0
<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use humhub\models\Setting;
?>

<div class="panel panel-default">
    <div
        class="panel-heading"><?php 
echo Yii::t('AdminModule.views_setting_index', '<strong>Basic</strong> settings');
?>
</div>
    <div class="panel-body">
        <?php 
$form = CActiveForm::begin(['id' => 'basic-settings-form']);
?>

        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'name');
?>
            <?php 
echo $form->textField($model, 'name', array('class' => 'form-control', 'readonly' => Setting::IsFixed('name')));
?>
        </div>
Beispiel #4
0
<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use yii\helpers\Url;
?>
<div class="content_edit" id="post_edit_<?php 
echo $post->id;
?>
">
    <?php 
$form = CActiveForm::begin(['id' => 'post-edit-form']);
?>

    <?php 
echo $form->textArea($post, 'message', array('class' => 'form-control', 'id' => 'post_input_' . $post->id, 'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...')));
?>

    <!-- create contenteditable div for HEditorWidget to place the data -->
    <div id="post_input_<?php 
echo $post->id;
?>
_contenteditable" class="form-control atwho-input"
         contenteditable="true"><?php 
echo \humhub\widgets\RichText::widget(['text' => $post->message]);
?>
</div>

    <?php 
echo \humhub\widgets\RichTextEditor::widget(['id' => 'post_input_' . $post->id, 'inputContent' => $post->message]);
?>
Beispiel #5
0
<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>
<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin(['id' => 'space-crop-image-form']);
?>
        <?php 
echo $form->errorSummary($model);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
    <div class="panel-body">
        <?php 
echo \humhub\modules\admin\widgets\SpaceMenu::widget();
?>
        
        <p />
        <p>
            <?php 
echo Yii::t('AdminModule.views_space_index', 'Define here default settings for new spaces.');
?>
        </p>

        <br />

        <?php 
$form = CActiveForm::begin(['id' => 'space-settings-form']);
?>

        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'defaultJoinPolicy');
?>
            <?php 
$joinPolicies = array(0 => Yii::t('SpaceModule.base', 'Only by invite'), 1 => Yii::t('SpaceModule.base', 'Invite and request'), 2 => Yii::t('SpaceModule.base', 'Everyone can enter'));
?>
            <?php 
echo $form->dropDownList($model, 'defaultJoinPolicy', $joinPolicies, array('class' => 'form-control', 'id' => 'join_policy_dropdown', 'hint' => Yii::t('SpaceModule.views_admin_edit', 'Choose the kind of membership you want to provide for this workspace.')));
Beispiel #7
0
use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use humhub\models\Setting;
use yii\helpers\Url;
$this->registerJsFile('@web/resources/admin/uploadLogo.js');
?>
<div class="panel panel-default">
    <div
        class="panel-heading"><?php 
echo Yii::t('AdminModule.views_setting_design', '<strong>Design</strong> settings');
?>
</div>
    <div class="panel-body">

        <?php 
$form = CActiveForm::begin(['id' => 'authentication-settings-form', 'options' => ['enctype' => 'multipart/form-data']]);
?>

        <?php 
echo $form->errorSummary($model);
?>
<br>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'theme');
?>
            <?php 
echo $form->dropDownList($model, 'theme', $themes, array('class' => 'form-control'));
?>
        </div>
<?php

use humhub\compat\CActiveForm;
?>
<div class="text text-center animated fadeIn">
    <?php 
echo Yii::t('base', "Choose language:");
?>
 &nbsp;
    <div class="langSwitcher">
        <?php 
$form = CActiveForm::begin(['id' => 'choose-language-form']);
?>
        <?php 
echo $form->dropDownList($model, 'language', $languages, array('onChange' => 'this.form.submit()'));
?>
        <?php 
CActiveForm::end();
?>
    </div>
</div>
<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>

<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin(['id' => 'profile-crop-image-form']);
?>
        <?php 
echo $form->errorSummary($model);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
Beispiel #10
0
             style="max-width: 300px; margin: 0 auto 20px; text-align: left;">

            <div class="panel-heading"><?php 
    echo Yii::t('UserModule.views_auth_login', '<strong>Sign</strong> up');
    ?>
</div>

            <div class="panel-body">

                <p><?php 
    echo Yii::t('UserModule.views_auth_login', "Don't have an account? Join the network by entering your e-mail address.");
    ?>
</p>

                <?php 
    $form = CActiveForm::begin(['id' => 'account-register-form']);
    ?>

                <div class="form-group">
                    <?php 
    echo $form->textField($registerModel, 'email', array('class' => 'form-control', 'id' => 'register-email', 'placeholder' => Yii::t('UserModule.views_auth_login', 'email')));
    ?>
                    <?php 
    echo $form->error($registerModel, 'email');
    ?>
                </div>
                <hr>
                <?php 
    echo CHtml::submitButton(Yii::t('UserModule.views_auth_login', 'Register'), array('class' => 'btn btn-primary'));
    ?>
Beispiel #11
0
<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>
<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin([]);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
?>
</h4>
        </div>
    } else {
        ?>
                <div
                    class="success"><?php 
        echo Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', array('{userCount}' => $userCount));
        ?>
</div>
                <?php 
    }
    ?>
            <?php 
}
?>

        <?php 
$form = CActiveForm::begin(['id' => 'authentication-settings-form']);
?>


        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <div class="checkbox">
                <label>
                    <?php 
echo $form->checkBox($model, 'enabled', array('readonly' => Setting::IsFixed('enabled', 'authentication_ldap')));
?>
 <?php 
echo $model->getAttributeLabel('enabled');
Beispiel #13
0
<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use yii\helpers\Url;
?>
<div class="content_edit" id="post_edit_<?php 
echo $post->id;
?>
">
    <?php 
$form = CActiveForm::begin(['id' => 'post-edit-form_' + $post->id]);
?>
    
    <!-- create contenteditable div for HEditorWidget to place the data -->
    <div id="post_input_<?php 
echo $post->id;
?>
_contenteditable" class="form-control atwho-input"
         contenteditable="true"><?php 
echo \humhub\widgets\RichText::widget(['text' => $post->message, 'edit' => true]);
?>
</div>

    <?php 
echo $form->field($post, 'message')->label(false)->textArea(array('class' => 'form-control', 'id' => 'post_input_' . $post->id, 'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...')));
?>

    <?php 
echo \humhub\widgets\RichTextEditor::widget(['id' => 'post_input_' . $post->id, 'inputContent' => $post->message, 'record' => $post]);
?>