Added button on header
This commit is contained in:
parent
e7bf7694f1
commit
81bb0ed79e
4 changed files with 13 additions and 11 deletions
|
|
@ -144,6 +144,9 @@ p.notes {
|
|||
#button_alternative_full_exposure, #button_alternative_hide_high_concentration {
|
||||
display: none!important;
|
||||
}
|
||||
#export-csv {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -863,13 +863,12 @@ function copy_clipboard(shareable_link) {
|
|||
}
|
||||
|
||||
function export_csv() {
|
||||
```
|
||||
This function generates a CSV file according to the user's input.
|
||||
It is composed of a list of lists.
|
||||
The first item of the main list corresponds to the columns' name.
|
||||
The remaining items correspond to each of the file row, i.e. the
|
||||
respective data from the selected inputs.
|
||||
```
|
||||
// This function generates a CSV file according to the user's input.
|
||||
// It is composed of a list of lists.
|
||||
// The first item of the main list corresponds to the columns' name.
|
||||
// The remaining items correspond to each of the file row, i.e. the
|
||||
// respective data from the selected inputs.
|
||||
|
||||
let final_export = [];
|
||||
|
||||
// Verify which items are checked
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ footer img {
|
|||
#report_version {
|
||||
font-size: .5rem;
|
||||
}
|
||||
#download-pdf, #pdf_qrcode_aref {
|
||||
#download-pdf, #pdf_qrcode_aref, #export-csv {
|
||||
display: none;
|
||||
}
|
||||
#scale_warning{
|
||||
|
|
|
|||
|
|
@ -30,12 +30,12 @@
|
|||
<h2 class="header_text mb-0"><a href="{{ permalink.shortened }}" style="color: #2f4858">REPORT - {{ form.simulation_name }}</a></h2>
|
||||
<p class="mb-0" id="report_version"> Created {{ creation_date }} using CARA calculator version v{{ form.calculator_version }}</p>
|
||||
</div>
|
||||
<button type="button" class="btn btn-outline-dark align-self-center" id="download-pdf" style="margin-right: -100pt" onclick="print();">Print Report</button>
|
||||
<button type="button" class="btn btn-outline-dark align-self-center" id="export-csv" data-toggle="modal" data-target="#modalCSV">Export CSV</button>
|
||||
<button type="button" class="btn btn-outline-dark align-self-center ml-2" id="download-pdf" style="margin-right: -100pt" onclick="print();">Print Report</button>
|
||||
<a href="{{ permalink.link }}" style="float: left;" id="pdf_qrcode_aref" class="align-self-center invisible mr-0"><div id="pdf_qrcode"></div></a>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalCSV">Export CSV</button>
|
||||
|
||||
<!-- Modal -->
|
||||
<!-- Export CSV Modal -->
|
||||
<div class="modal fade" id="modalCSV" tabindex="-1" role="dialog" aria-labelledby="modalCSV" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
|
|
|
|||
Loading…
Reference in a new issue