chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stripy tables.
[ypp-sc-tools.db-test.git]
/
yarrg
/
web
/
routetrade
diff --git
a/yarrg/web/routetrade
b/yarrg/web/routetrade
index d152eed6a0f6485456340deb404546fcc4cb0620..c135e67bc5b16a69452fec1a559f332eebf1a5cd 100644
(file)
--- a/
yarrg/web/routetrade
+++ b/
yarrg/web/routetrade
@@
-35,8
+35,6
@@
========== TODO ==========
16:36 <ceb> alpha,byrne,papaya,turtle,jorvik,luthien is my example
========== TODO ==========
16:36 <ceb> alpha,byrne,papaya,turtle,jorvik,luthien is my example
-16:39 <ceb> Also, maybe colour to highlight the suggested trades?
-
16:46 <ceb> Also trading plan not functional but I guess you know that :-)
use POST for update. Hrrm.
16:46 <ceb> Also trading plan not functional but I guess you know that :-)
use POST for update. Hrrm.
@@
-47,8
+45,6
@@
adjustable potential cost of losses (rather than fixed 1e-BIG per league)
max volume/mass
max volume/mass
-16:38 <ceb> I don't know how hard this is, but can you show only the suggested
- trades to start ith and have a button to show all?
========== TODO ==========
</%doc>
========== TODO ==========
</%doc>
@@
-438,7
+434,7
@@
$addcols->({ Total => 0, DoReverse => 1 }, qw(
% if ($optimise) {
<colgroup span=3>
% }
% if ($optimise) {
<colgroup span=3>
% }
-<tr>
+<tr
class="spong"
>
<th>
<th<% $cdspan %>>Collect
<th<% $cdspan %>>Deliver
<th>
<th<% $cdspan %>>Collect
<th<% $cdspan %>>Deliver
@@
-477,9
+473,10
@@
$addcols->({ Total => 0, DoReverse => 1 }, qw(
<th>
% }
<th>
% }
-% foreach my $flow (@flows) {
+% foreach my $flowix (0..$#flows) {
+% my $flow= $flows[$flowix];
% my $rowid= "id_row_$flow->{UidShort}";
% my $rowid= "id_row_$flow->{UidShort}";
-<tr id="<% $rowid %>">
+<tr id="<% $rowid %>"
class="datarow<% $flowix & 1 %>"
>
<td><input type=hidden name=R<% $flow->{UidShort} %> value="">
<input type=checkbox name=T<% $flow->{UidShort} %> value=""
<% $flow->{Suppress} ? '' : 'checked' %> >
<td><input type=hidden name=R<% $flow->{UidShort} %> value="">
<input type=checkbox name=T<% $flow->{UidShort} %> value=""
<% $flow->{Suppress} ? '' : 'checked' %> >
@@
-504,7
+501,7
@@
$addcols->({ Total => 0, DoReverse => 1 }, qw(
% }
</table>
% }
</table>
-<& tabsort, cols => \@cols, table => 'trades',
+<& tabsort, cols => \@cols, table => 'trades',
rowclass => 'datarow',
throw => 'trades_sort', tbrow => 'trades_total' &>
<&| script &>
ts_sortkeys= <% to_json_protecttags(\%ts_sortkeys) %>;
throw => 'trades_sort', tbrow => 'trades_total' &>
<&| script &>
ts_sortkeys= <% to_json_protecttags(\%ts_sortkeys) %>;