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 d4a3bd1..759c9c5 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 5db4c58..7e1a06e 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;