CLI HTML output: Correctly generate print view for other report styles

master
RunasSudo 3 months ago
parent fafb093c1a
commit 1a57fba093
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
  1. 4
      src/cli/stv.rs

@ -782,8 +782,8 @@ where
</div></div>
<div id="printWarning">Printing directly from this page is not supported. Use the Print result button to generate a printer-friendly report.</div>
<script src="https://yingtongli.me/opentally/stv/print.js"></script>
<input type="hidden" id="selReport" value="votes_transposed"><!-- TODO: Allow this to be customised -->
</body></html>"#);
<input type="hidden" id="selReport" value="{}">
</body></html>"#, report_style);
return Ok(());
}

Loading…
Cancel
Save