Ignore:
Timestamp:
10 Mar 2016, 07:57:24 (9 years ago)
Author:
Henrik Bettermann
Message:

Improve AddStudyLevelFormPage.

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

Legend:

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

    r13766 r13773  
    26122612        except KeyError:
    26132613            self.flash(_('This level exists.'), type="warning")
     2614            self.redirect(self.url(self.context))
     2615            return
    26142616        except RequiredMissing:
    2615             self.flash(_('Your data are incomplete'), type="danger")
    2616         self.redirect(self.url(self.context))
     2617            self.flash(_('Your data are incomplete.'), type="danger")
     2618            self.redirect(self.url(self.context))
     2619            return
     2620        self.flash(_('You successfully created a new course list.'))
     2621        self.redirect(self.url(self.context, str(studylevel.level)))
    26172622        return
    26182623
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studyleveladdpage.pt

    r7811 r13773  
    22      i18n:domain="waeup.kofa" enctype="multipart/form-data">
    33
    4   <p i18n:translate="">Text to explain course registration procedure.</p>
     4  <p i18n:translate="">In Kofa a study level is a container for courses,
     5  which means it can list the courses taken by the student at a certain level.
     6  The container also
     7  stores and provides the information when and by whom the course list was
     8  validated, in which session the level was taken and which verdict the
     9  student finally obtained.
     10  </p>
    511
    612  <div class="actionButtons" tal:condition="view/availableActions">
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r13769 r13773  
    26592659                           self.browser.contents)
    26602660        self.browser.getControl("Create course list now").click()
     2661        self.assertTrue("You successfully created a new course list"
     2662            in self.browser.contents)
    26612663        # A level with one course ticket was created
    26622664        self.assertEqual(self.student['studycourse']['999'].number_of_tickets, 0)
    2663         self.browser.getLink("999").click()
    26642665        self.browser.getLink("Edit course list").click()
    26652666        self.browser.getLink("here").click()
Note: See TracChangeset for help on using the changeset viewer.