folders.tmpl
branchxbelweb
changeset 47 2781ac85b807
parent 46 d3c1de4d929e
child 50 5275135955c0
equal deleted inserted replaced
46:d3c1de4d929e 47:2781ac85b807
     2 <html>
     2 <html>
     3   <TMPL_INCLUDE NAME="headers.tmpl">
     3   <TMPL_INCLUDE NAME="headers.tmpl">
     4   <body>
     4   <body>
     5     <h1><TMPL_VAR remote_user>'s XBelWeb</h1>
     5     <h1><TMPL_VAR remote_user>'s XBelWeb</h1>
     6     <TMPL_UNLESS folder>
     6     <TMPL_UNLESS folder>
     7       <p><TMPL_LOOP Parents><a href="?folder=<TMPL_VAR id>"><TMPL_VAR name></a>
     7       <p><TMPL_LOOP Parents><a href="?view=folder;folder=<TMPL_VAR id>"><TMPL_VAR name></a>
     8         : </TMPL_LOOP></p>
     8         : </TMPL_LOOP></p>
     9     </TMPL_UNLESS>
     9     </TMPL_UNLESS>
    10     <h2><TMPL_IF folder><TMPL_VAR name><TMPL_ELSE>Main Folder</TMPL_IF>
    10     <h2><TMPL_IF folder><TMPL_VAR name><TMPL_ELSE>Main Folder</TMPL_IF>
    11     (<TMPL_VAR total>)</h2>
    11     (<TMPL_VAR total>)</h2>
    12     <DIV class="subfolders">
    12     <DIV class="subfolders">
       
    13     <form action="index.py" method="post" name="edit_folders">
       
    14     <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
       
    15     <input type="hidden" name="view" value="folder"/>
       
    16     <input type="hidden" name="action" value="delete"/>
    13     <ul>
    17     <ul>
    14     <TMPL_LOOP Subfolders>
    18     <TMPL_LOOP Subfolders>
    15       <li><a href="folders.py?folder=<TMPL_VAR id>"><TMPL_VAR name>
    19       <li><a href="index.py?view=folder;folder=<TMPL_VAR id>"><TMPL_VAR name>
    16       	(<TMPL_VAR count>)</a>
    20       	(<TMPL_VAR count>)</a>
    17 	<a href="delete_folders.py?folder=<TMPL_VAR id>">delete</a></li>
    21 	<button name="delete" value="<TMPL_VAR id>">Delete</button></li>
    18     </TMPL_LOOP>
    22     </TMPL_LOOP>
    19     </ul>
    23     </ul>
       
    24     </form>
    20     </div>
    25     </div>
    21     <form action="folders.py" method="post" name="folders">
    26     <form action="index.py" method="post" name="add_folder">
    22       <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
    27       <input type="hidden" name="folder" value="<TMPL_VAR folder>"/>
       
    28       <input type="hidden" name="view" value="folder"/>
    23       <label>Add subfolder with keyword:
    29       <label>Add subfolder with keyword:
    24 	<select name="sel" size="1">
    30 	<select name="sel" size="1">
    25 	<TMPL_LOOP Keywords>
    31 	<TMPL_LOOP Keywords>
    26 	  <option value="<TMPL_VAR id>"
    32 	  <option value="<TMPL_VAR id>"
    27 	    ><TMPL_VAR keyword> (<TMPL_VAR count>)</option>
    33 	    ><TMPL_VAR keyword> (<TMPL_VAR count>)</option>
    29 	<button name="action" value="add">Add</button>
    35 	<button name="action" value="add">Add</button>
    30     </form>
    36     </form>
    31     <hr>
    37     <hr>
    32     <TMPL_INCLUDE NAME="bkmarks.tmpl">
    38     <TMPL_INCLUDE NAME="bkmarks.tmpl">
    33     <hr>
    39     <hr>
       
    40     <a href="?view=dynamic">Switch to dynamic view</a>
       
    41     <TMPL_INCLUDE NAME="footers.tmpl">
    34   </body>
    42   </body>
    35 </html>
    43 </html>
    36 <!-- Keep this comment at the end of the file
    44 <!-- Keep this comment at the end of the file
    37 Local variables:
    45 Local variables:
    38 mode: sgml
    46 mode: sgml