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