Changeset 866 for trunk/packages


Ignore:
Timestamp:
Aug 4, 2008, 11:00:03 PM (16 years ago)
Author:
price
Message:

configurize web templates

Location:
trunk/packages/sipb-xen-www/code
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/main.py

    r865 r866  
    8686
    8787Template.database = database
     88Template.config = config
    8889Template.helppopup = staticmethod(helppopup)
    8990Template.err = None
  • trunk/packages/sipb-xen-www/code/templates/info.tmpl

    r609 r866  
    8888#end filter
    8989#if not $on
    90     <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/></td></tr>
     90    <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/>.${config.dns.domains[0]}</td></tr>
    9191#filter None
    9292$errorRow('name', $err)
  • trunk/packages/sipb-xen-www/code/templates/list.tmpl

    r670 r866  
    2626        <tr>
    2727          <td>Name</td>
    28           <td><input type="text" name="name" value="$defaults.name"/>.xvm.mit.edu</td>
     28          <td><input type="text" name="name" value="$defaults.name"/>.${config.dns.domains[0]}</td>
    2929        </tr>
    3030#filter None
Note: See TracChangeset for help on using the changeset viewer.