Some theme and field updates

This commit is contained in:
Deon George 2016-08-31 01:59:46 +10:00
parent e07fc159cf
commit f5bc5dfa29
4 changed files with 172 additions and 5 deletions

View File

@ -81,6 +81,7 @@ table .text-right {
padding-right: 30px;
font-weight: normal;
color: #000;
border-radius: 8px;
}
.navbar .navbar-form .navbar-search-addon [class*=" fa-spin"] {

View File

@ -10,6 +10,7 @@
padding-left: 8px;
font-size: 12px;
background-size: auto 50px;
}
#header h1 a {
@ -42,3 +43,149 @@
padding-left: 0px;
padding-right: 0px;
}
h3 {
margin-top: 0px;
}
/*------------------------------------------------------------------
[ Widget / .widget ]
*/
.widget {
position: relative;
clear: both;
width: auto;
margin-bottom: 2em;
/* Clearfix Hack */
/* Widget Table */
/* Widget Plain */
/* Widget Box */
}
.widget .widget-header {
position: relative;
height: 40px;
line-height: 40px;
background: #E9E9E9;
background: -moz-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fafafa), color-stop(100%, #e9e9e9));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
/* Opera11.10+ */
background: -ms-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
/* IE10+ */
background: linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";
border: 1px solid #D5D5D5;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-topright: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
-webkit-background-clip: padding-box;
}
.widget .widget-header h3 {
top: 0;
position: relative;
left: 10px;
display: inline-block;
margin-right: 3em;
font-size: 15px;
font-weight: 400;
color: #555;
line-height: 18px;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}
.widget .widget-header [class^="fa-"],
.widget .widget-header [class*=" fa-"] {
display: inline-block;
margin-top: -3px;
margin-left: 13px;
margin-right: -2px;
font-size: 16px;
color: #555;
vertical-align: middle;
}
.widget .widget-content {
padding: 25px 15px 15px;
background: #FFF;
border: 1px solid #D5D5D5;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.widget .widget-header + .widget-content {
border-top: none;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-moz-border-radius-topleft: 0;
-moz-border-radius-topright: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.widget.widget-nopad .widget-content {
padding: 0;
}
.widget .widget-content:before,
.widget .widget-content:after {
content: " ";
/* 1 */
display: table;
/* 2 */
}
.widget .widget-content:after {
clear: both;
}
.widget .widget-content:before,
.widget .widget-content:after {
content: " ";
/* 1 */
display: table;
/* 2 */
}
.widget .widget-content:after {
clear: both;
}
.widget.widget-table .widget-content {
padding: 0;
}
.widget.widget-table .table {
margin-bottom: 0;
border: none;
}
.widget.widget-table .table tr td:first-child,
.widget.widget-table .table tr th:first-child {
border-left: none;
}
.widget.widget-plain {
background: transparent;
border: none;
}
.widget.widget-plain .widget-content {
padding: 0;
background: transparent;
border: none;
}
.widget.widget-box .widget-content {
background: #E3E3E3;
background: #FFF;
}

View File

@ -0,0 +1,18 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Account validation messages.
*
* @package lnApp
* @category Validation
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
return array(
'email'=>array(
'unique'=>'That email address is either already registered or is reserved. Please login and try this registration again. If you dont know your password, please reset it.',
),
);
?>

View File

@ -2,10 +2,11 @@
<!-- text = field_text -->
<!-- value = value -->
<!-- enddate = js value -->
<?php $field = preg_replace('/[\[\]]/','_',Arr::get($data,'field')); ?>
<div class="form-group">
<label for="<?php echo Arr::get($data,'field'); ?>_label" class="col-md-<?php echo Arr::get($data,'classlabelnum',2); ?> control-label"><?php echo Arr::get($data,'text'); ?></label>
<label for="<?php echo $field; ?>_label" class="col-md-<?php echo Arr::get($data,'classlabelnum',2); ?> control-label"><?php echo Arr::get($data,'text'); ?></label>
<div class="input-group <?php echo Arr::get($data,'class','col-md-2'); ?>">
<input type="text" id="<?php echo Arr::get($data,'field'); ?>_label" value="<?php echo Site::date(Arr::get($data,'value',time())); ?>" class="form-control" placeholder="<?php echo Arr::get($data,'text'); ?>" <?php echo Arr::convert(Arr::get($data,'attr',[])); ?>>
<input type="text" id="<?php echo $field; ?>_label" value="<?php echo Site::date(Arr::get($data,'value',time())); ?>" class="form-control" placeholder="<?php echo Arr::get($data,'text'); ?>" <?php echo Arr::convert(Arr::get($data,'attr',[])); ?>>
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
<span class="col-md-offset-<?php echo Arr::get($data,'classlabelnum',2); ?> help-block with-errors"></span>
@ -25,14 +26,14 @@ Script::factory()
->type('stdin')
->data('
$(document).ready(function() {
$("#'.$data['field'].'_label").datepicker({
$("#'.$field.'_label").datepicker({
autoclose : true,
'.($data['enddate'] ? 'endDate : '.$data['enddate'].',' : '').'
'.(Arr::get($data,'enddate') ? 'endDate : '.$data['enddate'].',' : '').'
todayHighlight: true,
format : "dd-M-yyyy",
todayBtn : true,
}).on("hide",function(ev) {
$("input[name='.$data['field'].']").val(ev.date.valueOf()/1000);
$("input[name=\"'.$data['field'].'\"]").val(ev.date.valueOf()/1000);
});
});');
?>