HomeHelpTrac

Changeset 15972 for trunk


Ignore:
Timestamp:
02/10/12 03:49:40 (4 months ago)
Author:
Anton Lesnikov
Message:

Forms Builder checklists and updates.

Location:
trunk
Files:
26 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/english/install/data/langs/en.xml

    r15970 r15972  
    22812281    <string name="_adm_form_btn_fields_create"><![CDATA[Add New Field]]></string> 
    22822282    <string name="_adm_form_txt_forms_title"><![CDATA[Title]]></string> 
    2283     <string name="_adm_form_dsc_forms_title"><![CDATA[You need to enter form title]]></string> 
     2283    <string name="_adm_form_dsc_forms_title"><![CDATA[Name of the form. Displayed in Studio only.]]></string> 
    22842284    <string name="_adm_form_err_forms_title"><![CDATA[Enter title, more then 3 characters]]></string> 
    22852285    <string name="_adm_form_txt_forms_action"><![CDATA[Action]]></string> 
     
    23022302    <string name="_adm_form_err_forms_edit"><![CDATA[Cannot update form]]></string> 
    23032303    <string name="_adm_form_txt_displays_title"><![CDATA[Title]]></string> 
    2304     <string name="_adm_form_dsc_displays_title"><![CDATA[You need to enter display title]]></string> 
     2304    <string name="_adm_form_dsc_displays_title"><![CDATA[Name of the form display mode. Displayed in Studio only.]]></string> 
    23052305    <string name="_adm_form_err_displays_title"><![CDATA[Enter title, more then 3 characters]]></string> 
    23062306    <string name="_adm_form_btn_displays_add"><![CDATA[Add]]></string> 
     
    23562356    <string name="_adm_form_err_field_name"><![CDATA[Enter name, more then 3 characters]]></string> 
    23572357    <string name="_adm_form_txt_field_caption"><![CDATA[Title]]></string> 
    2358     <string name="_adm_form_dsc_field_caption"><![CDATA[You need to enter field title]]></string> 
     2358    <string name="_adm_form_dsc_field_caption"><![CDATA[Item name displayed on site.]]></string> 
    23592359    <string name="_adm_form_err_field_caption"><![CDATA[Enter title, more then 3 characters]]></string> 
    23602360    <string name="_adm_form_txt_field_value"><![CDATA[Value]]></string> 
  • trunk/studio/templates/base/css/builder_forms.css

    r15888 r15972  
    3232} 
    3333 
     34/*--- Fields page -> Main Content style ---*/ 
     35div.bx-form-field-type { 
     36    padding-left: 20px; 
     37    background-repeat: no-repeat; 
     38    background-position: 0px center; 
     39} 
     40 
    3441/*--- Pre Lists page -> Add/Edit Form block ---*/ 
    3542div.bx-form-add-list {} 
  • trunk/studio/templates/base/scripts/BxBaseStudioFormsFields.php

    r15969 r15972  
    272272        $oForm->addCssJs(); 
    273273    } 
     274 
    274275    protected function _getCellSwitcher ($mixedValue, $sKey, $aField, $aRow) { 
    275276        if((int)$aRow['editable'] == 0) 
     
    278279        return parent::_getCellSwitcher($mixedValue, $sKey, $aField, $aRow); 
    279280    } 
     281 
    280282    protected function _getCellTitle ($mixedValue, $sKey, $aField, $aRow) { 
    281283        $mixedValue = $this->_limitMaxLength(_t($aRow['title']), $sKey, $aField, $aRow, $this->_isDisplayPopupOnTextOverflow); 
     284        return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow); 
     285    } 
     286 
     287    protected function _getCellType ($mixedValue, $sKey, $aField, $aRow) { 
     288        $mixedValue = $this->_oTemplate->parseHtmlByName('bx_img_with_text.html', array( 
     289            'bx_if:class' => array( 
     290                'condition' => true, 
     291                'content' => array( 
     292                    'content' => 'bx-form-field-type' 
     293                ) 
     294            ), 
     295            'icon' => $this->_oTemplate->getIconUrl('ui-' . $aRow['type'] . '.png'), 
     296            'content' => $mixedValue 
     297        )); 
     298 
    282299        return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow); 
    283300    } 
Note: See TracChangeset for help on using the changeset viewer.