Ignore:
Timestamp:
23 Feb 2007, 16:56:46 (18 years ago)
Author:
joachim
Message:

add course registration.
The Link to the study_level is disabled in study_course_view.pt,
but can be invoked manually. On first invocation the courses are created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1417 r1482  
    1919    </metal:block>
    2020    <metal:main fill-slot="main" tal:condition="python:1">
     21      <form action="add_course_result" method="post" class="group">
     22        <h3>Add a course</h3>
     23        <table>
     24          <tr>
     25            <th>Course Id</th>
     26            <td><input type="text" name="course_id"
     27                       tal:attributes="value request/course_id|nothing"/></td>
     28            <td tal:condition="request/error|nothing"
     29                tal:content="request/error" />
     30          </tr>
     31          <tr>
     32            <th></th>
     33            <td colspan="2">
     34              <input type="submit" name="add"
     35                     class="context" value="Add Course"
     36                     />
     37            </td>
     38          </tr>
     39        </table>
     40      </form>   
    2141      <form action="." method="post" class="group">
    2242        <h3>Carryover Courses</h3>
     
    3656            <td width="2%" tal:content="row/semester"></td>
    3757            <td width="2%" tal:content="row/credits"></td>
    38             <td width="8%" tal:content="row/grade|nothing"></td>
     58            <td width="8%" tal:content="row/grade|string:"></td>
    3959          </tr>
    4060        </table>
     
    5777            <td width="8%" tal:content="row/coe|nothing"></td>
    5878          </tr>
     79          <tr>
     80            <td colspan="1"></td>
     81            <th colspan="3">Total credits</th>
     82            <td width="8%" tal:content="info/credits_total"></td>
     83          </tr>
    5984        </table>
    6085        <table width="100%" cellspacing="0" cellpadding="2"
     
    7095                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
    7196                       />
    72                 <input tal:condition="python:1" type="submit" name="register_checked:method"
     97                <input tal:condition="python:0" type="submit" name="register_checked:method"
    7398                       class="context" value="Register" />
    7499                <input tal:condition="python:0" type="submit" name="retract_checked:method"
    75100                       class="context" value="Retract" />
    76                 <input type="submit" name="folder_delete:method" value="button_delete"
     101                <input type="submit" name="course_result_delete:method" value="button_delete"
    77102                       class="destructive" i18n:attributes="value"
    78103                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
     
    89114      </form>
    90115    </metal:main>
    91    
    92     <metal:sub fill-slot="sub"/>
    93116  </metal:body>
    94117</metal:html>
     118 
Note: See TracChangeset for help on using the changeset viewer.