change allowed ips to textarea (#618)

This commit is contained in:
Po Chen
2022-05-18 15:08:08 +10:00
committed by GitHub
parent a6eac62e34
commit c5a4fa7768
2 changed files with 4 additions and 3 deletions

View File

@@ -107,7 +107,8 @@
<div class="field">
<%= label f, :allowed_ips, "Allowed IPs", class: "label" %>
<div class="control">
<%= text_input f, :allowed_ips, class: "input #{input_error_class(f, :allowed_ips)}",
<%= textarea f, :allowed_ips,
class: "textarea #{input_error_class(f, :allowed_ips)}",
disabled: @use_site_allowed_ips %>
</div>
<p class="help is-danger">

View File

@@ -4,10 +4,10 @@
<%= label f, :allowed_ips, "Allowed IPs", class: "label" %>
<div class="control">
<%= text_input f,
<%= textarea f,
:allowed_ips,
placeholder: @placeholders[:allowed_ips],
class: "input #{input_error_class(f, :allowed_ips)}" %>
class: "textarea #{input_error_class(f, :allowed_ips)}" %>
</div>
<p class="help is-danger">