Просмотр исходного кода

#31 - Page Builder updates and fixes.

AntonLV 12 лет назад
Родитель
Сommit
426322ce9f

+ 2 - 2
studio/template/bp_add_block.html

@@ -1,5 +1,5 @@
-<div class="adm-bp-create-block-form bx-def-margin-top-neg bx-def-color-bg-block">
-    <div class="adm-bp-create-block-form-cnt">
+<div class="adm-bp-__action__-block-form bx-def-margin-top-neg bx-def-color-bg-block">
+    <div class="adm-bp-__action__-block-form-cnt">
         __form__
         <script type="text/javascript">
             $(document).ready(function () {

+ 3 - 0
studio/template/css/builder_page.css

@@ -154,6 +154,9 @@ div.adm-bp-cbf-counter {
 }
 
 /*--- Edit Block popup style ---*/
+div.adm-bp-edit-block-form {
+	margin-top: 0px;
+}
 
 /*--- Page Settings popups style ---*/
 div#adm-bp-add-popup div.bx-popup-width,

+ 2 - 0
studio/template/scripts/BxBaseStudioBuilderPage.php

@@ -570,6 +570,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
 
         bx_import('BxTemplStudioFunctions');
         $sContent = BxTemplStudioFunctions::getInstance()->popupBox($this->aHtmlIds['create_block_popup_id'], _t('_adm_bp_txt_new_block_popup'), $oTemplate->parseHtmlByName('bp_add_block.html', array(
+        	'action' => 'create',
             'form_id' => $aForm['form_attrs']['id'],
             'form' => $oForm->getCode(true)
         )));
@@ -748,6 +749,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
 
         bx_import('BxTemplStudioFunctions');
         $sContent = BxTemplStudioFunctions::getInstance()->popupBox($this->aHtmlIds['edit_block_popup_id'], _t('_adm_bp_txt_edit_block_popup', _t($aBlock['title'])), $oTemplate->parseHtmlByName('bp_add_block.html', array(
+        	'action' => 'edit',
             'form_id' => $aForm['form_attrs']['id'],
             'form' => $oForm->getCode(true)
         )));