some fixes to display rows in form.

This commit is contained in:
Naomi 2011-04-15 10:04:16 -04:00
parent d68a8369c8
commit c3a02e2569
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,9 @@
<dd id="add_show_rebroadcast_day-element" class="block-display clearfix">
<ul class="formrow-repeat">
<?php for($i=1; $i<=10; $i++): ?>
<li <?php if(($i > 1) && ($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
<li <?php if(($i > 1)
&& ($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getValue() == ""
&& $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
<?php echo $this->element->getElement('add_show_rebroadcast_date_absolute_'.$i) ?>
<span class="inline-text">@</span>
<?php echo $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i) ?>

View File

@ -6,7 +6,9 @@
<dd id="add_show_rebroadcast_repeat_day-element" class="block-display clearfix">
<ul class="formrow-repeat">
<?php for($i=1; $i<=10; $i++): ?>
<li <?php if(($i > 1) && (is_null($this->element->getElement('add_show_rebroadcast_date_'.$i)->getValue()))){echo 'style=display:none';} ?>>
<li <?php if(($i > 1)
&& ($this->element->getElement('add_show_rebroadcast_date_'.$i)->getValue() == ""
&& $this->element->getElement('add_show_rebroadcast_time_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
<?php echo $this->element->getElement('add_show_rebroadcast_date_'.$i) ?>
<span class="inline-text">@</span>
<?php echo $this->element->getElement('add_show_rebroadcast_time_'.$i) ?>