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