From bb97a0eedeb237332869645077e3a06a9236b758 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 19 Aug 2011 13:09:10 -0400 Subject: [PATCH 1/3] CC-2704: Support Setting UI tweak - move station name under publicise - make it required field --- .../application/forms/SupportSettings.php | 3 +- .../views/scripts/form/support-setting.phtml | 31 ++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/airtime_mvc/application/forms/SupportSettings.php b/airtime_mvc/application/forms/SupportSettings.php index 12bb20237..ef6b9f2fa 100644 --- a/airtime_mvc/application/forms/SupportSettings.php +++ b/airtime_mvc/application/forms/SupportSettings.php @@ -16,8 +16,9 @@ class Application_Form_SupportSettings extends Zend_Form $this->addElement('text', 'stationName', array( 'class' => 'input_text', 'label' => 'Station Name', - 'required' => false, + 'required' => true, 'filters' => array('StringTrim'), + 'validator' => array('NotEmpty'), 'value' => Application_Model_Preference::GetValue("station_name"), 'decorators' => array( 'ViewHelper' diff --git a/airtime_mvc/application/views/scripts/form/support-setting.phtml b/airtime_mvc/application/views/scripts/form/support-setting.phtml index 014ef23cc..bb24b89ed 100644 --- a/airtime_mvc/application/views/scripts/form/support-setting.phtml +++ b/airtime_mvc/application/views/scripts/form/support-setting.phtml @@ -1,19 +1,5 @@
-
- -
-
- element->getElement('stationName') ?> - element->getElement('stationName')->hasErrors()) : ?> -
    - element->getElement('stationName')->getMessages() as $error): ?> -
  • - -
- -
Help Airtime improve by letting us know you are using it. This info will be collected regularly in order to improve your user experience.
@@ -47,7 +33,22 @@

Note: In order to promote your station, "Send support feedback" must be enabled

-