Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $this->breadcrumbs = array(
- 'Curriculum'=>array('index'),
- 'Generate',
- );
- ?>
- <h1>Tambah Kurikulum</h1>
- <?php
- $properties = array(
- 'id'=>'picket-form',
- 'enableAjaxValidation'=>false,
- 'type'=>'horizontal',
- 'htmlOptions'=>array('class'=>'well'),
- 'focus'=>array($model, 'FacultyId'),
- );
- $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', $properties);
- echo $form->errorSummary($model);
- $htmlOptions = array('class'=>'span2');
- $yearList = $course->yearList->list;
- echo $form->dropDownListRow($model, 'year', $yearList, $htmlOptions);
- $semesterList = $course->semesterList->list;
- $htmlOptions = array('class'=>'span2');
- echo $form->dropDownListRow($model, 'semester', $semesterList, $htmlOptions);
- $majorList = Major::ListData();
- $htmlOptions = array('class'=>'span5', 'empty'=>'');
- echo $form->dropDownListRow($model, 'majorId', $majorList, $htmlOptions);
- ?>
- <div class="form-actions">
- <?php
- $properties = array(
- 'buttonType'=>'submit',
- 'size'=>'large',
- 'icon'=>'arrow-curve',
- 'label'=>'View',
- 'htmlOptions'=>array(
- 'style'=>'margin-right: 5px;',
- 'name'=>'view',
- ),
- );
- $this->widget('bootstrap.widgets.TbButton', $properties);
- ?>
- </div>
- <?php $this->endWidget(); ?>
- <?php if ($courses || $generalCourses) : ?>
- <?php
- Yii::app()->clientScript->registerCoreScript('jquery.ui');
- $properties = array(
- 'id'=>'curriculum-form',
- 'enableAjaxValidation'=>false,
- 'type'=>'horizontal',
- 'htmlOptions'=>array('class'=>'well'),
- );
- $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', $properties);
- ?>
- <p class="help-block">
- Fields with <span class="required">*</span> are required.
- </p>
- <?php
- $list = array();
- foreach($generalCourses as $course){
- $list[$course->id] = $course->fullname;
- }
- foreach($courses as $course){
- $list[$course->id] = $course->fullname;
- }
- echo $form->checkBoxListRow($course, 'id', $list);
- echo $form->hiddenField($model, 'year');
- echo $form->hiddenField($model, 'semester');
- echo $form->hiddenField($model, 'majorId');
- ?>
- <div class="form-actions">
- <?php
- $properties = array(
- 'buttonType'=>'submit',
- 'type'=>'primary',
- 'label'=>'Save',
- 'htmlOptions'=>array(
- 'style'=>'margin-right: 5px;',
- 'name'=>'add',
- ),
- );
- $this->widget('bootstrap.widgets.TbButton', $properties);
- ?>
- </div>
- <?php $this->endWidget(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement