{# plugins/snmp/templates/snmp/form.html — add or edit an SNMP device (milestone 491): where it is, how to sign in, what to read, and Test to ask the device before saving. Secrets are never sent back to the browser; a blank secret field keeps the stored one. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% block title %}{{ ("Edit " ~ device.name) if device else "Add SNMP device" }} — Steward{% endblock %} {% block breadcrumb %} {%- if device -%} {{ crumbs([("SNMP", "/plugins/snmp/"), (device.name, "/plugins/snmp/devices/" ~ device.id), ("Edit", "")]) }} {%- else -%} {{ crumbs([("SNMP", "/plugins/snmp/"), ("Add device", "")]) }} {%- endif -%} {% endblock %} {% block content %} {{ page_header(("Edit " ~ device.name) if device else "Add SNMP device") }}
{{ error }}
{% endif %} {% if device %}Steward stops polling it. Its past readings age out with the rest of the history.