CC-3876 : "open the library to schedule files" button should be disabled for 'guest' users and DJ's not assigned to this show

This commit is contained in:
Naomi Aro 2012-05-24 15:08:54 +02:00
parent eb4207dd1d
commit 6b8adff769
3 changed files with 17 additions and 13 deletions

View file

@ -1,14 +1,9 @@
<div class="sb-timerange"> <?php echo $this->element->getElement('sb_date_start'); ?>
<div id="sb_edit" class="ui-button ui-state-default" title="open the library to schedule files."> <?php echo $this->element->getElement('sb_time_start'); ?>
<span class="ui-icon ui-icon-arrowthick-1-nw"></span> <?php echo $this->element->getElement('sb_date_end'); ?>
</div> <?php echo $this->element->getElement('sb_time_end'); ?>
<?php echo $this->element->getElement('sb_date_start') ?> <div id="sb_submit" class="ui-button ui-state-default" title="Find Shows">
<?php echo $this->element->getElement('sb_time_start') ?> <span class="ui-icon ui-icon-search"></span>
<?php echo $this->element->getElement('sb_date_end') ?>
<?php echo $this->element->getElement('sb_time_end') ?>
<div id="sb_submit" class="ui-button ui-state-default" title="Find Shows">
<span class="ui-icon ui-icon-search"></span>
</div>
</div> </div>
<div class="sb-advanced-options"> <div class="sb-advanced-options">
<fieldset class="padded display_field push-down-8 closed"> <fieldset class="padded display_field push-down-8 closed">

View file

@ -9,7 +9,14 @@
<?php endif; ?> <?php endif; ?>
<div id="show_builder" class="sb-content ui-widget ui-widget-content block-shadow omega-block padded"> <div id="show_builder" class="sb-content ui-widget ui-widget-content block-shadow omega-block padded">
<div class="sb-timerange">
<?php if(!$this->disableLib && !$this->showLib):?>
<div id="sb_edit" class="ui-button ui-state-default" title="open the library to schedule files.">
<span class="ui-icon ui-icon-arrowthick-1-nw"></span>
</div>
<?php endif; ?>
<?php echo $this->sb_form; ?> <?php echo $this->sb_form; ?>
</div>
<table id="show_builder_table" cellpadding="0" cellspacing="0" class="datatable"></table> <table id="show_builder_table" cellpadding="0" cellspacing="0" class="datatable"></table>
</div> </div>

View file

@ -96,12 +96,14 @@ div.sb-timerange div#sb_edit {
} }
div.sb-timerange div#sb_submit { div.sb-timerange div#sb_submit {
position: absolute;
bottom: 0px;
padding: 3px; padding: 3px;
margin-left: 5px; margin-left: 5px;
} }
div.sb-timerange input {
vertical-align: top;
}
div.sb-timerange input#sb_date_start { div.sb-timerange input#sb_date_start {
margin-left: 30px; margin-left: 30px;
} }