Show
Ignore:
Timestamp:
04/27/08 20:49:18 (4 months ago)
Author:
eevee
Message:

Few small fixes for new breeding chains applet (#302).
Deals a little better with invalid moves/Pokemon, form actually works.

Files:
1 modified

Legend:

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

    r428 r429  
    22 
    33<h1>Breeding Chain Finder</h1> 
     4[% form.start %] 
    45<dl class="compact"> 
    56    <dt>Pok&eacute;mon</dt> 
     
    89    <dd>[% form.get_field(name => 'move') %]</dd> 
    910</dl> 
    10   <p> <input type="submit" value="Find chains"/> <input type="reset" value="Reset form"/> </p> 
     11<p> <input type="submit" value="Find chains"/> <input type="reset" value="Reset form"/> </p> 
     12[% form.end %] 
    1113[% RETURN IF NOT form.submitted OR form.has_errors %] 
    1214 
    1315<h1>Chains</h1> 
     16[% IF NOT flattened_tree %] 
     17<p> No breeding chains found. </p> 
     18[%     RETURN %] 
     19[% END %] 
     20 
    1421<p> This tree is arranged by combinations of egg groups.  Any Pok&eacute;mon from a set may be used; since they have the same egg groups, they are all equally valid partners for all the Pok&eacute;mon in the sets above and below them. </p> 
    1522 
     
    2229[% color = 1 %] 
    2330[% FOR node IN flattened_tree %] 
    24 [%     indent_style = 'style="padding-left: ' _ (node.indent  * 2) _ 'em;"' %] 
     31[%     indent_style = 'style="padding-left: ' _ (node.indent * 32) _ 'px;"' %] 
    2532[%     UNLESS loop.first %] 
    2633<tr class="heading left">