= $this->formFor($this->ad, function($f) { ?>
= $this->partial('shared/error_messages', ['object' => $f->object()]) ?>
= $f->label('image_url') ?>
= $f->textField('image_url') ?>
= $f->label('width') ?>
= $f->textField('width') ?>
= $f->label('height') ?>
= $f->textField('height') ?>
= $f->label('referral_url') ?>
= $f->textField('referral_url') ?>
= $f->label('ad_type') ?>
= $f->select('ad_type', ['Horizontal' => 'horizontal', 'Vertical' => 'vertical']) ?>
= $f->label('status') ?>
= $f->textField('status') ?>
request()->action() == 'edit') : ?>
= $f->label('reset_hit_count') ?>
= $f->checkBox('reset_hit_count') ?>
= $f->submit() ?>