}

            </style>

            <div id="cropimage">
                <?php 
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => '1', 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
            </div>


        </div>
        <div class="modal-footer">

            <?php 
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_admin_cropImage', 'Save'), Yii::app()->createAbsoluteUrl('//space/admin/cropImage', array('guid' => $space->guid)), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader();; }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>

            <?php 
//echo CHtml::submitButton(Yii::t('RoomsModule.views_admin_cropImage', 'Save'), array('class' => 'btn btn-primary'));
?>

            <button type="button" class="btn btn-primary"
                    data-dismiss="modal"><?php 
echo Yii::t('RoomsModule.views_admin_cropImage', 'Close');
?>
</button>

            <div id="crop-loader" class="loader loader-modal hidden">
                <div class="sk-spinner sk-spinner-three-bounce">
                    <div class="sk-bounce1"></div>
예제 #2
0
            </div>

        </div>
        <div class="modal-footer">
            <hr/>
            
            <div class="row">
            	<div class="col-sm-6">
            		<button type="button" class="btn btn-default" data-dismiss="modal"><?php 
echo Yii::t('MailModule.views_mail_create', 'Close');
?>
</button>
              	</div>
            	<div class="col-sm-6">
            <?php 
echo HHtml::ajaxButton(Yii::t('MailModule.views_mail_create', 'Send'), array('//mail/mail/create'), array('type' => 'POST', 'beforeSend' => 'function(){ $("#create-message-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
            
            	</div>
                
             </div>

            <div class="col-md-1 modal-loader">
                <div id="create-message-loader" class="loader loader-small hidden"></div>
            </div>
        </div>

<?php 
$this->endWidget();
?>
    </div>
예제 #3
0
                }

            </style>

            <div id="cropimage">
                <?php 
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => 1, 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
            </div>


        </div>
        <div class="modal-footer">

            <?php 
echo HHtml::ajaxButton(Yii::t('UserModule.views_profile_cropProfileImage', 'Save'), array('//user/account/cropProfileImage'), array('type' => 'POST', 'beforeSend' => 'function(){ $("#invite-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>

            <?php 
//echo CHtml::submitButton(Yii::t('UserModule.views_profile_cropProfileImage', 'Save'), array('class' => 'btn btn-primary'));
?>

            <button type="button" class="btn btn-primary"
                    data-dismiss="modal"><?php 
echo Yii::t('UserModule.views_profile_cropProfileImage', 'Close');
?>
</button>

            <div class="col-md-1 modal-loader">
                <div id="invite-loader" class="loader loader-small hidden"></div>
            </div>
예제 #4
0
                            <?php 
    echo $form->error($model, 'inviteExternal');
    ?>
                        </div>
                    </div>
                <?php 
}
?>
            </div>


        </div>
        <div class="modal-footer">

            <?php 
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_room_invite', 'Send'), array('//rooms/membership/invite', 'sguid' => $room->guid), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'inviteBtn'));
?>
            <button type="button" class="btn btn-primary"
                    data-dismiss="modal"><?php 
echo Yii::t('RoomsModule.views_room_invite', 'Close');
?>
</button>

            <div id="invite-loader" class="loader loader-modal hidden">
                <div class="sk-spinner sk-spinner-three-bounce">
                    <div class="sk-bounce1"></div>
                    <div class="sk-bounce2"></div>
                    <div class="sk-bounce3"></div>
                </div>
            </div>
        </div>
예제 #5
0
파일: cropImage.php 프로젝트: skapl/design
                }

            </style>

            <div id="cropimage">
                <?php 
$this->widget('ext.yii-jcrop.jCropWidget', array('imageUrl' => $profileImage->getUrl('_org') . "?nocache=" . time(), 'formElementX' => 'CropProfileImageForm_cropX', 'formElementY' => 'CropProfileImageForm_cropY', 'formElementWidth' => 'CropProfileImageForm_cropW', 'formElementHeight' => 'CropProfileImageForm_cropH', 'jCropOptions' => array('aspectRatio' => 1, 'boxWidth' => 400, 'setSelect' => array(0, 0, 100, 100))));
?>
            </div>


        </div>
        <div class="modal-footer">

            <?php 
echo HHtml::ajaxButton(Yii::t('UserModule.views_account_cropImage', 'Save'), array('//user/account/cropImage'), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>

            <?php 
//echo CHtml::submitButton(Yii::t('UserModule.views_account_cropImage', 'Save'), array('class' => 'btn btn-primary'));
?>

            <button type="button" class="btn btn-primary"
                    data-dismiss="modal"><?php 
echo Yii::t('UserModule.views_account_cropImage', 'Close');
?>
</button>

                <div id="crop-loader" class="loader loader-modal hidden">
                    <div class="sk-spinner sk-spinner-three-bounce">
                        <div class="sk-bounce1"></div>
예제 #6
0
파일: create.php 프로젝트: ahdail/humhub
    echo Yii::t('SpaceModule.views_create_create', 'Private (Invisible)');
    ?>
                            </div>
                        <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal-footer">
            <hr/>
            <br/>
            <?php 
echo HHtml::ajaxButton(Yii::t('SpaceModule.views_create_create', 'Create'), array('//space/create/create'), array('type' => 'POST', 'beforeSend' => 'function(){ jQuery("#create-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'space-create-submit-button'));
?>

            <div class="col-md-1 modal-loader">
                <div id="create-loader" class="loader loader-small hidden"></div>
            </div>
        </div>

        <?php 
$this->endWidget();
?>
    </div>

</div>

예제 #7
0
파일: invite.php 프로젝트: ahdail/humhub
                            <?php 
    echo $form->error($model, 'inviteExternal');
    ?>
                        </div>
                    </div>
                <?php 
}
?>
            </div>


        </div>
        <div class="modal-footer">

            <?php 
echo HHtml::ajaxButton(Yii::t('SpaceModule.views_space_invite', 'Send'), array('//space/space/invite', 'sguid' => $space->guid), array('type' => 'POST', 'beforeSend' => 'function(){ $("#invite-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'inviteBtn'));
?>
            <button type="button" class="btn btn-primary"
                    data-dismiss="modal"><?php 
echo Yii::t('SpaceModule.views_space_invite', 'Close');
?>
</button>

            <div class="col-md-1 modal-loader">
                <div id="invite-loader" class="loader loader-small hidden"></div>
            </div>
        </div>

        <?php 
$this->endWidget();
?>
예제 #8
0
                <h4 class="modal-title" id="myModalLabel"><?php 
echo $title;
?>
</h4>
            </div>
            <div class="modal-body text-center">
                <?php 
echo $message;
?>
            </div>
            <div class="modal-footer">
                <?php 
if ($buttonTrue != "") {
    ?>
                    <?php 
    echo HHtml::ajaxButton($buttonTrue, $linkHref, array('type' => 'POST', 'data' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'success' => $confirm), array('class' => 'btn btn-primary', 'data-dismiss' => "modal"));
    ?>
                <?php 
}
?>
                <?php 
if ($buttonFalse != "") {
    ?>
                    <button type="button" class="btn btn-primary"
                            data-dismiss="modal"><?php 
    echo $buttonFalse;
    ?>
</button>
                <?php 
}
?>
예제 #9
0
파일: edit.php 프로젝트: skapl/design
</div>


    <?php 
/* Modify textarea for mention input */
$this->widget('application.widgets.HEditorWidget', array('id' => 'comment_input_' . $comment->id, 'inputContent' => $comment->message));
?>

    <?php 
// Creates Uploading Button
$this->widget('application.modules_core.file.widgets.FileUploadButtonWidget', array('uploaderId' => 'comment_upload_' . $comment->id, 'fileListFieldName' => 'fileList', 'object' => $comment));
?>
    

    <?php 
echo HHtml::ajaxButton('Save', array('//comment/comment/edit', 'id' => $comment->id, 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id), array('type' => 'POST', 'success' => 'function(html){  $("#comment_' . $comment->id . '").replaceWith(html); }'), array('class' => 'btn btn-primary', 'id' => 'comment_edit_post_' . $comment->id, 'style' => 'position: absolute; left: -90000000px; opacity: 0;'));
?>

    <?php 
// Creates a list of already uploaded Files
$this->widget('application.modules_core.file.widgets.FileUploadListWidget', array('uploaderId' => 'comment_upload_' . $comment->id, 'object' => $comment));
?>
    

    <?php 
$this->endWidget();
?>
</div>

<script type="text/javascript">
예제 #10
0
파일: edit.php 프로젝트: skapl/design
</div>

    <?php 
/* Modify textarea for mention input */
$this->widget('application.widgets.HEditorWidget', array('id' => 'post_input_' . $post->id, 'inputContent' => $post->message));
?>

    <?php 
// Creates Uploading Button
$this->widget('application.modules_core.file.widgets.FileUploadButtonWidget', array('uploaderId' => 'post_upload_' . $post->id, 'object' => $post));
?>
    


    <?php 
echo HHtml::ajaxButton('Save', array('//post/post/edit', 'id' => $post->id), array('type' => 'POST', 'success' => 'function(html){ $("#post-' . $post->id . '").replaceWith(html); }'), array('class' => 'btn btn-primary', 'id' => 'post_edit_post_' . $post->id, 'style' => 'position: absolute; left: -90000000px; opacity: 0;'));
?>

    <?php 
// Creates a list of already uploaded Files
$this->widget('application.modules_core.file.widgets.FileUploadListWidget', array('uploaderId' => 'post_upload_' . $post->id, 'object' => $post));
?>
       

    <?php 
$this->endWidget();
?>
</div>

<script type="text/javascript">
예제 #11
0
    echo Yii::t('RoomsModule.views_create_create', 'Private (Invisible)');
    ?>
                            </div>
                        <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal-footer">
            <hr/>
            <br/>
            <?php 
echo HHtml::ajaxButton(Yii::t('RoomsModule.views_create_create', 'Create'), array('//rooms/room/create'), array('type' => 'POST', 'beforeSend' => 'function(){ setModalLoader(); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary', 'id' => 'room-create-submit-button'));
?>

            <div id="create-loader" class="loader loader-modal hidden">
                <div class="sk-spinner sk-spinner-three-bounce">
                    <div class="sk-bounce1"></div>
                    <div class="sk-bounce2"></div>
                    <div class="sk-bounce3"></div>
                </div>
            </div>
        </div>

        <?php 
$this->endWidget();
?>
    </div>
예제 #12
0
$this->widget('application.modules_core.user.widgets.UserPickerWidget', array('inputId' => 'addUserFrom_mail', 'model' => $inviteForm, 'attribute' => 'recipient', 'userGuid' => Yii::app()->user->guid, 'focus' => true));
?>
        </div>
        <div class="modal-footer">
            <hr/>
            <div class="row">
            	<div class="col-sm-6">
            		<button type="button" class="btn btn-default"
                    data-dismiss="modal"><?php 
echo Yii::t('MailModule.views_mail_adduser', 'Close');
?>
</button>
				</div>
            	<div class="col-sm-6">
            <?php 
echo HHtml::ajaxButton(Yii::t('MailModule.views_mail_adduser', 'Send'), array('//mail/mail/adduser', 'id' => $inviteForm->message->id), array('type' => 'POST', 'beforeSend' => 'function(){ $("#adduser-loader").removeClass("hidden"); }', 'success' => 'function(html){ $("#globalModal").html(html); }'), array('class' => 'btn btn-primary'));
?>
            	</div>
               	
            </div>
            <div class="col-md-1 modal-loader">
                <div id="adduser-loader" class="loader loader-small hidden"></div>
            </div>
        </div>

        <?php 
$this->endWidget();
?>
    </div>
</div>