source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/applications/admin/views/default/pack_custom.html

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 1.1 KB
Line 
1{{extend 'layout.html'}}
2{{import os}}
3
4{{def tree(path):}}
5    <input type="checkbox" onclick="jQuery(this).parent().find(':checkbox').attr('checked',this.checked)" checked="checked"/>
6    <a href="#" onclick="jQuery(this).next().slideToggle();return false;">
7      {{=path[len(base):] or '/%s' % app}}
8    </a>
9    <ul class="collapsible">
10      {{for file in files[path]['files']:}}
11       <li style="list-style-type: none;">
12     {{p = os.path.relpath(os.path.join(path,file),base)}}
13     <input type="checkbox" value="{{=p}}" name="file" checked="checked"/>
14     {{=file}}
15       </li>
16       {{pass}}
17       {{for dir in files[path]['folders']:}}
18       <li style="list-style-type: none;">
19     {{tree(os.path.join(path,dir))}}
20       </li>
21       {{pass}}
22    </ul>
23    {{return}}
24
25<form action="{{=URL(args=request.args)}}" method="POST">
26<h2>{{=T('Select Files to Package')}}</h2>
27<input type="submit" value="{{=T('Download .w2p')}}" class="btn"/>
28<input type="submit" name="doexe" value="{{=T('Download as .exe')}}" class="btn"/>
29<div style="margin-top:20px">
30{{tree(base)}}
31</div>
32</form>
33<script>jQuery(function(){jQuery('.collapsible').hide();});</script>
Note: See TracBrowser for help on using the repository browser.