Index: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 5827)
+++ main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 5828)
@@ -31,5 +31,7 @@
 from waeup.sirp.browser.pages import LoginPage
 from waeup.sirp.interfaces import IWAeUPObject
-from waeup.sirp.browser.viewlets import AddActionButton
+from waeup.sirp.browser.viewlets import (
+    AddActionButton, ManageActionButton, PrimaryNavTab,
+    )
 from waeup.sirp.applicants import get_applicant_data, ResultEntry
 from waeup.sirp.applicants.interfaces import (
@@ -70,5 +72,5 @@
     grok.name('index')
     title = 'Applicants'
-    pnav = 1
+    pnav = 2
     
     def getApplications(self):
@@ -79,7 +81,41 @@
             yield(dict(url=url, name=key))
 
+class ManageApplicantsRootActionButton(ManageActionButton):
+    grok.context(IApplicantsRoot)
+    grok.view(ApplicationsPage)
+    text = 'Manage applicant containers'
+
+class ApplicantsRootEditPage(WAeUPPage):
+    grok.context(IApplicantsRoot)
+    grok.name('manage')
+    grok.template('applicantsrooteditpage')
+    title = 'Edit applicants containers'
+    pnav = 2
+
+    def update(self, entries=None, DELETE=None, CANCEL=None):
+        if CANCEL is not None:
+            self.redirect(self.url(self.context))
+            return
+        if DELETE is None:
+            return
+        if entries is None:
+            return
+        if not isinstance(entries, list):
+            entries = [entries]
+        for name in entries:
+            del self.context[name]
+            self.flash('Deleted "%s"' % name)
+        return
+
+    def getApplications(self):
+        """Get a list of all stored applicant containers.
+        """
+        for key, val in self.context.items():
+            url = self.url(val)
+            yield(dict(url=url, name=key))
+
 class AddApplicantsContainerActionButton(AddActionButton):
     grok.context(IApplicantsRoot)
-    grok.view(ApplicationsPage)
+    grok.view(ApplicantsRootEditPage)
     text = 'Add applicants container'
 
@@ -89,7 +125,8 @@
     grok.template('addcontainer')
     title = 'Add applicants container'
-    pnav = 1
-
-    def update(self, providername=None, name=None, ADD=None, CANCEL=None):
+    pnav = 2
+
+    def update(self, providername=None, name=None, title=None,
+               description=None, ADD=None, CANCEL=None):
         if CANCEL is not None:
             self.redirect(self.url(self.context))
@@ -107,4 +144,8 @@
                               name=providername)
         container = provider.factory()
+        if title:
+            container.title = title
+        if description:
+            container.description = description
         self.context[name] = container
         self.flash('Added "%s".' % name)
@@ -140,5 +181,22 @@
             ]
         return result
-        
+
+
+class ApplicantsTab(PrimaryNavTab):
+    """Faculties-tab in primary navigation.
+    """
+    grok.context(IWAeUPObject)
+    grok.order(3)
+    grok.require('waeup.View')
+    grok.template('primarynavtab')
+
+    pnav = 2
+    tab_title = u'Applicants'
+
+    @property
+    def link_target(self):
+        return self.view.application_url('applicants')
+
+
 #class AddApplicant(WAeUPAddFormPage):
 #    grok.context(IApplicantContainer)
@@ -174,5 +232,5 @@
     label = 'Applicant'
     title = 'Applicant'
-    pnav = 1
+    pnav = 2
 
 class EditApplicant(WAeUPEditFormPage):
