Move SNMP device name help text to placeholder

Changed the help text below the device name field to appear as placeholder
text inside the input field when in SNMP mode
This commit is contained in:
Graham McIntire 2026-01-17 17:08:47 -06:00
parent 70a4d32a65
commit 841cf67e8b
No known key found for this signature in database

View file

@ -32,13 +32,13 @@
field={@form[:name]}
type="text"
label="Device Name"
placeholder={
if @monitoring_mode == "snmp_and_icmp",
do: "Leave blank to automatically populate from SNMP device name (sysName)",
else: nil
}
required={@monitoring_mode == "icmp_only"}
/>
<%= if @monitoring_mode == "snmp_and_icmp" do %>
<p class="mt-1 text-sm text-zinc-600 dark:text-zinc-400">
Leave blank to automatically populate from SNMP device name (sysName) during discovery.
</p>
<% end %>
<.input field={@form[:ip_address]} type="text" label="IP Address" required />