Changeset 4008

Show
Ignore:
Timestamp:
01/21/08 08:44:40 (1 year ago)
Author:
fredlin
Message:

toolbox2: update design template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/ToolBox2/trunk/ToolBox2.egg-info/PKG-INFO

    r4007 r4008  
    11Metadata-Version: 1.0 
    22Name: ToolBox2 
    3 Version: 2.0a3dev-r4006 
     3Version: 2.0a3dev-r4007 
    44Summary: TurboGears2 Toolbox 
    55Home-page: http://docs.turbogears.org/2.0/ToolBox 
  • projects/ToolBox2/trunk/toolbox2/gadgets/design/design.html

    r4006 r4008  
    3434        <h2 id="models">Models</h2> 
    3535        the data representation, define database tables and sets  
    36         <div id="model_manager" py:for="idx,file in enumerate(model)" class="${idx%2 and 'odd' or 'even'}"><table cellpadding="0" cellspacing="0" border="0"> 
    37                 <tr><td> 
     36        <div id="model_manager"><table cellpadding="0" cellspacing="0" border="0"> 
     37                <tr py:for="idx,file in enumerate(model)" class="${idx%2 and 'odd' or 'even'}"><td> 
    3838                    <span py:if="file['level']&gt;0" py:replace="'&nbsp;'*4*int(file['level'])">&nbsp;</span> 
    39                     <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> 
    40                     <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
    41                     <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> 
    42                     <a href="preview/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
     39                    <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
     40                    <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> <a href="preview/models/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
    4341                </td></tr> 
    4442            </table> 
     
    4846        <h2 id="controllers">Controllers</h2> 
    4947        the application logic, each URL path is mapped in one exposed method in the controller  
    50         <div id="controller_manager" py:for="idx,file in enumerate(controllers)" class="${idx%2 and 'odd' or 'even'}"><table cellpadding="0" cellspacing="0" border="0"> 
    51                 <tr><td> 
     48        <div id="controller_manager"> 
     49        <table cellpadding="0" cellspacing="0" border="0"> 
     50                <tr py:for="idx,file in enumerate(controllers)" class="${idx%2 and 'odd' or 'even'}"><td> 
    5251                    <span py:if="file['level']&gt;0" py:replace="'&nbsp;'*4*int(file['level'])">&nbsp;</span> 
    53                     <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> 
    54                     <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
    55                     <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> 
    56                     <a href="preview/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
     52                    <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
     53                    <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> <a href="preview/controllers/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
    5754                </td></tr> 
    5855            </table> 
     
    6259        <h2 id="views">Views</h2> 
    6360        the presentations layer, views are also known as templates 
    64         <div id="template_manager" py:for="idx,file in enumerate(views)" class="${idx%2 and 'odd' or 'even'}"><table cellpadding="0" cellspacing="0" border="0"> 
    65                 <tr><td> 
     61        <div id="template_manager"> 
     62        <table cellpadding="0" cellspacing="0" border="0"> 
     63                <tr py:for="idx,file in enumerate(views)" class="${idx%2 and 'odd' or 'even'}"><td> 
    6664                    <span py:if="file['level']&gt;0" py:replace="'&nbsp;'*4*int(file['level'])">&nbsp;</span> 
    67                     <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> 
    68                     <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
    69                     <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> 
    70                     <a href="preview/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
     65                    <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
     66                    <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> <a href="preview/views/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
    7167                </td></tr> 
    7268            </table> 
     
    8076        <h2 id="static">Static Files</h2> 
    8177        these files are served without processing, your images go here  
    82         <div id="static_manager" py:for="idx,file in enumerate(statics)" class="${idx%2 and 'odd' or 'even'}"><table cellpadding="0" cellspacing="0" border="0"> 
     78        <div id="static_manager"> 
     79            <table cellpadding="0" cellspacing="0" border="0"> 
     80                <tr py:for="idx,file in enumerate(statics)" class="${idx%2 and 'odd' or 'even'}"><td> 
     81                    <span py:if="file['level']&gt;0" py:replace="'&nbsp;'*4*int(file['level'])">&nbsp;</span> 
     82                    <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /> <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div> 
     83                    <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> <a href="preview/statics/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
     84                </td></tr> 
    8385                <tr><td> 
    84                     <span py:if="file['level']&gt;0" py:replace="'&nbsp;'*4*int(file['level'])">&nbsp;</span
    85                     <img src="/images/places/folder.png" width='16' height='16' py:if="file['isdir'] and file['level']&gt;1" alt="${idx}/" /
    86                     <div py:if="file['isdir'] and file['level']&gt;1" py:strip="">${file['file_name']}</div
    87                     <img src="/images/mimetypes/text-html.png"  width='16' height='16' py:if="not file['isdir']" alt="-" /> 
    88                     <a href="preview/${file['file_name']}" target="_blank" py:if="not file['isdir']">${file['file_name']}</a>  
     86                <form action="statics/receive" enctype="multipart/form-data" method="post"
     87                    <h2>Upload Static File</h2
     88                    File: <input name="myfile" type="file" /
     89                    <input type="submit" /> 
     90                </form> 
    8991                </td></tr> 
    9092            </table> 
    9193         </div> 
    92         <form action="statics/receive" enctype="multipart/form-data" method="post"> 
    93         <h2>Upload Static File</h2> 
    94         File: <input name="myfile" type="file" /> 
    95         <input type="submit" /> 
    96         </form> 
    9794    </div> 
    9895</body>