Index: /waeup/branches/ulif-layout/src/waeup/browser/pages.py
===================================================================
--- /waeup/branches/ulif-layout/src/waeup/browser/pages.py	(revision 4710)
+++ /waeup/branches/ulif-layout/src/waeup/browser/pages.py	(revision 4711)
@@ -12,5 +12,5 @@
 from waeup.interfaces import (IUniversity, IWAeUPObject, IUserContainer,
                               IUserAccount, IFacultyContainer, IDataCenter,
-                              IFaculty)
+                              IFaculty, IDepartment)
 from waeup.widgets.interfaces import ITableProvider
 from waeup.utils.helpers import getName
@@ -435,2 +435,46 @@
         self.table = ITableProvider(self.context).getTables(view=self)[0]
         self.table.need()
+
+class AddDepartmentFormPage(WAeUPAddFormPage):
+    grok.context(IFaculty)
+    grok.name('add')
+    form_fields = grok.AutoFields(IDepartment)
+    title = 'Add a department'
+    pnav = 1
+    
+    @grok.action('Add department')
+    def addDepartment(self, **data):
+        department = createObject(u'waeup.Department')
+        self.applyData(department, **data)
+        try:
+            self.context.addDepartment(department)
+        except DuplicationError:
+            self.status = Invalid('The name chosen already exists '
+                                  'in the database')
+            return
+        self.redirect(self.url(self.context))
+
+class ManageDepartmentFormPage(WAeUPEditFormPage):
+    """Manage the basic properties of a `Faculty` instance.
+    """
+    grok.context(IFaculty)
+    grok.name('manage')
+    form_fields = grok.AutoFields(IFaculty)
+    title = 'Edit faculty'
+    pnav = 1
+
+    @grok.action('Save')
+    def save(self, **data):
+        self.applyData(self.context, **data)
+        return
+    
+    @grok.action('Save and return')
+    def saveAndReturn(self, **data):
+        self.applyData(self.context, **data)
+        self.redirect(self.url(self.context))
+        return
+
+    @grok.action('Cancel')
+    def cancel(self, **data):
+        self.redirect(self.url(self.context))
+        return
