Ignore:
Timestamp:
14 Jun 2016, 17:53:45 (8 years ago)
Author:
Henrik Bettermann
Message:

Add flash message. Add step-by-step instructions.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r13937 r13939  
    2626from waeup.kofa.browser.layout import UtilityView
    2727from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
    28 from waeup.kofa.interfaces import IKofaUtils
     28from waeup.kofa.interfaces import IKofaUtils, academic_sessions_vocab
    2929from waeup.kofa.students.interfaces import IStudentsUtils, IStudent
    3030from waeup.kofa.students.workflow import PAID, REGISTERED
     
    572572            self.redirect(self.url(self.context))
    573573            return
     574        self.session_title = academic_sessions_vocab.getTerm(
     575            self.current_academic_session).title
    574576        self.tickets = self._searchCatalog(self.current_academic_session)
    575577        editable_tickets = [
     
    633635              'Only integers are allowed.' % error.strip(', ')),
    634636              type="danger")
     637            return
     638        self.flash(_('You successfully updated course results.'))
    635639        return
    636640
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser_templates/editscorespage.pt

    r13937 r13939  
    1 <p  i18n:domain="waeup.kofa" i18n:translate="edit_scores_info">
     1<p i18n:domain="waeup.kofa" i18n:translate="edit_scores_info">
    22  This page helps you to update your students' course results.
    33  You can either update scores and CAs by importing a csv file
    44  (press 'Help' for further information) or by
    55  changing score or CA values in the table below. Only scores and CAs
    6   of students in state 'courses validated' and current academic session
     6  of students in state 'courses validated' and current session
     7  <span  i18n:name="current_academic_session"
     8         tal:replace="view/session_title"></span>
    79  can be modified.
    810</p>
     
    1315    <div class="input-group-btn">
    1416      <div class="btn btn-default btn-file" i18n:translate="">
    15         Select file&hellip;
    16         <input type="file" name="uploadfile:file" />
     17        Select csv file&hellip;
     18        <input type="file" name="uploadfile:file" i18n:name="input_file"/>
    1719      </div>
    1820    </div>
     
    4244        </div>
    4345        <div class="modal-body" i18n:translate="lecturer_help">
    44           ...
     46          <ol>
     47            <li>Download csv file.</li>
     48            <li>Open csv file in a text editor or in a spreadsheet
     49                programme (Excel or Calc).</li>
     50            <li>Edit course results only. Do not modify other entries.
     51                Do not remove or add columns. Do not add rows.</li>
     52            <li>Save file in same format (csv).
     53                Do not switch to any other format (xls, xlsx or ods).</li>
     54            <li>Select same file for upload and press the blue 'Update ...'
     55                button.</li>
     56            <li>The values in the table will be updated. Spot-check if
     57                the values in the table correspond with the values in
     58                your file.</li>
     59            <li>Ready</li>
     60          </ol>
     61          <strong>Note:</strong>
     62          Only course results of students which are in
     63          state 'courses validated' and in current academic session
     64          can be modified. Additional data will just be ignored.
    4565        </div>
    4666      </div><!-- /.modal-content -->
     
    5474    <tr>
    5575      <th i18n:translate="">Matric No.</th>
     76      <th i18n:translate="">Reg. No.</th>
    5677      <th i18n:translate="">Fullname</th>
    5778      <th i18n:translate="">Status</th>
     
    6586    <tr tal:repeat="ticket view/tickets">
    6687      <td tal:content="ticket/student/matric_number">MATRIC_NUMBER</td>
     88      <td tal:content="ticket/student/reg_number">REG_NUMBER</td>
    6789      <td tal:content="ticket/student/display_fullname">FULLNAME</td>
    6890      <td tal:content="ticket/student/translated_state">STATE</td>
Note: See TracChangeset for help on using the changeset viewer.