Changeset 369

Show
Ignore:
Timestamp:
11/03/07 22:42:44 (2 years ago)
Author:
eevee
Message:

Pokemon search can now pass Pokemon to the comparer. (#140)

Location:
veekun/trunk/templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/templates/dex/search/pokemon.tt

    r308 r369  
    1919[%             END %] 
    2020[%         CASE 'table' %] 
     21<form action="[% c.uri_for('/dex/pokemon/compare') %]" method="GET"/> 
    2122<table class="dex-table dex-pokemon" cellspacing="0"> 
    2223<tr class="heading"> 
    23   <th class="number"> </th> 
    24   <th class="name"> Pok&eacute;mon </th> 
     24    <th class="number"> </th> 
     25    <th class="number"> </th> 
     26    <th class="name"> Pok&eacute;mon </th> 
    2527[%             pokemon_header %] 
    2628</tr> 
     
    2830[%             FOREACH p IN results %] 
    2931<tr class="color[% color %]"> 
    30   <td class="right">[% p.id %]</td> 
    31   <td class="left"><a href="[% dex_uri('pokemon', PokemonNames.${p.id}) %]"><img src="/dex-images/icons/[% p.id.pad(3) %].png" alt=""/> [%+ PokemonNames.${p.id} %]</a></td> 
     32    <td><input type="checkbox" name="poke" value="[% p.name %]"/></td> 
     33    <td class="right">[% p.id %]</td> 
     34    <td class="left"><a href="[% dex_uri('pokemon', PokemonNames.${p.id}) %]"><img src="/dex-images/icons/[% p.id.pad(3) %].png" alt=""/> [%+ PokemonNames.${p.id} %]</a></td> 
    3235[%                 pokemon_cells(p) %] 
    3336[%                 color = 3 - color %] 
     
    3538[%             END %] 
    3639</table> 
     40<p> <input type="submit" value="Compare selected Pok&eacute;mon"/> <input type="reset" value="Clear selection"/> </p> 
     41</form> 
    3742[%         CASE %] 
    3843<ul> 
  • veekun/trunk/templates/style/dex.tt

    r368 r369  
    8787  .dex-table th.level { width: 2em; }  /* colspan does weird things to tds with widths */ 
    8888  .dex-table .levels{ width: 5em; text-align: center; } 
    89   .dex-table .name  { width: 8em; text-align: center; } 
     89  .dex-table .name  { width: 9em; text-align: center; } 
    9090  .dex-table .type  { width: 3em; text-align: center; } 
    9191  .dex-table .pp    { width: 2em; text-align: center; }