new export actions erasure
This commit is contained in:
parent
73881f4f25
commit
b006ec1973
|
@ -798,6 +798,7 @@ class ExportsView(View):
|
||||||
export_ids = {
|
export_ids = {
|
||||||
'metrics': self.metrics,
|
'metrics': self.metrics,
|
||||||
'devices': self.devices_list,
|
'devices': self.devices_list,
|
||||||
|
'actions_erasures': self.actions_erasures,
|
||||||
'certificates': self.erasure,
|
'certificates': self.erasure,
|
||||||
'lots': self.lots_export,
|
'lots': self.lots_export,
|
||||||
'devices_lots': self.devices_lots_export,
|
'devices_lots': self.devices_lots_export,
|
||||||
|
@ -898,6 +899,10 @@ class ExportsView(View):
|
||||||
insert_hash(res.data)
|
insert_hash(res.data)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def actions_erasures(self):
|
||||||
|
data = StringIO()
|
||||||
|
return self.response_csv(data, "Erasures.csv")
|
||||||
|
|
||||||
def build_erasure_certificate(self):
|
def build_erasure_certificate(self):
|
||||||
erasures = []
|
erasures = []
|
||||||
for device in self.find_devices():
|
for device in self.find_devices():
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<span class="d-none" id="exportAlertModal" data-bs-toggle="modal" data-bs-target="#exportErrorModal"></span>
|
<span class="d-none" id="exportAlertModal" data-bs-toggle="modal" data-bs-target="#exportErrorModal"></span>
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnExport">
|
<ul class="dropdown-menu" aria-labelledby="btnExport">
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:export_file('devices')" class="dropdown-item">
|
<a href="javascript:export_file('actions_erasures')" class="dropdown-item">
|
||||||
<i class="bi bi-file-spreadsheet"></i>
|
<i class="bi bi-file-spreadsheet"></i>
|
||||||
Data Storage Spreadsheet
|
Data Storage Spreadsheet
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in New Issue