1
0

Added Visible & Enabled to BlogPost

This commit is contained in:
2014-09-13 17:37:47 +02:00
parent 5c940826de
commit ff5ecbc144
10 changed files with 69 additions and 13 deletions

View File

@@ -30,6 +30,20 @@
<?php echo $form->textAreaControlGroup($model,'Content',array('rows'=>30,'span'=>8)); ?>
<?php
if ($model->isNewRecord)
echo $form->textFieldControlGroup($model,'Visible',array('span'=>5, 'value' => '1'));
else
echo $form->textFieldControlGroup($model,'Visible',array('span'=>5, ));
?>
<?php
if ($model->isNewRecord)
echo $form->textFieldControlGroup($model,'Enabled',array('span'=>5, 'value' => '1'));
else
echo $form->textFieldControlGroup($model,'Enabled',array('span'=>5, ));
?>
<?php echo MsHtml::ajaxButton ("Preview", CController::createUrl('blog/ajaxMarkdownPreview'),
[
'type'=>'POST',