h1. BlockAppView h2. createBlockApp.php
.
 */
/* @var $this AppointmentController */
/* @var $model Appointment */

$this->breadcrumbs=array(
	'Appointments'=>array('index'),
	'BlockApp',
);

$this->menu=array(
	array('label'=>'Termine verwalten', 'url'=>array('admin')),
);
?>


Termin blockieren renderPartial('_LATEXSCHWEINEREIEN', array('model'=>$model)); ?>
h2. renderPartial-Form
beginWidget('CActiveForm', array(
	'id'=>'appointment-form',
)); 
        $selectContent = '';
        $teacherValue = '';
        $teacherLabel = '';
        if (isset($_GET['teacherId'])) { //Weiterleitung vom user/view; eventuell auch wenn der Lehrer dann im Menü auf Termin blockieren geht? haha -> möglicher intrusion point siehe #177 ;)
            $userTemp = User::model()->findByPk($_GET['teacherId']);
            $teacherValue = $_GET['teacherId'];
            $teacherLabel = $userTemp->title." ".$userTemp->firstname." ".$userTemp->lastname;
            $this->createMakeAppointmentContent($this->getDatesWithTimes(3),$a_tabs, $selectContent, $teacherValue);
        }
?>
Lehrer
widget('zii.widgets.jui.CJuiAutoComplete',array( 'id' => 'appointment_teacher', 'name'=>'', 'value' => $teacherLabel, 'sourceUrl'=>'index.php?r=user/search&role=2', 'options'=>array( 'minLength'=>'1', ), 'htmlOptions'=>array( 'placeholder' => 'Geben Sie einen Nachnamen ein und wählen Sie einen Eintrag aus', ), )); ?> error($model,'user_id'); ?>
Termin
error($model,'dateAndTime_id'); ?>
Grund
textField($model, 'reason'); ?> error($model,'dateAndTime_id'); ?>
Dauer
textField($model, 'length'); ?> error($model,'dateAndTime_id'); ?>
params['timeFormat']; ?>

'small button')); ?> endWidget(); ?>