<.link navigate={~p"/agents/#{@agent_token.id}"} class="text-sm font-medium text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300" > Back to agent

{t("Edit Agent")}

{t("Update the agent name. The authentication token cannot be changed.")}

<.form for={@form} id="edit-agent-form" phx-change="validate" phx-submit="save" class="px-6 py-5" >
<.input field={@form[:name]} type="text" label={t("Agent Name")} placeholder="e.g., Datacenter Agent" required />

{t("A descriptive name to identify this agent in your organization.")}

<.input field={@form[:allow_remote_debug]} type="checkbox" label={t("Allow Remote Debugging")} />
<.icon name="hero-exclamation-triangle" class="h-5 w-5 flex-shrink-0 mt-0.5" />

Performance Impact

{t("When enabled, the server logs all SNMP data and messages for this agent.")} {t( "This generates significant log volume and should only be enabled temporarily" )} for troubleshooting.

{t("Enable verbose logging for troubleshooting SNMP discovery and polling issues.")} {t("Only organization members can toggle this setting.")}

<.link navigate={~p"/agents/#{@agent_token.id}"} class="text-sm font-semibold text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white" > {t("Cancel")} <.button type="submit" phx-disable-with={t("Saving...")}> {t("Save Changes")}