Ignore:
Timestamp:
28/04/09 15:03:55 (11 years ago)
Author:
cbyrom
Message:

Various tidy ups of editor code - including restricting editing rights
to non-admin users of editor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/templates/provider_info.html

    r5236 r5237  
    3636                </span> 
    3737                <span py:if="not editLink"><td /><td /></span> 
    38                 <div py:replace="EditTextField(PI.NAME_ATT_NAME, record.name, isEditable, constants.TEXT_FIELD, width='20%')"/> 
     38                <?python 
     39adminEdit = False 
     40if c.user.isAdmin and isEditable: 
     41        adminEdit = True 
     42                ?> 
     43                <div py:replace="EditTextField(PI.NAME_ATT_NAME, record.name, adminEdit, constants.TEXT_FIELD, width='20%')"/> 
     44                <input py:if="not adminEdit" type="hidden" name="${PI.NAME_ATT_NAME}" value="${record.name}"/> 
    3945        </tr> 
    4046        <tr py:if="record.repositoryInfos or isEditable"> 
Note: See TracChangeset for help on using the changeset viewer.