Changeset 7465 for main/waeup.sirp/trunk
- Timestamp:
- 13 Jan 2012, 07:50:34 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7461 r7465 146 146 grok.context(ISIRPObject) 147 147 grok.require('waeup.Public') 148 title = u'Login' 149 label = title 148 label = u'Login' 150 149 camefrom = None 151 150 … … 205 204 return grok.getSite()['configuration'] 206 205 207 def title(self):206 def label(self): 208 207 return u'Contact %s' % self.config.name_admin 209 210 def label(self):211 return self.title()212 208 213 209 @property … … 271 267 272 268 @property 273 def title(self):274 return "Welcome"275 276 @property277 269 def label(self): 278 270 return self.context['configuration'].title … … 291 283 grok.context(IUniversity) 292 284 grok.require('waeup.manageUniversity') 293 title= u'Administration'285 label = u'Administration' 294 286 pnav = 0 295 287 … … 338 330 grok.context(IUsersContainer) 339 331 grok.name('index') 340 title= 'Portal Users'332 label = 'Portal Users' 341 333 342 334 def update(self, userid=None, adduser=None, manage=None, delete=None): … … 376 368 form_fields = grok.AutoFields(IUserAccount) 377 369 label = 'Add user' 378 title = 'Portal Users'379 370 380 371 @action('Add user', style='primary') … … 416 407 form_fields = grok.AutoFields(IUserAccount).omit('name') 417 408 418 title = "Portal Users"419 420 409 def label(self): 421 410 return "Edit user %s" % self.context.__name__ … … 456 445 pnav = 0 457 446 form_fields = grok.AutoFields(IContactForm).select('body') 458 title = u'Contact'459 447 460 448 def label(self): … … 494 482 self.widgets['title'].displayWidth = 30 495 483 496 def title(self):497 return "%s (%s)" % (self.context.title, self.context.__name__)498 499 484 class MyRolesPage(SIRPPage): 500 485 """Display site roles and local roles assigned to officers. … … 504 489 grok.context(IUserAccount) 505 490 grok.template('myrolespage') 506 title = 'Portal Users'507 491 label = u"My Roles" 508 509 def title(self):510 return "%s (%s)" % (self.context.title, self.context.__name__)511 492 512 493 @property … … 540 521 grok.template('searchpage') 541 522 grok.require('waeup.manageUniversity') 542 title = u"Academics"543 523 label = u"Search Academic Section" 544 524 pnav = 1 … … 568 548 pnav = 0 569 549 label = u'View portal configuration' 570 title = u'Portal Configuration'571 550 form_fields = grok.AutoFields(IConfigurationContainer) 572 551 form_fields['frontpage'].custom_widget = ReSTDisplayWidget … … 582 561 pnav = 0 583 562 label = u'Edit portal configuration' 584 title = u'Portal Configuration'585 563 taboneactions = ['Save', 'Update plugins'] 586 564 tabtwoactions = [ … … 634 612 grok.require('waeup.managePortalConfiguration') 635 613 label = 'Add session configuration' 636 title = 'Configuration'637 614 form_fields = grok.AutoFields(ISessionConfigurationAdd) 638 615 pnav = 0 … … 665 642 666 643 @property 667 def title(self):668 session_string = self.context.getSessionString()669 return 'Academic Session %s Configuration' % session_string670 671 @property672 644 def label(self): 673 645 session_string = self.context.getSessionString() … … 694 666 grok.name('index') 695 667 grok.require('waeup.manageUniversity') 696 title= u'Data Center'668 label = u'Data Center' 697 669 pnav = 0 698 670 … … 701 673 grok.name('upload') 702 674 grok.require('waeup.manageUniversity') 703 title = u'Data Center'704 675 label = u'Upload file' 705 676 pnav = 0 … … 748 719 grok.template('datacenterimport1page') 749 720 grok.require('waeup.manageUniversity') 750 title = u'Data Center'751 721 label = u'Process CSV file' 752 722 pnav = 0 … … 778 748 grok.template('datacenterimport2page') 779 749 grok.require('waeup.manageUniversity') 780 title = u'Data Center'781 750 label = u'Process CSV file' 782 751 pnav = 0 … … 896 865 grok.template('datacenterimport3page') 897 866 grok.require('waeup.manageUniversity') 898 title = u'Data Center'899 867 label = u'Process CSV file' 900 868 pnav = 0 … … 1000 968 grok.template('datacenterimport4page') 1001 969 grok.require('waeup.manageUniversity') 1002 title = u'Data Center'1003 970 label = u'Process CSV file' 1004 971 pnav = 0 … … 1055 1022 grok.template('datacenterlogspage') 1056 1023 grok.require('waeup.manageUniversity') 1057 title = u'Data Center'1058 1024 label = u'Show logfiles' 1059 1025 pnav = 0 … … 1078 1044 title = u'Data Center' 1079 1045 pnav = 0 1046 1047 def label(self): 1048 return "Logfile %s" % self.filename 1080 1049 1081 1050 def update(self, show=None, remove=None, back=None): … … 1095 1064 grok.template('datacentermanagepage') 1096 1065 grok.require('waeup.manageUniversity') 1097 title = u'Data Center'1098 1066 label = 'Edit data center settings' 1099 1067 pnav = 0 … … 1179 1147 grok.require('waeup.viewAcademics') 1180 1148 grok.name('index') 1181 title = 'Academics'1182 1149 label = 'Academic Section' 1183 1150 pnav = 1 … … 1194 1161 taboneactions = ['Add faculty', 'Remove selected','Cancel'] 1195 1162 subunits = 'Faculties' 1196 title = 'Academics'1197 1163 1198 1164 @property … … 1228 1194 grok.name('add') 1229 1195 label = 'Add faculty' 1230 title = 'Academics'1231 1196 form_fields = grok.AutoFields(IFacultyAdd) 1232 1197 pnav = 1 … … 1259 1224 1260 1225 @property 1261 def title(self):1262 return self.context.longtitle()1263 1264 @property1265 1226 def label(self): 1266 1227 return 'Departments' … … 1285 1246 def label(self): 1286 1247 return 'Manage faculty' 1287 1288 @property1289 def title(self):1290 return self.context.longtitle()1291 1248 1292 1249 def update(self): … … 1347 1304 form_fields = grok.AutoFields(IDepartmentAdd) 1348 1305 pnav = 1 1349 1350 @property1351 def title(self):1352 return self.context.longtitle()1353 1306 1354 1307 @action('Add department', style='primary') … … 1380 1333 label = 'Courses and Certificates' 1381 1334 1382 @property1383 def title(self):1384 return self.context.longtitle()1385 1386 1335 def update(self): 1387 1336 tabs.need() … … 1413 1362 pnav = 1 1414 1363 label = 'Students' 1415 1416 @property1417 def title(self):1418 return self.context.longtitle()1419 1364 1420 1365 @property … … 1464 1409 return 'Manage department' 1465 1410 1466 @property1467 def title(self):1468 return self.context.longtitle()1469 1470 1411 def getCourses(self): 1471 1412 """Get a list of all stored courses. … … 1552 1493 form_fields = grok.AutoFields(ICourseAdd) 1553 1494 pnav = 1 1554 1555 @property1556 def title(self):1557 return self.context.longtitle()1558 1495 1559 1496 @action('Add course') … … 1594 1531 pnav = 1 1595 1532 1596 @property1597 def title(self):1598 return self.context.longtitle()1599 1600 1533 @action('Add certificate') 1601 1534 def addCertificate(self, **data): … … 1639 1572 1640 1573 @property 1641 def title(self):1642 return ' Course:%s (%s)' % (self.context.title, self.context.code)1574 def label(self): 1575 return '%s (%s)' % (self.context.title, self.context.code) 1643 1576 1644 1577 class CourseManageFormPage(SIRPEditFormPage): … … 1652 1585 1653 1586 form_fields = grok.AutoFields(ICourse) 1654 1655 @property1656 def title(self):1657 return 'Course: %s (%s)' % (self.context.title, self.context.code)1658 1587 1659 1588 @action('Save', style='primary') … … 1687 1616 1688 1617 @property 1689 def title(self):1690 return " Certificate:%s (%s)" % (self.context.title, self.context.code)1618 def label(self): 1619 return "%s (%s)" % (self.context.title, self.context.code) 1691 1620 1692 1621 def update(self): … … 1719 1648 return 'Manage certificate' 1720 1649 1721 @property1722 def title(self):1723 return "Certificate: %s (%s)" % (self.context.title, self.context.code)1724 1725 1650 def update(self): 1726 1651 tabs.need() … … 1783 1708 pnav = 1 1784 1709 label = 'Add course referrer' 1785 1786 @property1787 def title(self):1788 return "Certificate: %s (%s)" % (self.context.title, self.context.code)1789 1710 1790 1711 @action('Add course referrer') … … 1817 1738 1818 1739 @property 1819 def title(self):1820 return ' Course Referrer:%s' % (self.context.longtitle())1740 def label(self): 1741 return '%s' % (self.context.longtitle()) 1821 1742 1822 1743 @property … … 1833 1754 label = 'Edit course referrer' 1834 1755 pnav = 1 1835 1836 @property1837 def title(self):1838 return 'Course Referrer: %s' % (self.context.__name__)1839 1756 1840 1757 @action('Save and return') -
main/waeup.sirp/trunk/src/waeup/sirp/browser/static/mobile.css
r7459 r7465 1 1 .container { 2 width: 480px;2 width: 300px; 3 3 } 4 4 5 5 body { 6 padding-top: 60px;6 padding-top: 70px; 7 7 } 8 8 -
main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css
r7459 r7465 69 69 width: 180px; 70 70 } 71 72 h1 { 73 font-size: 26px; 74 } 75 h2 { 76 font-size: 22px; 77 } 78 h3 { 79 font-size: 16px; 80 } 81 h4 { 82 font-size: 14px; 83 } 84 h5 { 85 font-size: 13px; 86 } 87 h6 { 88 font-size: 12px; 89 } 90 91 71 92 72 93 /* IE doesn't like the footer tag*/ -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/administrationpage.pt
r6907 r7465 1 <h2>Administration</h2>2 3 1 <p> 4 2 You can manage the following tasks: -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatecoursepage.pt
r7459 r7465 1 <h2 tal:content="context/longtitle">TITLE</h2>2 3 1 <table class="form-table"> 4 2 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatepage.pt
r7459 r7465 1 <h2 tal:content="context/longtitle">TITLE</h2>2 3 1 <table class="form-table"> 4 2 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/coursepage.pt
r7459 r7465 1 <h2 tal:content="context/title">TITLE</h2>2 3 1 <table class="form-table"> 4 2 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterlogsshowfilepage.pt
r7459 r7465 1 <h2>2 Logfile <span tal:replace="view/filename">file.csv</span>3 </h2>4 5 1 <form method="POST"> 6 2 <input class="btn primary" type="submit" name="back" value="Back" /> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterpage.pt
r7459 r7465 1 <h2>Data Center</h2>2 3 1 <p> 4 2 The data center helps you to manage portal data. You can upload CSV -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/userscontainerpage.pt
r7459 r7465 1 <h2>Portal Users</h2>2 3 1 <table> 4 2 <thead>
Note: See TracChangeset for help on using the changeset viewer.