diff --git a/application/forms/AddShowRebroadcastDates.php b/application/forms/AddShowRebroadcastDates.php index a8e0a67d0..dc38a583b 100644 --- a/application/forms/AddShowRebroadcastDates.php +++ b/application/forms/AddShowRebroadcastDates.php @@ -9,17 +9,18 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm array('ViewScript', array('viewScript' => 'form/add-show-rebroadcast.phtml')) )); + + $relativeDates = array(); + $relativeDates[""] = ""; + for($i=0; $i <=30; $i++) { + $relativeDates["$i days"] = "+$i days"; + } + //Add date select $this->addElement('select', 'add_show_rebroadcast_date_1', array( 'required' => false, 'class' => ' input_select', - 'multiOptions' => array( - "" => "", - "0 days" => "+0 days", - "1 day" => "+1 day", - "2 days" => "+2 days", - "3 days" => "+3 days" - ), + 'multiOptions' => $relativeDates, 'decorators' => array( 'ViewHelper' ) @@ -44,13 +45,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm $this->addElement('select', 'add_show_rebroadcast_date_2', array( 'required' => false, 'class' => ' input_select', - 'multiOptions' => array( - "" => "", - "0 days" => "+0 days", - "1 day" => "+1 day", - "2 days" => "+2 days", - "3 days" => "+3 days" - ), + 'multiOptions' => $relativeDates, 'decorators' => array( 'ViewHelper' ) @@ -75,13 +70,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm $this->addElement('select', 'add_show_rebroadcast_date_3', array( 'required' => false, 'class' => ' input_select', - 'multiOptions' => array( - "" => "", - "0 days" => "+0 days", - "1 day" => "+1 day", - "2 days" => "+2 days", - "3 days" => "+3 days" - ), + 'multiOptions' => $relativeDates, 'decorators' => array( 'ViewHelper' ) @@ -106,13 +95,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm $this->addElement('select', 'add_show_rebroadcast_date_4', array( 'required' => false, 'class' => ' input_select', - 'multiOptions' => array( - "" => "", - "0 days" => "+0 days", - "1 day" => "+1 day", - "2 days" => "+2 days", - "3 days" => "+3 days" - ), + 'multiOptions' => $relativeDates, 'decorators' => array( 'ViewHelper' ) @@ -137,13 +120,7 @@ class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm $this->addElement('select', 'add_show_rebroadcast_date_5', array( 'required' => false, 'class' => ' input_select', - 'multiOptions' => array( - "" => "", - "0 days" => "+0 days", - "1 day" => "+1 day", - "2 days" => "+2 days", - "3 days" => "+3 days" - ), + 'multiOptions' => $relativeDates, 'decorators' => array( 'ViewHelper' ) diff --git a/application/forms/AddShowWhat.php b/application/forms/AddShowWhat.php index 7fafdb46e..74e7b0dcc 100644 --- a/application/forms/AddShowWhat.php +++ b/application/forms/AddShowWhat.php @@ -16,7 +16,7 @@ class Application_Form_AddShowWhat extends Zend_Form_SubForm // Add URL element $this->addElement('text', 'add_show_url', array( - 'label' => 'Show URL:', + 'label' => 'Website:', 'class' => 'input_text', 'required' => false, 'filters' => array('StringTrim'), diff --git a/application/views/scripts/schedule/add-show-form.phtml b/application/views/scripts/schedule/add-show-form.phtml index 2a111448b..9d8613d7d 100644 --- a/application/views/scripts/schedule/add-show-form.phtml +++ b/application/views/scripts/schedule/add-show-form.phtml @@ -1,7 +1,10 @@
Close - +

What

diff --git a/application/views/scripts/user/add-user.phtml b/application/views/scripts/user/add-user.phtml index db1e76138..4f836e0fa 100644 --- a/application/views/scripts/user/add-user.phtml +++ b/application/views/scripts/user/add-user.phtml @@ -7,7 +7,9 @@
- +
diff --git a/public/js/airtime/schedule/add-show.js b/public/js/airtime/schedule/add-show.js index 50ca4058a..329391086 100644 --- a/public/js/airtime/schedule/add-show.js +++ b/public/js/airtime/schedule/add-show.js @@ -182,7 +182,6 @@ function setAddShowEvents() { }); form.find("#add-show-submit") - .button() .click(function(event){ event.preventDefault(); diff --git a/python_apps/pypo/scripts/ls_config.liq b/python_apps/pypo/scripts/ls_config.liq index ef1caa198..20b1f4215 100644 --- a/python_apps/pypo/scripts/ls_config.liq +++ b/python_apps/pypo/scripts/ls_config.liq @@ -44,5 +44,5 @@ icecast_description = "Airtime Radio!" icecast_genre = "genre" output_sound_device = false -output_icecast_vorbis = true +output_icecast_vorbis = false output_icecast_mp3 = true diff --git a/python_apps/pypo/scripts/ls_lib.liq b/python_apps/pypo/scripts/ls_lib.liq index 8447e5100..5bd611878 100644 --- a/python_apps/pypo/scripts/ls_lib.liq +++ b/python_apps/pypo/scripts/ls_lib.liq @@ -6,9 +6,9 @@ end # A function applied to each metadata chunk def append_title(m) = if !stream_metadata_type == 1 then - [("artist","#{!show_name} - #{m['title']}")] - #elsif !stream_metadata_type == 2 then - # [("artist", ""), ("title", !show_name)] + [("artist","#{!show_name} - #{m['artist']}")] + #####elsif !stream_metadata_type == 2 then + ##### [("artist", ""), ("title", !show_name)] elsif !stream_metadata_type == 2 then [("artist",!station_name), ("title", !show_name)] else