5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 17:16:22 +00:00

feat: poder crear sitios en testing

los sitios en testing no se sincronizan con otros servidores y siempre
son locales al panel
This commit is contained in:
f 2024-10-09 13:52:22 -03:00
parent 63d2e7af46
commit 538f941f77
No known key found for this signature in database

View file

@ -23,7 +23,7 @@
= f.text_field :name, = f.text_field :name,
class: form_control(site, :name), class: form_control(site, :name),
required: true, required: true,
pattern: '^([a-z0-9][a-z0-9\-]*)?[a-z0-9\.]$', pattern: '^([a-z0-9][a-z0-9\-]*)?[a-z0-9\.](\.testing)?$',
minlength: 1, minlength: 1,
maxlength: 63 maxlength: 63
- if invalid? site, :name - if invalid? site, :name