Factor out default show background colour and fix some style issues
This commit is contained in:
parent
f63ce23c9f
commit
2a1d09bc08
9 changed files with 49 additions and 20 deletions
|
@ -36,6 +36,7 @@ define('DEFAULT_TIMESTAMP_FORMAT', 'Y-m-d H:i:s');
|
||||||
define('DEFAULT_MICROTIME_FORMAT', 'Y-m-d H:i:s.u');
|
define('DEFAULT_MICROTIME_FORMAT', 'Y-m-d H:i:s.u');
|
||||||
define('DEFAULT_ICECAST_PORT', 8000);
|
define('DEFAULT_ICECAST_PORT', 8000);
|
||||||
define('DEFAULT_ICECAST_PASS', 'hackme');
|
define('DEFAULT_ICECAST_PASS', 'hackme');
|
||||||
|
define('DEFAULT_SHOW_COLOR', '3366cc');
|
||||||
|
|
||||||
// Metadata Keys for files
|
// Metadata Keys for files
|
||||||
define('MDATA_KEY_FILEPATH' , 'filepath');
|
define('MDATA_KEY_FILEPATH' , 'filepath');
|
||||||
|
|
|
@ -391,7 +391,8 @@ class LocaleController extends Zend_Controller_Action
|
||||||
"All" => _("All"),
|
"All" => _("All"),
|
||||||
"Copied %s row%s to the clipboard" => _("Copied %s row%s to the clipboard"),
|
"Copied %s row%s to the clipboard" => _("Copied %s row%s to the clipboard"),
|
||||||
"%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." => _("%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished."),
|
"%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished." => _("%sPrint view%sPlease use your browser's print function to print this table. Press escape when finished."),
|
||||||
"New Show" => _("New Show")
|
"New Show" => _("New Show"),
|
||||||
|
"New Log Entry" => _("New Log Entry")
|
||||||
);
|
);
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
|
|
|
@ -67,7 +67,6 @@ class Application_Model_Show
|
||||||
public function getColor()
|
public function getColor()
|
||||||
{
|
{
|
||||||
$show = CcShowQuery::create()->findPK($this->_showId);
|
$show = CcShowQuery::create()->findPK($this->_showId);
|
||||||
|
|
||||||
return $show->getDbColor();
|
return $show->getDbColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +110,12 @@ class Application_Model_Show
|
||||||
{
|
{
|
||||||
$show = CcShowQuery::create()->findPK($this->_showId);
|
$show = CcShowQuery::create()->findPK($this->_showId);
|
||||||
|
|
||||||
return $show->getDbBackgroundColor();
|
$color = $show->getDbBackgroundColor();
|
||||||
|
if (empty($color)) {
|
||||||
|
return DEFAULT_SHOW_COLOR;
|
||||||
|
} else {
|
||||||
|
return $color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setBackgroundColor($backgroundColor)
|
public function setBackgroundColor($backgroundColor)
|
||||||
|
@ -1035,8 +1039,10 @@ SQL;
|
||||||
$event["textColor"] = "#".$show["color"];
|
$event["textColor"] = "#".$show["color"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show["background_color"] != "") {
|
if (!empty($show["background_color"])) {
|
||||||
$event["color"] = "#".$show["background_color"];
|
$event["color"] = "#" . $show["background_color"];
|
||||||
|
} else {
|
||||||
|
$event["color"] = "#" . DEFAULT_SHOW_COLOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($options as $key => $value) {
|
foreach ($options as $key => $value) {
|
||||||
|
|
|
@ -107,7 +107,7 @@ class Application_Model_ShowBuilder
|
||||||
private function getItemColor($p_item, &$row)
|
private function getItemColor($p_item, &$row)
|
||||||
{
|
{
|
||||||
$defaultColor = "ffffff";
|
$defaultColor = "ffffff";
|
||||||
$defaultBackground = "3366cc";
|
$defaultBackground = DEFAULT_SHOW_COLOR;
|
||||||
|
|
||||||
$color = $p_item["show_color"];
|
$color = $p_item["show_color"];
|
||||||
if ($color === '') {
|
if ($color === '') {
|
||||||
|
|
|
@ -36,6 +36,24 @@ html .fc,
|
||||||
/* Header
|
/* Header
|
||||||
------------------------------------------------------------------------*/
|
------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
table.fc-header {
|
||||||
|
background: #4a4a4a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#schedule_calendar > table > tbody > tr > td.fc-header-left
|
||||||
|
{
|
||||||
|
padding: 5px 0px 0px 5px;
|
||||||
|
}
|
||||||
|
#schedule_calendar > table > tbody > tr > td.fc-header-center
|
||||||
|
{
|
||||||
|
padding: 10px 5px 0px 0px;
|
||||||
|
}
|
||||||
|
#schedule_calendar > table > tbody > tr > td.fc-header-right
|
||||||
|
{
|
||||||
|
padding: 5px 5px 0px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.fc-header td {
|
.fc-header td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,9 +170,6 @@
|
||||||
background-color: #CACACA;
|
background-color: #CACACA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-widget-content {
|
|
||||||
background: #C0C0C0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#history_content .btn-toolbar {
|
#history_content .btn-toolbar {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
|
|
@ -136,7 +136,7 @@
|
||||||
|
|
||||||
|
|
||||||
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
||||||
border:0px solid #5b5b5b;
|
border:1px solid #5b5b5b;
|
||||||
background-color: #6e6e6e;
|
background-color: #6e6e6e;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1029,6 +1029,7 @@ table.dataTable span.DataTables_sort_icon {
|
||||||
|
|
||||||
table.dataTable th.ui-state-default {
|
table.dataTable th.ui-state-default {
|
||||||
color: #eee;
|
color: #eee;
|
||||||
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ColVis.TableTools .ui-button {
|
.ColVis.TableTools .ui-button {
|
||||||
|
@ -1658,12 +1659,14 @@ h2#scheduled_playlist_name span {
|
||||||
clear: left;
|
clear: left;
|
||||||
color: #CDCDCD;
|
color: #CDCDCD;
|
||||||
float: left;
|
float: left;
|
||||||
font-size: 1.2em;
|
font-size: 1.4em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-width: 90px;
|
min-width: 90px;
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
|
||||||
}
|
}
|
||||||
.simple-formblock dd {
|
.simple-formblock dd {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
|
@ -274,6 +274,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
animated: false,
|
animated: false,
|
||||||
create: function( event, ui ) {
|
create: function( event, ui ) {
|
||||||
var $div = $showList.find(".ui-accordion-content-active");
|
var $div = $showList.find(".ui-accordion-content-active");
|
||||||
|
console.log(event);
|
||||||
|
//$div.css()
|
||||||
createShowTable($div);
|
createShowTable($div);
|
||||||
},
|
},
|
||||||
change: function( event, ui ) {
|
change: function( event, ui ) {
|
||||||
|
@ -288,8 +290,16 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
function createToolbarButtons ($el) {
|
function createToolbarButtons ($el) {
|
||||||
var $menu = $("<div class='btn-toolbar' />");
|
var $menu = $("<div class='btn-toolbar' />");
|
||||||
|
|
||||||
$menu.append("<div class='btn-group'>" +
|
$menu.append("<div class='btn-group'>" +
|
||||||
|
"<button class='btn btn-small' id='his_create'>" +
|
||||||
|
"<i class='icon-white icon-plus'></i>" +
|
||||||
|
$.i18n._("New Log Entry") +
|
||||||
|
"</button>" +
|
||||||
|
"</div>");
|
||||||
|
|
||||||
|
|
||||||
|
$menu.append("<div class='btn-group'>" +
|
||||||
"<button class='btn btn-small dropdown-toggle' data-toggle='dropdown'>" +
|
"<button class='btn btn-small dropdown-toggle' data-toggle='dropdown'>" +
|
||||||
$.i18n._("Select")+" <span class='caret'></span>" +
|
$.i18n._("Select")+" <span class='caret'></span>" +
|
||||||
"</button>" +
|
"</button>" +
|
||||||
|
@ -300,13 +310,6 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
"</ul>" +
|
"</ul>" +
|
||||||
"</div>");
|
"</div>");
|
||||||
|
|
||||||
$menu.append("<div class='btn-group'>" +
|
|
||||||
"<button class='btn btn-small' id='his_create'>" +
|
|
||||||
"<i class='icon-white icon-plus'></i>" +
|
|
||||||
$.i18n._("Create Entry") +
|
|
||||||
"</button>" +
|
|
||||||
"</div>");
|
|
||||||
|
|
||||||
$menu.append("<div class='btn-group'>" +
|
$menu.append("<div class='btn-group'>" +
|
||||||
"<button class='btn btn-small' id='his_trash'>" +
|
"<button class='btn btn-small' id='his_trash'>" +
|
||||||
"<i class='icon-white icon-trash'></i>" +
|
"<i class='icon-white icon-trash'></i>" +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue