CC-2145 : Redesign & layout fixes for the Preferences screen
printing out errors if the element has a problem
This commit is contained in:
parent
9bd1aa14a9
commit
119e21ec82
2 changed files with 78 additions and 1 deletions
|
@ -6,12 +6,26 @@
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="stationName-element" class="block-display">
|
<dd id="stationName-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('stationName') ?>
|
<?php echo $this->element->getElement('stationName') ?>
|
||||||
|
<?php if($this->element->getElement('stationName')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('stationName')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="stationDefaultFade-label" class="block-display">
|
<dt id="stationDefaultFade-label" class="block-display">
|
||||||
<label class="optional" for="stationDefaultFade"><?php echo $this->element->getElement('stationDefaultFade')->getLabel() ?></label>
|
<label class="optional" for="stationDefaultFade"><?php echo $this->element->getElement('stationDefaultFade')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="stationDefaultFade-element" class="block-display">
|
<dd id="stationDefaultFade-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('stationDefaultFade') ?>
|
<?php echo $this->element->getElement('stationDefaultFade') ?>
|
||||||
|
<?php if($this->element->getElement('stationDefaultFade')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('stationDefaultFade')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="streamFormat-label" class="block-display">
|
<dt id="streamFormat-label" class="block-display">
|
||||||
<label class="optional"><?php echo $this->element->getElement('streamFormat')->getLabel() ?></label>
|
<label class="optional"><?php echo $this->element->getElement('streamFormat')->getLabel() ?></label>
|
||||||
|
@ -28,6 +42,13 @@
|
||||||
</label>
|
</label>
|
||||||
<?php $i = $i + 1; ?>
|
<?php $i = $i + 1; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php if($this->element->getElement('streamFormat')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('streamFormat')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="thirdPartyApi-label" class="block-display">
|
<dt id="thirdPartyApi-label" class="block-display">
|
||||||
<label class="optional"><?php echo $this->element->getElement('thirdPartyApi')->getLabel() ?></label>
|
<label class="optional"><?php echo $this->element->getElement('thirdPartyApi')->getLabel() ?></label>
|
||||||
|
@ -43,7 +64,14 @@
|
||||||
</input>
|
</input>
|
||||||
</label>
|
</label>
|
||||||
<?php $i = $i + 1; ?>
|
<?php $i = $i + 1; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php if($this->element->getElement('thirdPartyApi')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('thirdPartyApi')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
@ -5,42 +5,91 @@
|
||||||
<?php echo $this->element->getElement('UseSoundCloud') ?>
|
<?php echo $this->element->getElement('UseSoundCloud') ?>
|
||||||
<strong><?php echo $this->element->getElement('UseSoundCloud')->getLabel() ?></strong>
|
<strong><?php echo $this->element->getElement('UseSoundCloud')->getLabel() ?></strong>
|
||||||
</label>
|
</label>
|
||||||
|
<?php if($this->element->getElement('UseSoundCloud')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('UseSoundCloud')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudUser-label" class="block-display">
|
<dt id="SoundCloudUser-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudUser"><?php echo $this->element->getElement('SoundCloudUser')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudUser"><?php echo $this->element->getElement('SoundCloudUser')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudUser-element" class="block-display">
|
<dd id="SoundCloudUser-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudUser') ?>
|
<?php echo $this->element->getElement('SoundCloudUser') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudUser')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudUser')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudPassword-label" class="block-display">
|
<dt id="SoundCloudPassword-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudPassword"><?php echo $this->element->getElement('SoundCloudPassword')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudPassword"><?php echo $this->element->getElement('SoundCloudPassword')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudPassword-element" class="block-display">
|
<dd id="SoundCloudPassword-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudPassword') ?>
|
<?php echo $this->element->getElement('SoundCloudPassword') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudPassword')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudPassword')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudTags-label" class="block-display">
|
<dt id="SoundCloudTags-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudTags"><?php echo $this->element->getElement('SoundCloudTags')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudTags"><?php echo $this->element->getElement('SoundCloudTags')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudTags-element" class="block-display clearfix">
|
<dd id="SoundCloudTags-element" class="block-display clearfix">
|
||||||
<?php echo $this->element->getElement('SoundCloudTags') ?>
|
<?php echo $this->element->getElement('SoundCloudTags') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudTags')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudTags')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudGenre-label" class="block-display">
|
<dt id="SoundCloudGenre-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudGenre"><?php echo $this->element->getElement('SoundCloudGenre')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudGenre"><?php echo $this->element->getElement('SoundCloudGenre')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudGenre-element" class="block-display">
|
<dd id="SoundCloudGenre-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudGenre') ?>
|
<?php echo $this->element->getElement('SoundCloudGenre') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudGenre')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudGenre')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudTrackType-label" class="block-display">
|
<dt id="SoundCloudTrackType-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudTrackType"><?php echo $this->element->getElement('SoundCloudTrackType')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudTrackType"><?php echo $this->element->getElement('SoundCloudTrackType')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudTrackType-element" class="block-display">
|
<dd id="SoundCloudTrackType-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudTrackType') ?>
|
<?php echo $this->element->getElement('SoundCloudTrackType') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudTrackType')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudTrackType')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudLicense-label" class="block-display">
|
<dt id="SoundCloudLicense-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudLicense"><?php echo $this->element->getElement('SoundCloudLicense')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudLicense"><?php echo $this->element->getElement('SoundCloudLicense')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudLicense-element" class="block-display">
|
<dd id="SoundCloudLicense-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudLicense') ?>
|
<?php echo $this->element->getElement('SoundCloudLicense') ?>
|
||||||
|
<?php if($this->element->getElement('SoundCloudLicense')->hasErrors()) : ?>
|
||||||
|
<ul class='errors'>
|
||||||
|
<?php foreach($this->element->getElement('SoundCloudLicense')->getMessages() as $error): ?>
|
||||||
|
<li><?php echo $error; ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue