Changeset 433 for veekun/trunk/templates

Show
Ignore:
Timestamp:
05/27/08 01:20:00 (22 months ago)
Author:
eevee
Message:

Mostly finished up breeding chains app, at least for one move. (#302)
- Added a link for it to the link list.
- Fixed some DBIC-related has-many ambiguity.
- Deleted a lot of old TODO comments.
- Added a setting for level of detail that defaults to only showing optimal chains, rather than trying to pull them out and show them separately.
- Fixed a cross-join bug where some move methods would appear twice.
- Fixed a bug in Vee::Form that made single-radio-button printing not work at all.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/templates/dex/utils/breeding_chains.tt

    r432 r433  
    44<form action="" method="get"> 
    55<dl class="compact"> 
    6     <dt>Pok&eacute;mon</dt> 
     6    <dt>Desired Pok&eacute;mon</dt> 
    77    <dd>[% form.get_tag('pokemon') %]</dd> 
    8     <dt>Moves</dt> 
     8    <dt>Desired move</dt> 
    99    <dd>[% form.get_tag('move') %]</dd> 
    1010</dl> 
     11<p> <label>[% form.get_tag('detail_level', 1) %] Show only the shortest possible chains</label> </p> 
     12<p> <label>[% form.get_tag('detail_level', 2) %] Show all "useful" chains: any that end with a Pok&eacute;mon that can learn via level</label> </p> 
     13<p> <label>[% form.get_tag('detail_level', 3) %] Show everything  (you probably don't want this) </label> </p> 
    1114<p> <input type="submit" value="Find chains"/> <input type="reset" value="Reset form"/> </p> 
    1215</form> 
     
    4043</tr> 
    4144[%     END %] 
    42 [%     FOR pokemon IN node.pokemon %] 
     45[%     all_pokemon = node.source_pokemon.merge(node.inheriting_pokemon) %] 
     46[%     FOR pokemon IN all_pokemon.sort('name') %] 
    4347<tr class="color[% color %]"> 
    4448    <td [% indent_style %]><a href="[% dex_uri('pokemon', pokemon.name) %]"><img src="/dex-images/icons/[% pokemon.id.pad(3) %].png" alt="[% pokemon.name %]" title="[% pokemon.name %]"/> [% pokemon.name %]</a></td>