Plugin Directory

Changeset 1597504


Ignore:
Timestamp:
02/16/2017 07:22:51 PM (9 years ago)
Author:
robby.roboter
Message:

disable 18:00

Location:
redi-restaurant-reservation/branches/for_fred
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • redi-restaurant-reservation/branches/for_fred/js/restaurant.js

    r1589408 r1597504  
    494494                                        var b = response[availability]['Availability'][current_button_index];
    495495
     496                                        if(b['StartTime'] == '18:00'){
     497                                            b['Available'] = false;
     498                                        }
    496499                                        html += '<button '
    497500                                            + (b['Available'] ? '' : 'disabled="disabled"')
  • redi-restaurant-reservation/branches/for_fred/templates/frontend.php

    r1589408 r1597504  
    218218                        <?php $all_busy = true; ?>
    219219
    220                         <?php foreach ( $available['Availability'] as $button ): ?><button title="<?php echo $button['Reason']?>" <?php if(!$button['Available']):?>disabled="disabled"<?php endif?> class="redi-restaurant-time-button button" value="<?php echo $button['StartTimeISO'] ?>"><?php echo $button['StartTime'] ?></button><?php if($button['Available']) $all_busy = false; ?><?php endforeach; ?>
     220                        <?php foreach ( $available['Availability'] as $button ): ?>
     221                            <?php
     222                            if($button['StartTime'] == '18:00')
     223                            {
     224                                $button['Available'] = false;
     225                            }?>
     226                            <button title="<?php echo $button['Reason']?>" <?php if(!$button['Available']):?>disabled="disabled"<?php endif?> class="redi-restaurant-time-button button" value="<?php echo $button['StartTimeISO'] ?>">
     227                                <?php echo $button['StartTime'] ?>
     228                            </button>
     229                            <?php if($button['Available']) $all_busy = false; ?>
     230                        <?php endforeach; ?>
    221231
    222232                    <?php endif; ?>
     
    310320                <?php _e('Comment', 'redi-restaurant-reservation');?>
    311321            </label>
    312             <textarea maxlength="250" rows="5" name="UserComments" id="UserComments" cols="20" class="UserComments" placeholder="Heeft u meer dan 1 rolstoel, kinderwagen of kinderstoel in de groep, geef dan hier het aantal op."></textarea>
     322            <textarea maxlength="250" rows="5" name="UserComments" id="UserComments" cols="20" class="UserComments" placeholder="Heeft u meer dan 1 rolstoel, kinderwagen of kinderstoel in de groep, geef dan hier het aantal op.`"></textarea>
    313323        </div>
    314324        <div>
Note: See TracChangeset for help on using the changeset viewer.