Update registration settings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-02-17 21:36:30 +08:00
parent 084835f06a
commit b7bf957dd2
4 changed files with 46 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
<%= render HeaderComponent.new(title: "Settings") %>
<%= render MainWithSidenavComponent.new(sidenav_partial: 'shared/admin_sidenav_settings') do %>
<section>
<h3>Registrations</h3>
<%= form_for(Setting.new, url: admin_settings_services_path) do |f| %>
<%= form_for(Setting.new, url: admin_settings_registrations_path) do |f| %>
<section>
<h3>Registrations</h3>
<% if @errors && @errors.any? %>
<div>
<ul>
@@ -14,7 +14,7 @@
</div>
<% end %>
<label>
<label class="block">
<p class="font-bold mb-1">Reserved usernames</p>
<p class="text-gray-500">
These usernames cannot be registered as accounts:
@@ -22,10 +22,16 @@
<%= f.text_area :reserved_usernames,
value: Setting.reserved_usernames.join("\n"),
class: "h-44 mb-2" %>
<p class="text-sm text-gray-500">
<p class="mb-0 text-sm text-gray-500">
One username per line
</p>
</label>
<% end %>
</section>
</section>
<section>
<p class="mb-0 pt-6 border-t border-gray-200">
<%= f.submit 'Save', class: "btn-md btn-blue w-full md:w-auto" %>
</p>
</section>
<% end %>
<% end %>