mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-27 17:28:39 +00:00
Force default_protocol to generate an url input
This commit is contained in:
parent
18460b2d79
commit
baa5ee2d42
3 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,7 @@ class ClientType extends AbstractType
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => 'developer.client.form.redirect_uris_label',
|
'label' => 'developer.client.form.redirect_uris_label',
|
||||||
'property_path' => 'redirectUris',
|
'property_path' => 'redirectUris',
|
||||||
|
'default_protocol' => null,
|
||||||
])
|
])
|
||||||
->add('save', SubmitType::class, ['label' => 'developer.client.form.save_label'])
|
->add('save', SubmitType::class, ['label' => 'developer.client.form.save_label'])
|
||||||
;
|
;
|
||||||
|
|
|
@ -22,11 +22,13 @@ class EditEntryType extends AbstractType
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => 'entry.edit.url_label',
|
'label' => 'entry.edit.url_label',
|
||||||
|
'default_protocol' => null,
|
||||||
])
|
])
|
||||||
->add('origin_url', UrlType::class, [
|
->add('origin_url', UrlType::class, [
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'property_path' => 'originUrl',
|
'property_path' => 'originUrl',
|
||||||
'label' => 'entry.edit.origin_url_label',
|
'label' => 'entry.edit.origin_url_label',
|
||||||
|
'default_protocol' => null,
|
||||||
])
|
])
|
||||||
->add('save', SubmitType::class, [
|
->add('save', SubmitType::class, [
|
||||||
'label' => 'entry.edit.save_label',
|
'label' => 'entry.edit.save_label',
|
||||||
|
|
|
@ -15,6 +15,7 @@ class NewEntryType extends AbstractType
|
||||||
->add('url', UrlType::class, [
|
->add('url', UrlType::class, [
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => 'entry.new.form_new.url_label',
|
'label' => 'entry.new.form_new.url_label',
|
||||||
|
'default_protocol' => null,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue