Entry: handle originUrl in edit form, update translations

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2017-09-09 19:32:42 +02:00
parent e0ef1a1c8b
commit 03b020eb20
14 changed files with 22 additions and 0 deletions

View file

@ -22,6 +22,11 @@ class EditEntryType extends AbstractType
'required' => false,
'label' => 'entry.edit.url_label',
])
->add('origin_url', TextType::class, [
'required' => false,
'property_path' => 'originUrl',
'label' => 'entry.edit.origin_url_label',
])
->add('save', SubmitType::class, [
'label' => 'entry.edit.save_label',
])

View file

@ -244,6 +244,7 @@ entry:
# page_title: 'Edit an entry'
# title_label: 'Title'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Gem'
public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Eintrag bearbeiten'
title_label: 'Titel'
url_label: 'URL'
# origin_url_label: 'Origin url'
save_label: 'Speichern'
public:
shared_by_wallabag: 'Dieser Artikel wurde von %username% mittels <a href="%wallabag_instance%">wallabag</a> geteilt'

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Edit an entry'
title_label: 'Title'
url_label: 'Url'
origin_url_label: 'Origin url'
save_label: 'Save'
public:
shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Editar un artículo'
title_label: 'Título'
url_label: 'URL'
# origin_url_label: 'Origin url'
save_label: 'Guardar'
public:
shared_by_wallabag: "Este artículo se ha compartido con <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'ویرایش مقاله'
title_label: 'عنوان'
url_label: 'نشانی'
# origin_url_label: 'Origin url'
save_label: 'ذخیره'
public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: "Éditer un article"
title_label: "Titre"
url_label: "Adresse"
origin_url_label: "Adresse d'origine"
save_label: "Enregistrer"
public:
shared_by_wallabag: "Cet article a été partagé par %username% avec <a href=\"%wallabag_instance%\">wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Modifica voce'
title_label: 'Titolo'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salva'
public:
shared_by_wallabag: "Questo articolo è stato condiviso da %username% con <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Modificar un article'
title_label: 'Títol'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Enregistrar'
public:
shared_by_wallabag: "Aqueste article es estat partejat per <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Edytuj wpis'
title_label: 'Tytuł'
url_label: 'Adres URL'
# origin_url_label: 'Origin url'
save_label: 'Zapisz'
public:
shared_by_wallabag: "Ten artykuł został udostępniony przez <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
page_title: 'Editar uma entrada'
title_label: 'Título'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salvar'
public:
shared_by_wallabag: "Este artigo foi compartilhado pelo <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -244,6 +244,7 @@ entry:
# page_title: 'Edit an entry'
# title_label: 'Title'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salvează'
public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -242,6 +242,7 @@ entry:
page_title: 'Makaleyi düzenle'
title_label: 'Başlık'
url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Kaydet'
public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>"

View file

@ -27,6 +27,11 @@
{{ form_label(form.url) }}
{{ form_widget(form.url) }}
</div>
<div class="input-field s12">
{{ form_label(form.origin_url) }}
{{ form_widget(form.origin_url) }}
</div>
<br>
{{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}