Ignore:
Timestamp:
29 Jan 2014, 11:23:13 (11 years ago)
Author:
Henrik Bettermann
Message:

Further adjustments of forms, tables and buttons in browser module.

Location:
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py

    r10990 r10999  
    100100    msg = _('\'Are you sure?\'')
    101101
     102    def __init__(self, label, style='', **options):
     103        super(JSAction, self).__init__(label, **options)
     104        self.style = style
     105        if style == '':
     106            self.style = 'default'
     107
    102108    def render(self):
    103109        if not self.available():
     
    108114        msg = translate(self.msg, context=self.form.request)
    109115        return ('<input type="submit" id="%s" name="%s" value="%s"'
    110                 ' class="btn" onclick="return confirmPost(%s)" />' %
    111                 (self.__name__, self.__name__, escape(label, quote=True), msg)
     116                ' class="btn btn-%s" onclick="return confirmPost(%s)" />' %
     117                (self.__name__, self.__name__, escape(label, quote=True),
     118                 self.style, msg)
    112119                )
    113120
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/certificatemanagepage.pt

    r10995 r10999  
    3535        <span i18n:domain="waeup.kofa" i18n:translate="">Courses</span>
    3636      </h3>
    37       <table class="display dataTableManage">
     37      <table class="dataTableManage">
    3838        <thead>
    3939          <tr>
     
    4848        </thead>
    4949        <tbody>
    50           <tr tal:repeat="cc context/values" class="gradeC">
     50          <tr tal:repeat="cc context/values">
    5151            <td>
    5252              <input type="checkbox" name="val_id"
     
    9494    <div id="tab3" class="tab-pane">
    9595      <br />
    96       <table class="display dataTableManage">
     96      <table class="dataTableManage">
    9797        <thead>
    9898          <tr>
     
    108108        </thead>
    109109        <tbody>
    110           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
     110          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
    111111            <input type="checkbox" name="role_id"
    112112                   tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     
    122122                 tal:replace="structure action/render"/>
    123123        </span>
    124         </div><br /><br />
    125         <table class="form-table">
    126           <tr> <td>
    127             <select id="user" name="user">
    128               <option tal:repeat="user view/getUsers"
    129                       tal:attributes="value user/name">
    130                 <span tal:replace="user/val/title">USERTITLE
    131                 </span>
    132               </option>
    133               </select> </td> <td>
    134               <select id="local_role" name="local_role">
    135                 <option tal:repeat="localrole view/getLocalRoles"
    136                         tal:attributes="value localrole/name">
    137                   <span tal:replace="localrole/title">LOCALROLETITLE
    138                   </span>
    139                 </option>
    140                 </select> </td> <td>
    141                 <div tal:condition="view/availableActions">
    142                   <span tal:repeat="action view/actions" tal:omit-tag="">
    143                     <input tal:condition="python:action.label in view.tabthreeactions2"
    144                            tal:replace="structure action/render"/>
    145                   </span>
    146                 </div>
    147               </td>
    148           </tr>
    149         </table>
     124      </div><br /><br />
     125      <div class="form-inline">
     126        <br />
     127        <div class="form-group">
     128          <select id="user" name="user">
     129            <option tal:repeat="user view/getUsers"
     130                    tal:attributes="value user/name">
     131            <span tal:replace="user/val/title">USERTITLE
     132            </span>
     133            </option>
     134          </select>
     135        </div>
     136        <div class="form-group">
     137          <select id="local_role" name="local_role">
     138            <option tal:repeat="localrole view/getLocalRoles"
     139                    tal:attributes="value localrole/name">
     140            <span tal:replace="localrole/title">LOCALROLETITLE
     141            </span>
     142            </option>
     143          </select>
     144        </div>
     145        <div class="form-group">
     146          <div tal:condition="view/availableActions">
     147            <span tal:repeat="action view/actions" tal:omit-tag="">
     148              <input tal:condition="python:action.label in view.tabthreeactions2"
     149                     tal:replace="structure action/render"/>
     150            </span>
     151          </div>
     152        </div>
     153      </div>
    150154    </div>
    151155  </div>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/certificatepage.pt

    r9320 r10999  
    2323</h3>
    2424<br />
    25 <table i18n:domain="waeup.kofa" class="display dataTable">
     25<table i18n:domain="waeup.kofa" class="dataTable">
    2626<thead>
    2727  <tr>
     
    3535</thead>
    3636<tbody>
    37   <tr tal:repeat="cc context/values" class="gradeC">
     37  <tr tal:repeat="cc context/values">
    3838     <td>
    3939      <span tal:content="cc/level">
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/configurationmanagepage.pt

    r10995 r10999  
    2727    <div id="tab2" class="tab-pane">
    2828      <br />
    29       <table class="display dataTableManage">
     29      <table class="dataTableManage">
    3030        <thead>
    3131          <tr>
     
    3737        </thead>
    3838        <tbody>
    39           <tr tal:repeat="entry view/getSessionConfigurations"
    40               class="gradeC"> <td>
     39          <tr tal:repeat="entry view/getSessionConfigurations">
     40            <td>
    4141            <input type="checkbox" name="val_id"
    4242                   tal:attributes="value entry/name" /> </td> <td>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/coursemanagepage.pt

    r10995 r10999  
    2828    <div id="tab3" class="tab-pane">
    2929      <br />
    30       <table class="display dataTableManage">
     30      <table class="dataTableManage">
    3131        <thead>
    3232          <tr>
     
    4242        </thead>
    4343        <tbody>
    44           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
     44          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
    4545            <input type="checkbox" name="role_id"
    4646                   tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     
    5656                 tal:replace="structure action/render"/>
    5757        </span>
    58         </div><br /><br />
    59         <table class="form-table">
    60           <tr> <td>
    61             <select id="user" name="user">
    62               <option tal:repeat="user view/getUsers"
    63                       tal:attributes="value user/name">
    64                 <span tal:replace="user/val/title">USERTITLE
     58      </div><br /><br />
     59      <div class="form-inline">
     60        <br />
     61        <div class="form-group">
     62          <select id="user" name="user">
     63            <option tal:repeat="user view/getUsers"
     64                    tal:attributes="value user/name">
     65            <span tal:replace="user/val/title">USERTITLE
     66            </span>
     67            </option>
     68          </select>
     69        </div>
     70        <div class="form-group">
     71          <select id="local_role" name="local_role">
     72            <option tal:repeat="localrole view/getLocalRoles"
     73                    tal:attributes="value localrole/name">
     74            <span tal:replace="localrole/title">LOCALROLETITLE
     75            </span>
     76            </option>
     77          </select>
     78        </div>
     79        <div class="form-group">
     80          <div tal:condition="view/availableActions">
     81                <span tal:repeat="action view/actions" tal:omit-tag="">
     82                  <input tal:condition="python:action.label in view.tabtwoactions2"
     83                         tal:replace="structure action/render"/>
    6584                </span>
    66               </option>
    67               </select> </td> <td>
    68               <select id="local_role" name="local_role">
    69                 <option tal:repeat="localrole view/getLocalRoles"
    70                         tal:attributes="value localrole/name">
    71                   <span tal:replace="localrole/title">LOCALROLETITLE
    72                   </span>
    73                 </option>
    74                 </select> </td> <td>
    75                 <div tal:condition="view/availableActions">
    76                   <span tal:repeat="action view/actions" tal:omit-tag="">
    77                     <input tal:condition="python:action.label in view.tabtwoactions2"
    78                            tal:replace="structure action/render"/>
    79                   </span>
    80                 </div> </td>
    81           </tr>
    82         </table>
     85          </div>
     86        </div>
     87      </div>
    8388    </div>
    8489  </div>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterfinishedpage.pt

    r9592 r10999  
    44  imports. The files contain the imported datasets.
    55</p>
    6 <table i18n:domain="waeup.kofa" class="display dataTableFiles">
     6<table i18n:domain="waeup.kofa" class="dataTableFiles">
    77  <thead>
    88    <tr>
     
    1313  </thead>
    1414  <tbody>
    15     <tr tal:repeat="file context/getFinishedFiles" class="gradeC">
     15    <tr tal:repeat="file context/getFinishedFiles">
    1616      <td><a tal:attributes="href python: 'download?filename=' + file.rel_path"
    1717             tal:content="file/name">FILENAME</a></td>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterpage.pt

    r9610 r10999  
    1111<form action="." tal:attributes="action request/URL" method="post"
    1212      i18n:domain="waeup.kofa" enctype="multipart/form-data">
    13     <table i18n:domain="waeup.kofa" class="display dataTableManageFiles">
     13    <table i18n:domain="waeup.kofa" class="dataTableManageFiles">
    1414      <thead>
    1515        <tr>
     
    2121      </thead>
    2222      <tbody>
    23         <tr tal:repeat="file context/getPendingFiles" class="gradeC">
     23        <tr tal:repeat="file context/getPendingFiles">
    2424          <td>
    2525            <input type="checkbox" name="val_id"
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentmanagepage.pt

    r10995 r10999  
    3232    <div id="tab2" class="tab-pane">
    3333      <br />
    34       <table class="display dataTableManage">
     34      <table class="dataTableManage">
    3535        <thead>
    3636          <tr>
     
    4444        </thead>
    4545        <tbody>
    46           <tr tal:repeat="entry view/getCourses" class="gradeC"> <td>
     46          <tr tal:repeat="entry view/getCourses"> <td>
    4747            <input type="checkbox" name="val_id"
    4848                   tal:attributes="value entry/name" /> </td> <td>
     
    6262    <div id="tab3" class="tab-pane">
    6363      <br />
    64       <table class="display dataTableManage">
     64      <table class="dataTableManage">
    6565        <thead>
    6666          <tr>
     
    7474        </thead>
    7575        <tbody>
    76           <tr tal:repeat="entry view/getCertificates" class="gradeC"> <td>
     76          <tr tal:repeat="entry view/getCertificates"> <td>
    7777            <input type="checkbox" name="val_id"
    7878                   tal:attributes="value entry/name" /> </td> <td>
     
    9191    </div>
    9292    <div id="tab4" class="tab-pane"> <br />
    93     <table class="display dataTableManage">
     93    <table class="dataTableManage">
    9494      <thead>
    9595        <tr>
     
    105105      </thead>
    106106      <tbody>
    107         <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
     107        <tr tal:repeat="entry view/getUsersWithLocalRoles">
    108108          <td> <input type="checkbox" name="role_id"
    109109          tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
     
    114114      </tbody>
    115115    </table>
    116     <div tal:condition="view/availableActions">
    117       <span tal:repeat="action view/actions" tal:omit-tag="">
    118         <input tal:condition="python:action.label in view.tabfouractions1"
    119                tal:replace="structure action/render"/>
    120       </span>
     116      <div tal:condition="view/availableActions">
     117        <span tal:repeat="action view/actions" tal:omit-tag="">
     118          <input tal:condition="python:action.label in view.tabfouractions1"
     119                 tal:replace="structure action/render"/>
     120        </span>
    121121      </div> <br /><br />
    122       <table class="form-table">
    123         <tr> <td>
     122      <div class="form-inline">
     123        <br />
     124        <div class="form-group">
    124125          <select id="user" name="user">
    125             <option tal:attributes="value user/name" tal:repeat="user view/getUsers">
    126               <span tal:replace="user/val/title">USERTITLE
    127               </span>
     126            <option tal:repeat="user view/getUsers"
     127                    tal:attributes="value user/name">
     128            <span tal:replace="user/val/title">USERTITLE
     129            </span>
    128130            </option>
    129             </select> </td> <td>
    130             <select id="local_role" name="local_role">
    131               <option tal:attributes="value localrole/name"
    132                       tal:repeat="localrole view/getLocalRoles">
    133                 <span tal:replace="localrole/title">LOCALROLETITLE
    134                 </span>
    135               </option>
    136               </select> </td> <td>
    137               <div tal:condition="view/availableActions">
    138                 <span tal:repeat="action view/actions" tal:omit-tag="">
    139                   <input tal:condition="python:action.label in view.tabfouractions2"
    140                          tal:replace="structure action/render"/>
    141                 </span>
    142               </div>
    143             </td>
    144         </tr>
    145       </table>
     131          </select>
     132        </div>
     133        <div class="form-group">
     134          <select id="local_role" name="local_role">
     135            <option tal:repeat="localrole view/getLocalRoles"
     136                    tal:attributes="value localrole/name">
     137            <span tal:replace="localrole/title">LOCALROLETITLE
     138            </span>
     139            </option>
     140          </select>
     141        </div>
     142        <div class="form-group">
     143          <div tal:condition="view/availableActions">
     144            <span tal:repeat="action view/actions" tal:omit-tag="">
     145              <input tal:condition="python:action.label in view.tabfouractions2"
     146                     tal:replace="structure action/render"/>
     147            </span>
     148          </div>
     149        </div>
     150      </div>
    146151    </div>
    147152  </div>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentpage.pt

    r10995 r10999  
    1010  <div id="tab1" class="active tab-pane">
    1111    <br />
    12     <table class="display dataTable">
     12    <table class="dataTable">
    1313      <thead>
    1414        <tr>
     
    1818      </thead>
    1919      <tbody>
    20         <tr tal:repeat="entry view/getCourses" class="gradeC">
     20        <tr tal:repeat="entry view/getCourses">
    2121          <td>
    2222            <a href=""
     
    3333  <div id="tab2" class="tab-pane">
    3434    <br />
    35     <table class="display dataTable">
     35    <table class="dataTable">
    3636      <thead>
    3737        <tr>
     
    4141      </thead>
    4242      <tbody>
    43         <tr tal:repeat="entry view/getCertificates" class="gradeC">
     43        <tr tal:repeat="entry view/getCertificates">
    4444          <td>
    4545            <a href=""
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultiescontainermanagepage.pt

    r7464 r10999  
    22      enctype="multipart/form-data">
    33
    4   <table>
     4  <table class="table table-hover">
    55    <thead>
    66      <tr>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultymanagepage.pt

    r10995 r10999  
    3434    <div id="tab2" class="tab-pane">
    3535      <h3 tal:content="view/subunits">DEPARTMENTS</h3>
    36       <table>
     36      <table class="table table-hover">
    3737        <thead>
    3838          <tr>
     
    6464    </div>
    6565    <div id="tab3" class="tab-pane"> <br />
    66       <table class="display dataTableManage">
     66      <table class="dataTableManage">
    6767        <thead>
    6868          <tr>
     
    7878        </thead>
    7979        <tbody>
    80           <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
     80          <tr tal:repeat="entry view/getUsersWithLocalRoles">
    8181            <td>
    8282              <input type="checkbox" name="role_id"
     
    9494        </span>
    9595      </div><br /><br />
    96       <table class="form-table">
    97         <tr> <td>
    98             <select id="user" name="user">
    99               <option tal:repeat="user view/getUsers"
    100                       tal:attributes="value user/name">
    101               <span tal:replace="user/val/title">USERTITLE
    102               </span>
    103               </option>
    104             </select> </td> <td>
    105             <select id="local_role" name="local_role">
    106               <option tal:repeat="localrole view/getLocalRoles"
    107                       tal:attributes="value localrole/name">
    108               <span tal:replace="localrole/title">LOCALROLETITLE
    109               </span>
    110               </option>
    111             </select> </td> <td>
    112             <div tal:condition="view/availableActions">
    113               <span tal:repeat="action view/actions" tal:omit-tag="">
    114                 <input tal:condition="python:action.label in view.tabthreeactions2"
    115                        tal:replace="structure action/render"/>
    116               </span>
    117             </div>
    118           </td>
    119         </tr>
    120       </table>
     96      <div class="form-inline">
     97        <br />
     98        <div class="form-group">
     99          <select id="user" name="user">
     100            <option tal:repeat="user view/getUsers"
     101                    tal:attributes="value user/name">
     102            <span tal:replace="user/val/title">USERTITLE
     103            </span>
     104            </option>
     105          </select>
     106        </div>
     107        <div class="form-group">
     108          <select id="local_role" name="local_role">
     109            <option tal:repeat="localrole view/getLocalRoles"
     110                    tal:attributes="value localrole/name">
     111            <span tal:replace="localrole/title">LOCALROLETITLE
     112            </span>
     113            </option>
     114          </select>
     115        </div>
     116        <div class="form-group" tal:condition="view/availableActions">
     117          <span tal:repeat="action view/actions" tal:omit-tag="">
     118            <input tal:condition="python:action.label in view.tabthreeactions2"
     119                   tal:replace="structure action/render"/>
     120          </span>
     121        </div>
     122      </div>
     123
    121124    </div>
    122125  </div>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultypage.pt

    r8024 r10999  
    33</div>
    44
    5 <table i18n:domain="waeup.kofa">
     5<table class="table table-hover" i18n:domain="waeup.kofa">
    66  <thead>
    77    <tr>
     
    1212  <tbody>
    1313    <tr tal:repeat="value context/values">
    14       <td> <a tal:attributes="href value/__name__">
     14      <td> <a tal:attributes="href python: view.url(value)">
    1515          <span tal:content="value/code">Name</span></a></td>
    1616      <td tal:content="value/longtitle">Title</td>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/findstudentspage.pt

    r10646 r10999  
    2020    <input type="hidden" name="old_searchtype"
    2121         tal:attributes="value view/searchtype" />
    22     <table class="display dataTable">
     22    <table class="dataTable">
    2323      <thead>
    2424      <tr>
     
    3131      </thead>
    3232      <tbody>
    33       <tr tal:repeat="item view/hitlist" class="gradeC">
     33      <tr tal:repeat="item view/hitlist">
    3434        <td> <a tal:attributes="href item/url">
    3535          <span tal:content="item/student_id">A123456</span></a>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/searchpage.pt

    r9631 r10999  
    1 <form method="post">
    2   <input type="text" name="query"
    3          tal:attributes="value view/query" />
    4     <input class="btn primary" type="submit" name="SUBMIT"
     1<form method="POST" class="form-inline">
     2<br />
     3  <div class="form-group">
     4      <input type="text" name="query" class="form-control"
     5         tal:attributes="value view/query" />
     6  </div>
     7  <div class="form-group">
     8    <input class="btn btn-primary" type="submit" name="SUBMIT"
    59      tal:attributes="value view/search_button"/>
     10  </div>
    611</form>
    712<br />
    813<span  i18n:domain="waeup.kofa" tal:condition="view/hitlist">
    914    <h3 i18n:translate="">Search Results</h3>
    10     <table class="display dataTable">
     15    <table class="dataTable">
    1116        <thead>
    1217            <tr>
Note: See TracChangeset for help on using the changeset viewer.