Changeset 13938 for main


Ignore:
Timestamp:
14 Jun 2016, 17:50:49 (9 years ago)
Author:
Henrik Bettermann
Message:

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

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/fileupload.pt

    r13936 r13938  
    2323                                <div class="btn btn-default btn-file" i18n:translate="">
    2424          Select new file&hellip;
    25           <input type="file" tal:attributes="name viewlet/input_name" />
     25          <input i18n:name="input_name"
     26                 type="file" tal:attributes="name viewlet/input_name" />
    2627        </div>
    2728                        </div>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r13936 r13938  
    30903090
    30913091    def label(self):
    3092         session = academic_sessions_vocab.getTerm(
    3093             self.current_academic_session).title
    30943092        return '%s tickets in academic session %s' % (
    3095             self.context.code, session)
     3093            self.context.code, self.session_title)
    30963094
    30973095    def _searchCatalog(self, session):
     
    31333131            self.redirect(self.url(self.context))
    31343132            return
     3133        self.session_title = academic_sessions_vocab.getTerm(
     3134            self.current_academic_session).title
    31353135        self.tickets = self._searchCatalog(self.current_academic_session)
    31363136        editable_tickets = [
     
    31843184                    'updated (only integers are allowed): %s.' % error.strip(', ')),
    31853185                type="danger")
     3186            return
     3187        self.flash(_('You successfully updated course results.'))
    31863188        return
    31873189
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/editscorespage.pt

    r13936 r13938  
    33  You can either update scores by importing a csv file
    44  (press 'Help' for further information) or by
    5   changing score values in the table below. Only scores of students
    6   in state 'courses validated' and current academic session
     5  changing score values in the table below. Only scores
     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>
     
    3840                  aria-hidden="true">&times;</button>
    3941          <h4 class="modal-title" id="myModalLabel" i18n:translate="">
    40             Instructions for File Upload
     42            Step-by-step instructions
    4143          </h4>
    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 -->
Note: See TracChangeset for help on using the changeset viewer.