File:  [Repository] / cdli / zpt / editATFFile.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Jan 21 17:19:01 2008 UTC (16 years, 5 months ago) by casties
Branches: MAIN
CVS tags: HEAD
merged zcat_only branch based on Zope ZCatalog

    1: <html metal:use-macro="here/main_template/macros/page">
    2:     <tal:block metal:fill-slot="body" define="query python:here.REQUEST.QUERY_STRING;
    3:                                               vars python:query.split('&');
    4:                                               allVars python:map(lambda x: x.split('='), vars);
    5:                                               allVarsF python:filter(lambda x: not x == [''], allVars);
    6:                                               dictVars python:dict(allVarsF);
    7:                                               parent here/aq_parent;
    8:                                               p_no python:here.REQUEST.get('fileId',here.aq_parent.title.split('.')[0])">
    9:   
   10:   <h2>Edit ATF for Text <span tal:content="p_no"/></h2>
   11:       
   12:   <h3>You must not change the P-number!</h3>
   13: 
   14:   <p>File Name: <span tal:replace="here/getId"/> (version <span tal:replace="here/versionNumber"/>)</p>
   15: 
   16:   <div tal:condition="python:here.lockedBy==''">
   17:     <form action="manage_addVersionedFileObject" method="post">
   18:     <input type="hidden" name="id" value="None"/>
   19:     
   20:    <p>Author <input name="author" type="text" cols="30" tal:attributes="value here/lastEditor"/></p>
   21:    <p>Text<br/>
   22:    <textarea name="file" cols="80" rows="20" tal:content="here/getData"/>
   23:    </p> 
   24:   <p>Version Comment<br/>
   25:      <textarea type="text" cols=80 rows=5 name="vC"></textarea>
   26:    </p>
   27:    <p><input type="submit"/></p>
   28: </form>
   29: </div>
   30:     </tal:block>
   31: 
   32:  </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>