Skip to content

Instantly share code, notes, and snippets.

@romaninsh romaninsh/Form.php

Created Jan 15, 2013
Embed
What would you like to do?
<?php
class Form extends Form_Basic {
public $split_columns=true;
function init(){
parent::init();
$this->setFormClass('stacked atk-row');
}
function recursiveRender(){
if(count($this->elements)>8 && $this->split_columns){
$o=$this->add('Order')
->move($this->addSeparator('noborder span6'),'first')
->move($this->addSeparator('noborder span5'),'middle')
->now();
}
parent::recursiveRender();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.