Added scrollable and boolean label status

This commit is contained in:
Deon George 2013-05-29 21:09:14 +10:00
parent 84bb919269
commit 8ba0ced191
3 changed files with 46 additions and 3 deletions

View File

@ -16,7 +16,7 @@ abstract class lnApp_Block extends HTMLRender {
protected static $_data = array(); protected static $_data = array();
protected static $_spacer = ''; protected static $_spacer = '';
protected static $_c = 0; protected static $_c = 0;
protected $_items = array('body','span','title','title_icon','type'); protected $_items = array('body','scrollable','span','title','title_icon','type');
protected static $_required_keys = array('body'); protected static $_required_keys = array('body');
@ -50,7 +50,7 @@ abstract class lnApp_Block extends HTMLRender {
$record = static::$_data[$this->_x]; $record = static::$_data[$this->_x];
$output = ''; $output = '';
$output .= sprintf('<div class="span%s">',empty($record['span']) ? '12' : $record['span']); $output .= sprintf('<div class="span%s %s">',empty($record['span']) ? '12' : $record['span'],empty($record['scrollable']) ? '' : 'scrollable');
$output .= '<div class="widget stacked">'; $output .= '<div class="widget stacked">';
if (! empty($record['title'])) if (! empty($record['title']))
@ -60,6 +60,11 @@ abstract class lnApp_Block extends HTMLRender {
if (! empty($record['type'])) if (! empty($record['type']))
switch ($record['type']) { switch ($record['type']) {
case 'form': $output .= Form::open();
$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,array('class'=>'form-horizontal'));
$output .= (string)$record['body']; $output .= (string)$record['body'];
$output .= Form::close(); $output .= Form::close();

View File

@ -11,3 +11,41 @@
.pull-right > .dropdown-menu { .pull-right > .dropdown-menu {
right: auto; right: auto;
} }
.subnavbar .subnavbar-inner {
height: 50px;
}
.subnavbar .mainnav {
height: 50px;
}
.subnavbar .mainnav > li {
min-width: 50px;
height: 50px;
}
.subnavbar .mainnav > li > a:hover {
background-color: #f90;
color: #fff;
}
.subnavbar .mainnav > li > a {
color: #a7a7a7;
}
.subnavbar .mainnav > li > a > i {
height: 12px;
margin-top: 5px;
margin-bottom: 1px;
font-size: 18px;
}
.scrollable {
max-height: 600px;
overflow: auto;
}
legend+.control-group {
margin-top: 0px;
}

View File

@ -1 +1 @@
<span class="label <?php echo $label; ?>" style="font-weight: normal;"><?php echo $status; ?></span> <span class="label <?php echo $label; ?>" style="font-weight: normal;"><?php echo $column; ?></span>