You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

fixes on formbuilder_required_marker to change to be more tidy on form

i guess...

.

on formbuilder.core.js
function formbuilder_widgets_switch_required(row_id){
    $.each($(row_id + ' input[@type!="hidden"] , ' + row_id + ' textarea, ' + row_id + ' select'), function(k, v){
        $(v).toggleClass('

Unknown macro: {required}

');
    });
    if($(row_id + ' .formbuilder_required_marker').length)

Unknown macro: {        $(row_id + ' .formbuilder_required_marker').remove();        //flash_message(gettext('msg_not_required'), 1);    }

else

Unknown macro: {        $(row_id + ' .label').after('<span>*</span><br>');        <<< *change*        //flash_message(gettext('msg_is_required'), 1);    }

};

function formbuilder_draw_widget_area(div){
    $(div).append('<div id="formbuilder_widgets_area" style="display:none"><h2>' + gettext('formtitle') + ' ' + gettext('clic_to_edit') + '</h2><div id="formbuilder_rows"></div>');
    $('#formbuilder_widgets_area').fadeIn('slow');
    $('#formbuilder_widgets_area').append('<p><span></span> <br> ' + gettext('required_lab') + '<input type="hidden" id="counter_rows" value="0" />' + '<input type="hidden" id="counter_fieldset" value="0" /></p>');    <<< *change
    formbuilder_widget_fieldset();
    set_editable();
};

on formbuilder.css

div#_ex_formbuilder_rows .formbuilder_label p {
    margin: 0;
    margin-bottom: 0px;
    display:inline; <<< change
}

.formbuilder_required_marker { <<< change
    color: red;
    font-weight: bold;
    font-size: 100%;
    position: inherit;
}

.formbuilder_required .formbuilder_required_marker { <<< change
    position: inherit;
    left: 0px;
    top: 0px;
}

  • No labels