From 119e21ec8277a50cd202ee18eecab496e2240f67 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Sun, 3 Apr 2011 18:32:47 -0400 Subject: [PATCH] CC-2145 : Redesign & layout fixes for the Preferences screen printing out errors if the element has a problem --- .../scripts/form/preferences_general.phtml | 30 +++++++++++- .../scripts/form/preferences_soundcloud.phtml | 49 +++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/application/views/scripts/form/preferences_general.phtml b/application/views/scripts/form/preferences_general.phtml index ce4654a09..92e7956f4 100644 --- a/application/views/scripts/form/preferences_general.phtml +++ b/application/views/scripts/form/preferences_general.phtml @@ -6,12 +6,26 @@
element->getElement('stationName') ?> + element->getElement('stationName')->hasErrors()) : ?> + +
element->getElement('stationDefaultFade') ?> + element->getElement('stationDefaultFade')->hasErrors()) : ?> + +
@@ -28,6 +42,13 @@ + element->getElement('streamFormat')->hasErrors()) : ?> + +
@@ -43,7 +64,14 @@ - + + element->getElement('thirdPartyApi')->hasErrors()) : ?> + + diff --git a/application/views/scripts/form/preferences_soundcloud.phtml b/application/views/scripts/form/preferences_soundcloud.phtml index ea0c46202..3ee3ad54e 100644 --- a/application/views/scripts/form/preferences_soundcloud.phtml +++ b/application/views/scripts/form/preferences_soundcloud.phtml @@ -5,42 +5,91 @@ element->getElement('UseSoundCloud') ?> element->getElement('UseSoundCloud')->getLabel() ?> + element->getElement('UseSoundCloud')->hasErrors()) : ?> + +
element->getElement('SoundCloudUser') ?> + element->getElement('SoundCloudUser')->hasErrors()) : ?> + +
element->getElement('SoundCloudPassword') ?> + element->getElement('SoundCloudPassword')->hasErrors()) : ?> + +
element->getElement('SoundCloudTags') ?> + element->getElement('SoundCloudTags')->hasErrors()) : ?> + +
element->getElement('SoundCloudGenre') ?> + element->getElement('SoundCloudGenre')->hasErrors()) : ?> + +
element->getElement('SoundCloudTrackType') ?> + element->getElement('SoundCloudTrackType')->hasErrors()) : ?> + +
element->getElement('SoundCloudLicense') ?> + element->getElement('SoundCloudLicense')->hasErrors()) : ?> + +