Added jquery validation and other minor cleanup
This commit is contained in:
@@ -16,7 +16,7 @@ abstract class lnApp_Block extends HTMLRender {
|
||||
protected static $_data = array();
|
||||
protected static $_spacer = '';
|
||||
protected static $_c = 0;
|
||||
protected $_items = array('body','scrollable','span','title','title_icon','type');
|
||||
protected $_items = array('body','id','scrollable','span','title','title_icon','type');
|
||||
|
||||
protected static $_required_keys = array('body');
|
||||
|
||||
@@ -60,12 +60,12 @@ abstract class lnApp_Block extends HTMLRender {
|
||||
|
||||
if (! empty($record['type']))
|
||||
switch ($record['type']) {
|
||||
case 'form': $output .= Form::open();
|
||||
case 'form': $output .= Form::open(NULL,(empty($record['id']) ? NULL : array('id'=>$record['id'])));
|
||||
$output .= (string)$record['body'];
|
||||
$output .= Form::close();
|
||||
break;
|
||||
|
||||
case 'form-horizontal': $output .= Form::open(NULL,array('class'=>'form-horizontal'));
|
||||
case 'form-horizontal': $output .= Form::open(NULL,Arr::merge(array('class'=>'form-horizontal'),(empty($record['id']) ? array() : array('id'=>$record['id']))));
|
||||
$output .= (string)$record['body'];
|
||||
$output .= Form::close();
|
||||
break;
|
||||
|
Reference in New Issue
Block a user