Changeset 2405 for package_branches


Ignore:
Timestamp:
Aug 9, 2009, 6:45:31 PM (15 years ago)
Author:
quentin
Message:

Properly refer to functions via self.fn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/templates/list.mako

    r2403 r2405  
     1<%page expression_filter="h"/>
    12<%inherit file="skeleton.mako" />
    23<%!
     
    2223    <input type="hidden" name="back" value="list"/>
    2324      <table>
    24         ${errorRow('create', err)}
     25        ${self.fn.errorRow('create', err)}
    2526        <tr>
    2627          <td>Name</td>
    2728          <td><input type="text" name="name" value="${defaults.name}"/>.${config.dns.domains[0]}</td>
    2829        </tr>
    29         ${errorRow('name', err)}
     30        ${self.fn.errorRow('name', err)}
    3031        <tr>
    3132          <td>Description</td>
    3233          <td><textarea name="description" rows="4" cols="60">${defaults.description}</textarea></td>
    3334        </tr>
    34         ${errorRow('description', err)}
     35        ${self.fn.errorRow('description', err)}
    3536        <tr>
    3637          <td>Memory</td>
    3738          <td><input type="text" name="memory" value="${defaults.memory}" size=3/> MiB (${max_memory} max)</td>
    3839        </tr>
    39         ${errorRow('memory', err)}
     40        ${self.fn.errorRow('memory', err)}
    4041        <tr>
    4142          <td>Disk</td>
    4243          <td><input type="text" name="disksize" value="${defaults.disk}" size=3/> GiB (${"%0.1f" % (max_disk-0.05)} max)</td>
    4344        </tr>
    44         ${errorRow('disk', err)}
     45        ${self.fn.errorRow('disk', err)}
    4546        <tr>
    46           <td>HVM/ParaVM${fn.helppopup('HVM/ParaVM')}</td>
     47          <td>HVM/ParaVM${self.fn.helppopup('HVM/ParaVM')}</td>
    4748          <td>
    48           ${vmTypeList(defaults.type)}
     49          ${self.fn.vmTypeList(defaults.type)}
    4950          </td>
    5051        </tr>
    51         ${errorRow('vmtype', err)}
    52         ${errorRow('autoinstall', err)}
     52        ${self.fn.errorRow('vmtype', err)}
     53        ${self.fn.errorRow('autoinstall', err)}
    5354        <tr>
    54           <td>Autoinstall${fn.helppopup('Autoinstalls')}</td>
     55          <td>Autoinstall${self.fn.helppopup('Autoinstalls')}</td>
    5556          <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto"
    5657                 onchange="\$('cdromlist').value = ''; \$('vmtype-linux').checked = true">
    57 ${autoList(defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")}
     58${self.fn.autoList(defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")}
    5859              (experimental; 2-3 minutes, and you have a machine with empty root password.)
    5960          </input>
     
    6364          <td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked="checked"
    6465                onchange="\$('autoinstalllist').value = ''; \$('vmtype-linux-hvm').checked = true">
    65 ${cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")}
     66${self.fn.cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")}
    6667</td>
    6768          </input>
    6869        </tr>
    69         ${errorRow('cdrom', err)}
    70         ${errorRow('cdrom', err)}
     70        ${self.fn.errorRow('cdrom', err)}
     71        ${self.fn.errorRow('cdrom', err)}
    7172        <tr>
    7273          <td>Owner</td>
    7374          <td><input type="text" name="owner" value="${defaults.owner}"/></td>
    7475        </tr>
    75         ${errorRow('owner', err)}
     76        ${self.fn.errorRow('owner', err)}
    7677      </table>
    7778      <input type="submit" class="button" value="Create it!"/><br />
    78       Windows notes: ${fn.helppopup('Windows')}
     79      Windows notes: ${self.fn.helppopup('Windows')}
    7980    </form>
    8081% endif
     
    128129        <th>Name</th>
    129130        <th>Memory</th>
    130         <th>Owner${fn.helppopup('Owner')}</th>
    131         <th>Administrator${fn.helppopup('Administrator')}</th>
     131        <th>Owner${self.fn.helppopup('Owner')}</th>
     132        <th>Administrator${self.fn.helppopup('Administrator')}</th>
    132133        <th>IP</th>
    133134        <th>Uptime</th>
Note: See TracChangeset for help on using the changeset viewer.