Ignore:
Timestamp:
2 Oct 2006, 12:24:04 (18 years ago)
Author:
joachim
Message:

academisSearch can now be used for searching Courses,
the context is not yet taken into account,
the delete button does not work correctly yet.
pleade edit layout academics_search and the vocabularies to fit your needs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_search_view.pt

    r600 r611  
    22            portal_status_message options/psm;
    33            objects options/objects;
    4             is_manager options/is_manager;"
     4            is_manager options/is_manager;
     5            "
    56            >
    67  <metal:body use-macro="here/main_template/macros/master">
     
    3031        >
    3132        <span tal:replace="structure rendered" />
     33          <form action="search" method="post" class="group"
     34                tal:attributes="action context/absolute_url"
     35                >
    3236        <tal:block tal:condition="python: batch_info and batch_info['nb_pages'] > 1">
    3337          <div class="batchLayout">
     
    4751        <table class="contentListing" width="100%">
    4852          <span tal:repeat="rows batches" tal:omit-tag="">
    49             <tr tal:repeat="student rows"
    50                 tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
    51               <td><a href="id" tal:attributes="href string:${student/student/absolute_url}"
    52                      tal:content="student/id"></a></td>   
     53            <tr tal:repeat="object rows"
     54                tal:attributes="class python:test(repeat['object'].even(), 'even ajaxtd', 'odd ajaxtd')">
     55                <td align="left" valign="middle" style="width: 5px;"
     56                    tal:condition="is_manager">
     57                  <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     58                         tal:condition="is_manager"
     59                         tal:define="id object/id"
     60                         tal:attributes="value id;
     61                         id python:'cb_' + id;
     62                         checked python:id in options['choosen_ids'];"
     63                         />
     64                </td>
     65              <td><a href="id" tal:attributes="href string:${object/url}"
     66                     tal:content="object/title"></a></td>   
    5367              <td>
    54                 <span tal:replace="python: student['per_doc'].firstname" />
    55                 <span tal:replace="python: student['per_doc'].middlename" />
    56                 <span tal:replace="python: student['per_doc'].lastname" />
     68                <span tal:replace="object/review_state" />
    5769              </td>   
    58               <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>   
    59               <td><span tal:replace="student/review_state" /></td>   
     70              <td>
     71                <a tal:condition="object/is_editable"
     72                    href="edit" tal:attributes="href string:${object/url}/external_edit_form"
     73                    target="edit"
     74                    onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     75                    [edit]
     76                    </a>
     77                </td>               
    6078            </tr>
    6179          </span>
     80        </table>
     81        <table width="100%" cellspacing="0" cellpadding="2"
     82               summary="buttons"
     83               class="folderButtons">
     84          <tr>
     85            <td align="left" valign="top" rowspan="3"></td>
     86            <td align="left" valign="top">
     87              <span tal:condition="is_manager">
     88                <input type="button" value="button_select_all" class="context"
     89                       onclick="someJavaScriptFunctionThatWillBeReplaced"
     90                       i18n:attributes="value"
     91                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
     92                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
     93                       />
     94                <input type="submit" name="folder_delete:method" value="button_delete"
     95                       class="destructive" i18n:attributes="value"
     96                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
     97                       (cpsmcat('description_confirm_delete'), )"
     98                       />
     99              </span>
     100            </td>
     101          </tr>
    62102        </table>
    63103        <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
     
    98138          </div>
    99139        </tal:block>
     140        </form>
    100141      </span>
    101142    </metal:main>
Note: See TracChangeset for help on using the changeset viewer.