Changeset 2940

Show
Ignore:
Timestamp:
02/21/07 19:00:35 (2 years ago)
Author:
mscott
Message:

Some common structure between pages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/index.html

    r2929 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head
    4         <title>Databases</title> 
    5     </head
    6     <body> 
    7         <div id="breadcrumbs"> 
    8             <a href="${h.url_for('databases')}">Databases</a> 
    9         </div
    10                  
    11                <ul
    12                    % for db_id, db in c.dbs.iteritems(): 
    13                        <li> 
    14                            <a href="${h.url_for('database', id=db_id)}">${h.label(db)}</a
    15                        </li
    16                    % endfor 
    17                </ul> 
    18     </body
    19 </html
     1<%inherit file="/base.html"/>     
     2 
     3<%def name="title()"
     4    Databases 
     5</%def
     6 
     7<%def name="parents()"> 
     8    <a href="${h.url_for('databases')}">Databases</a> 
     9</%def
     10 
     11<%def name="children()"
     12        <ul> 
     13            % for db_id, db in c.dbs.iteritems(): 
     14                <li
     15                    <a href="${h.url_for('database', id=db_id)}">${h.label(db)}</a
     16                </li> 
     17            % endfor 
     18       </ul
     19</%def
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/show.html

    r2929 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title>${h.label(c.db)} &larr; Databases</title> 
    5     </head> 
    6     <body> 
    7         <div id="breadcrumbs"> 
    8             <a href="${h.url_for('databases')}">Databases</a> 
    9             &rarr; 
    10             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    11         </div> 
     1<%inherit file="/base.html"/> 
    122 
    13                 <ul> 
    14                         <li> 
    15                                 <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    16                         </li> 
    17                 </ul> 
    18     </body> 
    19 </html> 
     3<%def name="title()"> 
     4    ${h.label(c.db)}  
     5    &larr;  
     6    Databases 
     7</%def> 
     8 
     9<%def name="parents()"> 
     10    <a href="${h.url_for('databases')}">Databases</a> 
     11    &rarr; 
     12    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     13</%def> 
     14 
     15<%def name="children()"> 
     16        <ul> 
     17                <li> 
     18                        <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     19                </li> 
     20        </ul> 
     21</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/index.html

    r2938 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             Queries 
    6             &larr; 
    7             ${h.plural(c.extent)} 
    8             &larr; 
    9             Extents 
    10             &larr; 
    11             ${h.label(c.db)} 
    12             &larr; 
    13             Databases 
    14         </title> 
    15     </head> 
    16     <body> 
    17         <div id="breadcrumbs"> 
    18             <a href="${h.url_for('databases')}">Databases</a> 
    19             &rarr; 
    20             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    21             &rarr; 
    22             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    23             &rarr; 
    24             <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    25                 >${h.plural(c.extent)}</a> 
    26             &rarr; 
    27             <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    28                 >Queries</a> 
    29         </div> 
    30          
    31                 <ul> 
    32                     % for name in c.extent.q: 
    33                         <li> 
    34                             <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    35                                 >${h.label(c.extent.q[name])}</a> 
    36                         </li> 
    37                     % endfor 
    38                 </ul> 
    39     </body> 
    40 </html> 
     1<%inherit file="/base.html"/>     
     2 
     3<%def name="title()"> 
     4    Queries 
     5    &larr; 
     6    ${h.plural(c.extent)} 
     7    &larr; 
     8    Extents 
     9    &larr; 
     10    ${h.label(c.db)} 
     11    &larr; 
     12    Databases 
     13</%def> 
     14 
     15<%def name="parents()"> 
     16    <a href="${h.url_for('databases')}">Databases</a> 
     17    &rarr; 
     18    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     19    &rarr; 
     20    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     21    &rarr; 
     22    <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     23        >${h.plural(c.extent)}</a> 
     24    &rarr; 
     25    <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     26        >Queries</a> 
     27</%def> 
     28 
     29<%def name="children()"> 
     30        <ul> 
     31            % for name in c.extent.q: 
     32                <li> 
     33                    <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
     34                        >${h.label(c.extent.q[name])}</a> 
     35                </li> 
     36            % endfor 
     37        </ul> 
     38</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/show.html

    r2938 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             ${h.label(c.method)} 
    6             &larr; 
    7             Queries 
    8             &larr; 
    9             ${h.plural(c.extent)} 
    10             &larr; 
    11             Extents 
    12             &larr; 
    13             ${h.label(c.db)} 
    14             &larr; 
    15             Databases 
    16         </title> 
    17     </head> 
    18     <body> 
    19         <div id="breadcrumbs"> 
    20             <a href="${h.url_for('databases')}">Databases</a> 
    21             &rarr; 
    22             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    23             &rarr; 
    24             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    25             &rarr; 
    26             <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    27                 >${h.plural(c.extent)}</a> 
    28             &rarr; 
    29             <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    30                 >Queries</a> 
    31             &rarr; 
    32             <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    33                 >${h.label(c.method)}</a> 
    34         </div> 
     1<%inherit file="/base.html" /> 
    352 
    36         <form method="POST" action="${h.url_for('extent_call_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}"> 
    37             <input type="submit" value="Call" /> 
    38         </form> 
    39              
    40     </body> 
    41 </html> 
     3<%def name="title()"> 
     4    ${h.label(c.method)} 
     5    &larr; 
     6    Queries 
     7    &larr; 
     8    ${h.plural(c.extent)} 
     9    &larr; 
     10    Extents 
     11    &larr; 
     12    ${h.label(c.db)} 
     13    &larr; 
     14    Databases 
     15</%def> 
     16 
     17<%def name="parents()"> 
     18    <a href="${h.url_for('databases')}">Databases</a> 
     19    &rarr; 
     20    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     21    &rarr; 
     22    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     23    &rarr; 
     24    <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     25        >${h.plural(c.extent)}</a> 
     26    &rarr; 
     27    <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     28        >Queries</a> 
     29    &rarr; 
     30    <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
     31        >${h.label(c.method)}</a> 
     32</%def> 
     33 
     34<form method="POST" action="${h.url_for('extent_call_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}"> 
     35    <input type="submit" value="Call" /> 
     36</form> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/index.html

    r2938 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             Transactions 
    6             &larr; 
    7             ${h.plural(c.extent)} 
    8             &larr; 
    9             Extents 
    10             &larr; 
    11             ${h.label(c.db)} 
    12             &larr; 
    13             Databases 
    14         </title> 
    15     </head> 
    16     <body> 
    17         <div id="breadcrumbs"> 
    18             <a href="${h.url_for('databases')}">Databases</a> 
    19             &rarr; 
    20             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    21             &rarr; 
    22             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    23             &rarr; 
    24             <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    25                 >${h.plural(c.extent)}</a> 
    26             &rarr; 
    27             <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    28                 >Transactions</a> 
    29         </div> 
    30          
    31                 <ul> 
    32                     % for name in c.extent.t: 
    33                         <li> 
    34                             <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    35                                 >${h.label(c.extent.t[name])}</a> 
    36                         </li> 
    37                     % endfor 
    38                 </ul> 
    39     </body> 
    40 </html> 
     1<%inherit file="/base.html"/>     
     2 
     3<%def name="title()"> 
     4    Transactions 
     5    &larr; 
     6    ${h.plural(c.extent)} 
     7    &larr; 
     8    Extents 
     9    &larr; 
     10    ${h.label(c.db)} 
     11    &larr; 
     12    Databases 
     13</%def> 
     14 
     15<%def name="parents()"> 
     16    <a href="${h.url_for('databases')}">Databases</a> 
     17    &rarr; 
     18    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     19    &rarr; 
     20    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     21    &rarr; 
     22    <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     23        >${h.plural(c.extent)}</a> 
     24    &rarr; 
     25    <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     26        >Transactions</a> 
     27</%def> 
     28 
     29<%def name="children()"> 
     30        <ul> 
     31            % for name in c.extent.t: 
     32                <li> 
     33                    <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
     34                        >${h.label(c.extent.t[name])}</a> 
     35                </li> 
     36            % endfor 
     37        </ul> 
     38</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/show.html

    r2935 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             ${h.label(c.method)} 
    6             &larr; 
    7             Transactions 
    8             &larr; 
    9             ${h.plural(c.extent)} 
    10             &larr; 
    11             Extents 
    12             &larr; 
    13             ${h.label(c.db)} 
    14             &larr; 
    15             Databases 
    16         </title> 
    17     </head> 
    18     <body> 
    19         <div id="breadcrumbs"> 
    20             <a href="${h.url_for('databases')}">Databases</a> 
    21             &rarr; 
    22             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    23             &rarr; 
    24             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    25             &rarr; 
    26             <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    27                 >${h.plural(c.extent)}</a> 
    28             &rarr; 
    29             <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    30                 >Transactions</a> 
    31             &rarr; 
    32             <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    33                 >${h.label(c.method)}</a> 
    34         </div> 
     1<%inherit file="/base.html"/>     
    352 
    36         <form method="POST" action="${h.url_for('extent_call_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}"> 
    37             <input type="submit" value="Call" /> 
    38         </form> 
    39              
    40     </body> 
    41 </html> 
     3<%def name="title()"> 
     4    ${h.label(c.method)} 
     5    &larr; 
     6    Transactions 
     7    &larr; 
     8    ${h.plural(c.extent)} 
     9    &larr; 
     10    Extents 
     11    &larr; 
     12    ${h.label(c.db)} 
     13    &larr; 
     14    Databases 
     15</%def> 
     16 
     17<%def name="parents()"> 
     18    <a href="${h.url_for('databases')}">Databases</a> 
     19    &rarr; 
     20    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     21    &rarr; 
     22    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     23    &rarr; 
     24    <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     25        >${h.plural(c.extent)}</a> 
     26    &rarr; 
     27    <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     28        >Transactions</a> 
     29    &rarr; 
     30    <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
     31        >${h.label(c.method)}</a> 
     32</%def> 
     33 
     34<form method="POST" action="${h.url_for('extent_call_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}"> 
     35    <input type="submit" value="Call" /> 
     36</form> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html

    r2929 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title>Extents &larr; ${h.label(c.db)} &larr; Databases</title> 
    5     </head> 
    6     <body> 
    7         <div id="breadcrumbs"> 
    8             <a href="${h.url_for('databases')}">Databases</a> 
    9             &rarr; 
    10             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    11             &rarr; 
    12             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    13         </div> 
    14          
    15                 <ul> 
    16                     % for extent in c.db.extents(): 
    17                         <li> 
    18                             <a href="${h.url_for('extent', db_id=c.db_id, id=extent.name)}" 
    19                                 >${h.plural(extent)}</a> 
    20                         </li> 
    21                     % endfor 
    22                 </ul> 
    23     </body> 
    24 </html> 
     1<%inherit file="/base.html"/> 
     2 
     3<%def name="title()"> 
     4    Extents  
     5    &larr;  
     6    ${h.label(c.db)}  
     7    &larr;  
     8    Databases 
     9</%def> 
     10 
     11<%def name="parents()"> 
     12    <a href="${h.url_for('databases')}">Databases</a> 
     13    &rarr; 
     14    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     15    &rarr; 
     16    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     17</%def> 
     18 
     19<%def name="children()"> 
     20        <ul> 
     21            % for extent in c.db.extents(): 
     22                <li> 
     23                    <a href="${h.url_for('extent', db_id=c.db_id, id=extent.name)}" 
     24                        >${h.plural(extent)}</a> 
     25                </li> 
     26            % endfor 
     27        </ul> 
     28</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/show.html

    r2929 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             ${h.plural(c.extent)} 
    6             &larr; 
    7             Extents 
    8             &larr; 
    9             ${h.label(c.db)} 
    10             &larr; 
    11             Databases 
    12         </title> 
    13     </head> 
    14     <body> 
    15         <div id="breadcrumbs"> 
    16             <a href="${h.url_for('databases')}">Databases</a> 
    17             &rarr; 
    18             <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    19             &rarr; 
    20             <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    21             &rarr; 
    22             <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    23                 >${h.plural(c.extent)}</a> 
    24         </div> 
    25          
    26                 <dl> 
    27                         <dt>Name</dt> 
    28                         <dd>${c.extent.name}</dd> 
    29                          
    30                         <dt>Label</dt> 
    31                         <dd>${h.label(c.extent)}</dd> 
    32                          
    33                         <dt>Plural label</dt> 
    34                         <dd>${h.plural(c.extent)}</dd> 
    35                          
    36                         <dt>Length</dt> 
    37                         <dd>${len(c.extent)}</dd> 
    38                 </dl> 
     1<%inherit file="/base.html"/> 
    392 
    40                 <ul> 
    41                         <li> 
    42                                 <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    43                                     >Queries</a> 
    44                         </li> 
    45                          
    46                         <li> 
    47                             <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    48                                 >Transactions</a> 
    49                         </li> 
    50                 </ul> 
    51     </body> 
    52 </html> 
     3<%def name="title()"> 
     4    ${h.plural(c.extent)} 
     5    &larr; 
     6    Extents 
     7    &larr; 
     8    ${h.label(c.db)} 
     9    &larr; 
     10    Databases 
     11</%def> 
     12 
     13<%def name="parents()"> 
     14    <a href="${h.url_for('databases')}">Databases</a> 
     15    &rarr; 
     16    <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     17    &rarr; 
     18    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     19    &rarr; 
     20    <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     21        >${h.plural(c.extent)}</a> 
     22</%def> 
     23 
     24<%def name="properties()"> 
     25    <ul> 
     26        <li> 
     27            <label for="extent_name">Name</label> 
     28            <span class="value" id="extent_name">${c.extent.name}</span> 
     29        </li> 
     30         
     31        <li> 
     32            <label for="extent_label">Label</label> 
     33            <span class="value" id="extent_label">${h.label(c.extent)}</span> 
     34        </li> 
     35         
     36        <li> 
     37            <label for="extent_plural">Plural label</label> 
     38            <span class="value" id="extent_plural">${h.plural(c.extent)}</span> 
     39        </li> 
     40         
     41        <li> 
     42            <label for="extent_len">Entity count</label> 
     43            <span class="value" id="extent_len">${len(c.extent)}</span> 
     44        </li> 
     45    </ul> 
     46</%def> 
     47 
     48<%def name="children()"> 
     49        <ul> 
     50                <li> 
     51                        <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     52                            >Queries</a> 
     53                </li> 
     54                 
     55                <li> 
     56                    <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     57                        >Transactions</a> 
     58                </li> 
     59        </ul> 
     60</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/queries/show.html

    r2939 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             ${h.label(c.query)} 
    6             &larr; 
    7             Queries 
    8         </title> 
    9     </head> 
    10     <body> 
    11         <div id="breadcrumbs"> 
    12             Queries 
    13             &rarr; 
    14             <a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a> 
    15         </div> 
    16          
    17         <ul class="fields"> 
    18             % for name, field in c.query.sys.field_map().iteritems(): 
    19                 <li><label for="f_${name}">${h.label(field)}</label> <span id="f_${name}" class="value">${field.value}</span></li> 
    20             % endfor 
    21         </ul> 
    22     </body> 
    23 </html> 
     1<%inherit file="/base.html" /> 
     2 
     3<%def name="title()"> 
     4    ${h.label(c.query)} 
     5    &larr; 
     6    Queries 
     7</%def> 
     8 
     9<%def name="parents()"> 
     10    Queries 
     11    &rarr; 
     12    <a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a> 
     13</%def> 
     14 
     15<%def name="fields()"> 
     16    % for name, field in c.query.sys.field_map().iteritems(): 
     17        <li> 
     18            <label for="${name}"> 
     19                ${h.label(field)} 
     20            </label>  
     21            <span id="${name}" class="value"> 
     22                ${field.value} 
     23            </span> 
     24        </li> 
     25    % endfor 
     26</%def> 
     27 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions/show.html

    r2937 r2940  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html> 
    3     <head> 
    4         <title> 
    5             ${h.label(c.tx)} 
    6             &larr; 
    7             Transactions 
    8         </title> 
    9     </head> 
    10     <body> 
    11         <div id="breadcrumbs"> 
    12             Transactions 
    13             &rarr; 
    14             <a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a> 
    15         </div> 
    16     </body> 
    17 </html> 
     1<%inherit file="/base.html" /> 
     2 
     3<%def name="title()"> 
     4    ${h.label(c.tx)} 
     5    &larr; 
     6    Transactions 
     7</%def> 
     8 
     9<%def name="parents()"> 
     10    Transactions 
     11    &rarr; 
     12    <a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a> 
     13</%def> 
     14 
     15<%def name="fields()"> 
     16    % for name, field in c.tx.sys.field_map().iteritems(): 
     17        <li> 
     18            <label for="${name}"> 
     19                ${h.label(field)} 
     20            </label>  
     21            <span id="${name}" class="value"> 
     22                ${field.value} 
     23            </span> 
     24        </li> 
     25    % endfor 
     26</%def>