'form-group form-group-site-'. ( isset( $model[ $i ][ 'parent_key' ] ) ? $model[ $i ][ 'parent_key' ] : 0 ), 'id' => isset( $model[ $i ][ 'parent_key' ] ) ? $model[ $i ][ 'parent_key' ] : 0, ]) ?>
registerJs($js, $this::POS_LOAD); ?>

context->id . " = " . $i . "; var start_label_" . $this->context->id . " = " . $label . "; $(document).on('click', '.add_field_" . $this->context->id . "', function() { var block = $(this) .siblings('.field_list'); var block_id = $(this).parent('fieldset'); ++start_label_" . $this->context->id . "; var sub_block = '
context->id . "+'\" >' + '
' + '' + 'context->id . " + '\" type=\"text\" placeholder=\"http://\" class=\"form-control custom-input-2\" value=\"\" name=\"Fields[site][' + start_i_" . $this->context->id . "++ + '][0][site]\" />' + '
' + '
'; block.append(sub_block); $('#w0').yiiActiveForm('add', { container: '.form-group-site-'+start_label_" . $this->context->id . ", error: '.help-block', id: 'cont-site-'+start_label_" . $this->context->id . ", input: '#cont-site-'+start_label_" . $this->context->id . ", name: 'Fields[site][' + start_label_" . $this->context->id . "++ + '][0][site]', validate: function(attribute, value, messages, deferred) {yii.validation.url(value, messages, {\"pattern\":/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(?::\d{1,5})?(?:$|[?\/#])/i,\"message\":\"Введенный адрес не является правильным URL.\",\"enableIDN\":false,\"skipOnEmpty\":1});} }); }); "; $this->registerJs($js, $this::POS_LOAD); ?>