Пример #1
0
?>

<?php 
echo FormDecorator::textField($model, 'title', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
echo FormDecorator::textArea($model, 'text', array('onclick' => 'backendController.removeErrorHighlighting( this )', 'class' => 'ckeditor'));
echo FormDecorator::textArea($model, 'meta_description', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
echo FormDecorator::textArea($model, 'meta_keywords', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>

<?php 
echo CHtml::activeHiddenField($model, 'image', array('id' => 'article-image-field'));
?>

<div class="row-fluid">
    <?php 
echo FormDecorator::dateField($model, 'created_at', array('value' => $model->getCreatedAt('d/m/Y', NULL, FALSE)));
?>
</div>

<!-- OPTIONAL CODE -->
<div class="row-form clearfix">
    <div class="span2"><?php 
echo _('Available inner links:');
?>
</div>
    <div class="span10">
        <select style="width: 100%;"
                onchange="return backendController.onSelectPageUrl( '#copy-page-url', this);">
            <option value=""><?php 
echo _('choose page...');
?>
Пример #2
0
">
                        <?php 
    echo _('Select page:');
    ?>
                    </a>
                </strong>
            </div>
        </div>
    </div>
<?php 
}
?>

<div class="row-fluid">
    <?php 
echo FormDecorator::dateField($model, 'publish_at');
?>
</div>

<?php 
echo FormDecorator::multiSelect($model, 'tags', TestTagsMl::getOptions(), array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>

<div class="footer tar">
    <?php 
echo CHtml::submitButton('Save', array('class' => 'btn', 'onclick' => 'return backendController.ajaxSubmitFormCK(\'' . $formId . '\')'));
?>
</div>

<?php 
echo CHtml::activeHiddenField($model, 'image', array('id' => 'article-image-field'));