From 841cf67e8b2b7061ece80ba263415033db4b4996 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 17 Jan 2026 17:08:47 -0600 Subject: [PATCH] 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 --- lib/towerops_web/live/device_live/form.html.heex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/towerops_web/live/device_live/form.html.heex b/lib/towerops_web/live/device_live/form.html.heex index 36fe30d1..7c3dc32e 100644 --- a/lib/towerops_web/live/device_live/form.html.heex +++ b/lib/towerops_web/live/device_live/form.html.heex @@ -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 %> -

- Leave blank to automatically populate from SNMP device name (sysName) during discovery. -

- <% end %> <.input field={@form[:ip_address]} type="text" label="IP Address" required />