Changeset 5418 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
11 Aug 2010, 05:47:43 (14 years ago)
Author:
Henrik Bettermann
Message:

Implement accommodation switch.

Location:
WAeUP_SRP/trunk/skins/waeup_fceokene
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_fceokene/config_form.pt

    r4693 r5418  
    159159                 tal:attributes="value pprops/date5" />
    160160        </td>
    161       </tr>         
     161      </tr>     
     162      <tr>
     163        <th>
     164          <label>
     165            Enable Accommodation Booking:
     166          </label>
     167        </th>
     168        <td>
     169          <input type="checkbox" name="enable_acco_booking" id="enable_acco_booking" value=""
     170                 tal:attributes="value pprops/enable_acco_booking;
     171                                 checked pprops/enable_acco_booking" />
     172        </td>
     173      </tr>       
    162174
    163175    </table>
  • WAeUP_SRP/trunk/skins/waeup_fceokene/getAccommodationInfo.py

    r4009 r5418  
    1616import DateTime
    1717
    18 booking_disabled = False
     18pprops = context.portal_properties
     19booking_disabled = not pprops.enable_acco_booking
    1920
    2021request = context.REQUEST
Note: See TracChangeset for help on using the changeset viewer.