X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fenter_advrouteopts;h=95a71433ddbf2e1ec4d18e9381131e41c937dfa9;hp=c8a6ddbb2429a983e40fad372fb97821564b9f03;hb=6302552bfa5844eddb7c26386c9995733f0a5174;hpb=f2f25e1201a92e62c3eeb35cdec0a62539e18cb5;ds=sidebyside diff --git a/yarrg/web/enter_advrouteopts b/yarrg/web/enter_advrouteopts index c8a6ddb..95a7143 100644 --- a/yarrg/web/enter_advrouteopts +++ b/yarrg/web/enter_advrouteopts @@ -34,7 +34,7 @@ Some useful parameters are in %$routeparams: ${ $routeparams->{EmsgRef} } - $routeparams->{SayOptionalCapital} + $routeparams->{SayRequiredCapacity} The results are returned there: $routeparams->{LossPerLeaguePct} $routeparams->{MaxMass} @@ -49,6 +49,15 @@ $dbh $routeparams +<%method advanced> +Advanced options - you may leave these blank: +

+ + +% if (!$routeparams->{SayRequiredCapacity}) { +<& SELF:advanced &> +% } +
Vessel or capacity: @@ -62,6 +71,22 @@ Vessel or capacity: size=40 +
+% if ($routeparams->{SayRequiredCapacity}) { +<& SELF:advanced &> +% } + + +
Available capital: + +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'ac', + thingstring => 'capitalstring', emsgstore => $routeparams->{EmsgRef}, + helpref => 'capital', + onresults => sub { ($routeparams->{MaxCapital})= @_; } + &> + size=9 + +     @@ -77,20 +102,6 @@ Expected losses: size=9 -
- - -
Available capital<% - $routeparams->{SayOptionalCapital} ? ' (optional)' : '' %>: - -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'ac', - thingstring => 'capitalstring', emsgstore => $routeparams->{EmsgRef}, - helpref => 'capital', - onresults => sub { ($routeparams->{MaxCapital})= @_; } - &> - size=9 - - <% $m->content %>