Changeset 2013 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
12 Jul 2007, 16:12:23 (17 years ago)
Author:
Henrik Bettermann
Message:

see ticket #102

Location:
WAeUP_SRP/trunk/skins
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/hall_delete.py

    r1566 r2013  
    1919from Products.CMFCore.utils import getToolByName
    2020here = context
    21 if context.portal_type == "University":
    22     here = context.academics
    2321
    2422ti = getToolByName(here, 'portal_types').getTypeInfo(here.portal_type)
  • WAeUP_SRP/trunk/skins/waeup_custom/folder_delete.py

    r1366 r2013  
    1313"""
    1414
     15import logging
     16logger = logging.getLogger('Skins.folder_delete')
     17member_id = str(context.portal_membership.getAuthenticatedMember())
     18
    1519from Products.CMFCore.utils import getToolByName
    1620here = context
    17 if context.portal_type == "University":
    18     here = context.academics
     21
     22#if context.portal_type == "University":
     23#    here = context.academics
    1924
    2025ti = getToolByName(here, 'portal_types').getTypeInfo(here.portal_type)
    2126meth_id = ti.queryMethodID('view', 'folder_contents')
    2227ret_url = here.absolute_url() + '/' + meth_id
     28
    2329
    2430
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py

    r1724 r2013  
    1010from Products.CMFCore.utils import getToolByName
    1111request = context.REQUEST
    12 if type_name in ("StudyLevel","StudentStudyLevel"):
     12
     13if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument"):
    1314    id = datamodel.get('code')
    1415else:
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt

    r1783 r2013  
    1313<metal:block define-macro="edit_form">
    1414<metal:block use-macro=template>
     15
     16
     17  <metal:block fill-slot="style_slot">
     18    <link rel="Stylesheet" type="text/css" href=""
     19      tal:attributes="href string:${base_url}document.css" />
     20
     21    <metal:block define-macro="widgets_javascript">
     22
     23    <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')">
     24      <script type="text/javascript">
     25        var popup_editor_form = 'popup_fckeditor_form';
     26        var width = 640;
     27        var height = 520;
     28      </script>
     29    </tal:block>
     30
     31    <script type="text/javascript">
     32     function popup_rte(input_id, label_edit) {
     33       var args, value;
     34       value = document.getElementById(input_id).value;
     35       args = '?input_id='+input_id+'&amp;label_edit='+escape(label_edit);
     36       str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height;
     37       popup = window.open(popup_editor_form + args, input_id, str_window_features);
     38       if (!popup.opener) {
     39         popup.opener = window;
     40       }
     41       return false;
     42     }
     43   </script>
     44   </metal:block>
     45  </metal:block>
     46
    1547 
    1648  <metal:block fill-slot="header">
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r1996 r2013  
    7676    info['clear_doc'].edit(mapping = {'cleared_date': current,})
    7777    wftool.doActionFor(info['student'],'clear_and_validate')
    78     psm = "Clearance and eligibility record is validated and and student is cleared!"
     78    psm = "Clearance and eligibility record is validated and student is cleared!"
    7979elif clear_and_validate_button and info['review_state'] == "cleared_and_validated":
    8080    psm = "This student is already cleared!"
Note: See TracChangeset for help on using the changeset viewer.