mirror of https://github.com/mastodon/mastodon
Use "namespace style" for URL generation in `admin/` area forms (#35080)
parent
d5d57ac25a
commit
d0502ac3c1
@ -1,7 +1,7 @@
|
||||
- content_for :page_title do
|
||||
= t('admin.webhooks.edit')
|
||||
|
||||
= simple_form_for @webhook, url: admin_webhook_path(@webhook) do |form|
|
||||
= simple_form_for [:admin, @webhook] do |form|
|
||||
= render form
|
||||
.actions
|
||||
= form.button :button, t('generic.save_changes'), type: :submit
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
- content_for :page_title do
|
||||
= t('admin.webhooks.new')
|
||||
|
||||
= simple_form_for @webhook, url: admin_webhooks_path do |form|
|
||||
= simple_form_for [:admin, @webhook] do |form|
|
||||
= render form
|
||||
.actions
|
||||
= form.button :button, t('admin.webhooks.add_new'), type: :submit
|
||||
|
||||
Loading…
Reference in New Issue