Started implementing ticket 8508, REST to be implemented when netbox is done

This commit is contained in:
DGabri 2024-07-17 15:35:24 +02:00
parent 075e732a3a
commit 18f83ca7ca
2 changed files with 14 additions and 3 deletions

View file

@ -32,14 +32,14 @@
</div>
</div>
<div class="mb-3 col-auto">
<label for="export_host">Insert Host IP or Mac Address or /24</label>
<label for="export_host"> {{ i18n("manage_data.specify_ip_mac") }}</label>
<input type="text" id="export_host" data-host="host" name="host"
placeholder="{{ i18n("manage_data.ip_or_mac_address")}}" class="form-control" size="24" disabled
required />
</div>
<div class="mb-3 col-auto">
<label for="export_vlan">Insert VLAN Host</label>
<input type="number" min="1" max="65535" placeholder="{{ i18n(" vlan") }}" id="export_vlan"
<label for="export_vlan">{{ i18n("manage_data.specify_vlan")}}</label>
<input type="number" min="1" max="65535" placeholder="{{ i18n("manage_data.ip_or_mac_address") }}" id="export_vlan"
name="vlan" class="form-control" value="" disabled />
</div>
</div>

View file

@ -0,0 +1,11 @@
<div class="card-body">
<div id="search_card">
<form class="host_data_form" id="host_data_form_delete" method="POST">
<input name="csrf" type="hidden" value="{{ ntop.getRandomCSRFValue() }}" />
<button form="host_data_form_delete" class="btn btn-danger" type="submit" onclick="return delete_data_show_modal();">
<i class="fas fa-trash" aria-hidden="true" title="{{ i18n("manage_data.purge_asset_inventory_button") }}"></i>
{{ i18n("manage_data.purge_asset_inventory_button") }}
</button>
</form>
</div>
</div>