chiark / gitweb /
Plumb max mass/vol through to routetrade
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 2 Sep 2009 22:55:19 +0000 (23:55 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 2 Sep 2009 22:55:19 +0000 (23:55 +0100)
yarrg/web/query_route
yarrg/web/routetrade

index d4a3bd15e4c06cd362765852d3e63bcc8c6284fd..759c9c547cbd92f01f39a6e9bda8e900a651d6d5 100644 (file)
@@ -238,7 +238,9 @@ for my $dd (0..$qa->{Dropdowns}-1) {
    dbh => $dbh,
    islandids => \@islandids,
    archipelagoes => \@archipelagoes,
-   qa => $qa
+   qa => $qa,
+   max_mass => $max_mass,
+   max_volume => $max_volume
  &>
 </form>
 % }
index 5db4c5852ec7716e7fa65f6972cb03330eb62f51..7e1a06e6b90fd5cd872bb5ca78048667a3018a6e 100644 (file)
@@ -38,11 +38,18 @@ $dbh
 @islandids
 @archipelagoes
 $qa
+$max_mass
+$max_volume
 </%args>
 <&| script &>
   da_pageload= Date.now();
 </&script>
 
+% if (defined $max_mass || defined $max_volume) {
+<strong>WARNING - VESSEL CAPACITY LIMIT NOT YET IMPLEMENTED</strong>
+<p>
+% }
+
 <%perl>
 
 my $now= time;