summaryrefslogtreecommitdiff
path: root/protected/views/myAngebot/_form.php
blob: f48ecc91c5a3a6e7d4e6e7ae3ef09334bcdf7284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'angebot-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php $this->renderPartial('/common/_required_fields_text'); ?>

	<?php echo $form->errorSummary($model); ?>
	
	<div class="row">
		<?php echo $form->labelEx($model, 'angebot_id'); ?>
		<?php echo $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
    'name'=>'city',
    'source'=>array('ac1', 'ac2', 'ac3'),
    // additional javascript options for the autocomplete plugin
    'options'=>array(
        'minLength'=>'2',
    ),
    'htmlOptions'=>array(
        'style'=>'height:20px;'
    ),
)); ?>
		<?php echo $form->error($model, 'angebot_id'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'menge'); ?>
		<?php echo $form->textField($model,'menge',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'menge'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'preis'); ?>
		<?php echo $form->textField($model,'preis',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'preis'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'published'); ?>
		<?php echo $form->checkbox($model,'published'); ?>
		<?php echo $form->error($model,'published'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Erstellen' : 'Speichern'); ?>
	</div>

<?php $this->endWidget(); ?>
</div>