Changeset 1597504
- Timestamp:
- 02/16/2017 07:22:51 PM (9 years ago)
- Location:
- redi-restaurant-reservation/branches/for_fred
- Files:
-
- 2 edited
-
js/restaurant.js (modified) (1 diff)
-
templates/frontend.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redi-restaurant-reservation/branches/for_fred/js/restaurant.js
r1589408 r1597504 494 494 var b = response[availability]['Availability'][current_button_index]; 495 495 496 if(b['StartTime'] == '18:00'){ 497 b['Available'] = false; 498 } 496 499 html += '<button ' 497 500 + (b['Available'] ? '' : 'disabled="disabled"') -
redi-restaurant-reservation/branches/for_fred/templates/frontend.php
r1589408 r1597504 218 218 <?php $all_busy = true; ?> 219 219 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; ?> 221 231 222 232 <?php endif; ?> … … 310 320 <?php _e('Comment', 'redi-restaurant-reservation');?> 311 321 </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> 313 323 </div> 314 324 <div>
Note: See TracChangeset
for help on using the changeset viewer.