= $this->formFor($this->ad, function($f) { ?> request()->action() ?> = $this->partial('shared/error_messages', ['object' => $f->object()]) ?>
Type | |
---|---|
= $f->label('ad_type') ?> | = $f->select('ad_type', ['Horizontal' => 'horizontal', 'Vertical' => 'vertical']) ?> |
= $f->label('position') ?> | = $f->select('position', ['Any' => 'a', 'Top' => 't', 'Bottom' => 'b']) ?> |
= $f->label('status') ?> | = $f->select('status', ['Active' => 'active', 'Disabled' => 'disabled']) ?> |
= $f->label('reset_hit_count') ?> | = $this->checkBoxTag('reset_hit_count', 1, false, ['id' => 'advertisement_reset_hit_count']) ?> |
= $f->label('width') ?> | = $f->field('number', 'width', ['value' => $f->object()->width ?: 0, 'min' => 0]) ?> |
= $f->label('height') ?> | = $f->field('number', 'height', ['value' => $f->object()->height ?: 0, 'min' => 0]) ?> |
= $f->label('image_url') ?> | = $f->textField('image_url') ?> |
= $f->label('referral_url') ?> | = $f->textField('referral_url') ?> |
= $f->label('html') ?> | = $f->textArea('html', ['style' => 'height: 300px;']) ?> |
= $f->submit() ?> |