Ignore:
Timestamp:
10 Jan 2012, 21:38:44 (13 years ago)
Author:
Henrik Bettermann
Message:

Backup

Location:
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser.py

    r7332 r7447  
    2929from waeup.sirp.browser.viewlets import (
    3030    ManageActionButton, PrimaryNavTab)
    31 from waeup.sirp.browser.layout import jsaction, JSAction
     31from waeup.sirp.browser.layout import jsaction, action
    3232from waeup.sirp.interfaces import ISIRPObject
    3333from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED
     
    141141        return
    142142
    143     @grok.action('Add hostel', validator=NullValidator)
     143    @action('Add hostel', validator=NullValidator)
    144144    def addSubunit(self, **data):
    145145        self.redirect(self.url(self.context, 'addhostel'))
     
    158158    pnav = 5
    159159
    160     @grok.action('Create hostel')
     160    @action('Create hostel')
    161161    def addHostel(self, **data):
    162162        hostel = Hostel()
     
    230230        return
    231231
    232     @grok.action('Save')
     232    @action('Save')
    233233    def save(self, **data):
    234234        msave(self, **data)
    235235        return
    236236
    237     @grok.action('Update all beds')
     237    @action('Update all beds')
    238238    def updateBeds(self, **data):
    239239        removed, added, modified, modified_beds = self.context.updateBeds()
     
    245245        return
    246246
    247     @grok.action('Switch reservation of selected beds')
     247    @action('Switch reservation of selected beds')
    248248    def switchReservations(self, **data):
    249249        form = self.request.form
     
    273273        return
    274274
    275     @grok.action('Release selected beds')
     275    @action('Release selected beds')
    276276    def releaseBeds(self, **data):
    277277        form = self.request.form
     
    316316            self.context.__parent__.hostel_name, co[1], co[2], co[3])
    317317
    318     @grok.action('Save')
     318    @action('Save')
    319319    def save(self, **data):
    320320        msave(self, **data)
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/containermanagepage.pt

    r6959 r7447  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="form-status" tal:define="status view/status" tal:condition="status"> Form Status:
     2<div class="alert-message error" tal:define="status view/status" tal:condition="status"> Form Status:
    33  <span i18n:translate="" tal:content="view/status"> Form status summary
    44  </span>
    55</div>
    6 <form action="." tal:attributes="action request/URL" method="POST" class="edit-form" enctype="multipart/form-data">
    7   <table class="zebra">
     6<form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
     7  <table>
    88    <thead>
    99      <tr>
     
    2525    </tbody>
    2626  </table>
    27   <div class="actionButtons" tal:condition="view/availableActions">
     27  <div tal:condition="view/availableActions">
    2828    <span tal:repeat="action view/actions" tal:omit-tag="">
    2929      <input tal:replace="structure action/render"/>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/containerpage.pt

    r6959 r7447  
    55</div>
    66
    7 <table class="zebra">
     7<table>
    88  <thead>
    99    <tr>
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt

    r7068 r7447  
    33  tal:content="view/label">Label</h2>
    44
    5   <div class="form-status"
     5  <div class="alert-message error"
    66      tal:define="status view/status"
    77      tal:condition="status">
     
    1818
    1919  <form action="." tal:attributes="action request/URL" method="POST"
    20         class="edit-form" enctype="multipart/form-data">
     20        enctype="multipart/form-data">
    2121
    22   <div id="tabs">
    23     <ul>
    24       <li><a href="#tab-1"><span>Hostel Data</span></a></li>
    25       <li><a href="#tab-2"><span>Beds</span></a></li>
    26     </ul>
     22  <ul class="tabs" data-tabs="tabs">
     23    <li class="active"><a href="#tab-1"><span>Hostel Data</span></a></li>
     24    <li><a href="#tab-2"><span>Beds</span></a></li>
     25  </ul>
    2726
    28     <div id="tab-1">
    29       <table class="zebra">
     27  <div class="tab-content">
     28    <div id="tab-1" class="active">
     29      <table class="form-table">
    3030      <tbody>
    3131      <tal:block repeat="widget view/widgets">
    3232        <tr>
    33           <td class="label">
    34             <label tal:attributes="for widget/name">
    35               <span class="required" tal:condition="widget/required">*</span>
    36               <span i18n:translate="" tal:content="widget/label">label</span>:
    37             </label>
     33          <td class="fieldname">
     34            <span class="required" tal:condition="widget/required">*</span>
     35            <span i18n:translate="" tal:content="widget/label">label</span>:
    3836          </td>
    39           <td class="field">
     37          <td>
    4038            <span class="widget" tal:content="structure widget">
    4139              <input type="text" />
     
    4543            </tal:error>
    4644            <tal:hint tal:condition="widget/hint">
    47               <span class="hint" tal:content="structure widget/hint">hint</span>
     45              <span tal:content="structure widget/hint">hint</span>
    4846            </tal:hint>
    4947          </td>
     
    5250      </tbody>
    5351      </table>
    54       <div class="actionButtons" tal:condition="view/availableActions">
     52      <div tal:condition="view/availableActions">
    5553        <span tal:repeat="action view/actions"
    5654              tal:omit-tag="">
     
    9795      </table>
    9896
    99       <div class="actionButtons" tal:condition="view/availableActions">
     97      <div tal:condition="view/availableActions">
    10098        <span tal:repeat="action view/actions"
    10199              tal:omit-tag="">
Note: See TracChangeset for help on using the changeset viewer.