</div> <div class="modal-footer"> <?php echo \humhub\widgets\AjaxButton::widget(['label' => Yii::t('SpaceModule.views_space_invite', 'Send'), 'ajaxOptions' => ['type' => 'POST', 'beforeSend' => new yii\web\JsExpression('function(){ setModalLoader(); }'), 'success' => new yii\web\JsExpression('function(html){ $("#globalModal").html(html); }'), 'url' => $space->createUrl('/space/membership/invite')], 'htmlOptions' => ['class' => 'btn btn-primary']]); ?> <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo Yii::t('SpaceModule.views_space_invite', 'Close'); ?> </button> <?php echo \humhub\widgets\LoaderWidget::widget(['id' => 'invite-loader', 'cssClass' => 'loader-modal hidden']); ?> </div> <?php ActiveForm::end(); ?> </div> </div> <script type="text/javascript"> // Shake modal after wrong validation <?php
</a></li> </ul> </li> </ul> <?php } ?> <div id="wallStream"> <!-- DIV for a normal wall stream --> <div class="s2_stream" style="display:none"> <div class="s2_streamContent"></div> <?php echo \humhub\widgets\LoaderWidget::widget(['cssClass' => 'streamLoader']); ?> <div class="emptyStreamMessage"> <div class="<?php echo $this->context->messageStreamEmptyCss; ?> "> <div class="panel"> <div class="panel-body"> <?php echo $this->context->messageStreamEmpty; ?> </div> </div>
?> </div> <?php echo Html::hiddenInput("containerGuid", $contentContainer->guid); echo Html::hiddenInput("containerClass", get_class($contentContainer)); ?> <div class="contentForm_options"> <hr> <div class="btn_container"> <?php echo \humhub\widgets\LoaderWidget::widget(['id' => 'postform-loader', 'cssClass' => 'loader-postform hidden']); ?> <?php echo \humhub\widgets\AjaxButton::widget(['label' => $submitButtonText, 'ajaxOptions' => ['url' => $submitUrl, 'type' => 'POST', 'dataType' => 'json', 'beforeSend' => "function() { \$('.contentForm').removeClass('error'); \$('#contentFormError').hide(); \$('#contentFormError').empty(); }", 'beforeSend' => 'function(){ $("#contentFormError").hide(); $("#contentFormError li").remove(); $(".contentForm_options .btn").hide(); $("#postform-loader").removeClass("hidden"); }', 'success' => "function(response) { handleResponse(response);}"], 'htmlOptions' => ['id' => "post_submit_button", 'class' => 'btn btn-info', 'type' => 'submit']]); ?> <?php // Creates Uploading Button echo humhub\modules\file\widgets\FileUploadButton::widget(array('uploaderId' => 'contentFormFiles', 'fileListFieldName' => 'fileList')); ?> <script> $('#fileUploaderButton_contentFormFiles').bind('fileuploaddone', function (e, data) { $('.btn_container').show(); }); $('#fileUploaderButton_contentFormFiles').bind('fileuploadprogressall', function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10);
<div class="modal" id="globalModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"> <?php echo \humhub\widgets\LoaderWidget::widget(); ?> </div> </div> </div> </div>
/** * @inheritdoc */ protected function renderMoreButton() { $pageCount = $this->pagination->getPageCount(); $currentPage = $this->pagination->getPage() + 1; if ($currentPage >= $pageCount) { return ''; } if (!isset($this->ajaxButtonOptions['ajaxOptions']['url'])) { $this->ajaxButtonOptions['ajaxOptions']['url'] = $this->pagination->createUrl($currentPage); } $moreButton = AjaxButton::widget($this->ajaxButtonOptions); return Html::tag('div', Html::tag('br') . $moreButton . LoaderWidget::widget(['id' => $this->id . '_loader', 'cssClass' => 'hidden']), ['id' => $this->id, 'class' => 'pagination-container']); }