File:  [Repository] / cdli / zpt / uploadCheck.zpt
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Mon Feb 5 15:23:46 2007 UTC (17 years, 4 months ago) by dwinter
Branches: MAIN
CVS tags: zcat_only_1, Root_zcat_only_1, HEAD
changes locking

    1: <html metal:use-macro="here/main_template/macros/page">
    2: <tal:block metal:fill-slot="body">
    3: <form name="form" action="uploadATFfinally">
    4: <h2>Please check</h2>
    5: 
    6: <div tal:condition="python:(options['basketNameFromId']=='') and (not options['basketNameFromFile'])">
    7: <h3>No basket name!</h3>
    8: <p>There is no basket name in the file and you don't have selected an active basket, yet.</p>
    9: <p>You can store the file into a new basket. If you want to use an existing name please
   10: <a href="changeBasket">select an existing baske and upload again.</a></p>
   11: <p>Name of the new: <input name="basketname" size="80"></p>
   12: </div>
   13: 
   14: <div tal:condition="python:(options['basketNameFromId']=='') and (options['basketNameFromFile'])">
   15: <h3>File will be uploaded into the basket: <span tal:replace="python:options['basketNameFromFile']"/></h3>
   16: <input name="basketname" type="hidden" tal:attributes="value python:options['basketNameFromFile']">
   17: </div>
   18: 
   19: <div tal:condition="python:(not options['basketNameFromFile']==options['basketNameFromId']) and (not options['basketNameFromId']=='')">
   20: <h3>Basket names in file and selected basket not equal!</h3>
   21: <p>Select which basket should be used.</p>
   22: <p><input name="basketname" type="checkbox" checked tal:attributes="value python:options['basketNameFromId']">
   23: <span tal:replace="python:options['basketNameFromId']"/>(active basket).</p>
   24: <p><input name="basketname" type="checkbox" tal:attributes="value python:options['basketNameFromFile']">
   25: <span tal:replace="python:options['basketNameFromFile']"/>(basket name stored in the file).</p>
   26: </div>
   27: 
   28: <div tal:condition="python:(options['basketNameFromFile']==options['basketNameFromId']) and (not options['basketNameFromId']=='')">
   29: <h3>File will be uploaded into the basket: <span tal:replace="python:options['basketNameFromId']"/></h3>
   30: <input name="basketname" type="hidden" tal:attributes="value python:options['basketNameFromId']">
   31: </div>
   32: 
   33: <div tal:condition="python:(len(options['errors'])>0) or (len(options['lockerrors'])>0)">
   34: <h3><a id="changed">There were Errors!</a></h3>
   35: <p>Some files will not be uploaded (see below)!</p>
   36: </div>
   37: 
   38: 
   39: <input type="hidden" name="dir" tal:attributes="value options/dir">
   40: <p>Comment (will be added to all uploaded files)</p>
   41: <p><textarea name="comment" cols="60" rows="10"></textarea>
   42: <p><button name="procedureButton1" type="button" value="uploadchanged" onclick="forms.form.procedure.value='uploadchanged'; forms.form.submit()">Upload only the changed and new files.</button></p>
   43: <input type="hidden" name="procedure" value="">
   44: <!--<p><input id="procedure" name="procedure" type="radio" value="uploadAll">Upload all files.</p>-->
   45: <p><button name="procedureButton2" type="button" value="noupload" onclick="forms.form.procedure.value='noupload'; forms.form.submit()">Don't do anything.</button></p>
   46: <h3>Unlock?</h3>
   47: <p><input name="unlock" type="checkbox" checked> unlock the files.</p>
   48: 
   49: </form>
   50: <div tal:condition="python:len(options['lockerrors'])>0">
   51: <h3>Errors:</h3>
   52: <p>Files locked by somebody else, these files cannot be uploaded!</p>
   53: <table>
   54: <tr>
   55: 	<td>Title</td>
   56: 	<td>Locked by:</td>
   57: </tr>
   58: <tr tal:repeat="error python:options['lockerrors']">
   59: <td tal:content="python:error[0]"/>	
   60: <td><span tal:replace="python:error[1]"/>
   61: </td>
   62: </tr>
   63: </table>
   64: </div>
   65: <div tal:condition="python:len(options['errors'])>0">
   66: <h3>Errors:</h3>
   67: <table>
   68: <tr>
   69: 	<td>Title</td>
   70: 	<td>Error:</td>
   71: </tr>
   72: <tr tal:repeat="error python:options['errors']">
   73: <td tal:content="python:error[0]"/>	
   74: <td><span tal:replace="python:error[1]"/>
   75: </td>
   76: </tr>
   77: </table>
   78: </div>
   79: 
   80: <h3>Number Of Files</h3>
   81: <p>Basket contains <span tal:replace="python:options['basketLen']"/> files.</p>
   82: <p>Upload file contains <span tal:replace="python:options['numberOfFiles']"/> files.</p>
   83: 
   84: <h3><a id="changed">Changed files</a></h3>
   85: <p><span tal:replace="python:len(options['changed'])"/> Files changed.</p>
   86: 
   87: <table>
   88: <tr>
   89: 	<td>Title</td>
   90: 	<td>Changed lines (approx.)</td>
   91: </tr>
   92: <tr tal:repeat="change python:options['changed']">
   93: <td tal:content="python:change[0]"/>	
   94: <td><span tal:replace="python:change[1]"/>
   95: </td>
   96: </tr>
   97: </table>	
   98: <tal:x condition="python:len(options['newPs'])>0">
   99: <h3><a id="new">New</a></h3>
  100: <p tal:repeat="newP python:options['newPs']" tal:content="newP"/>
  101: </tal:x>
  102: </tal:block>
  103: </html>

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