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, 'required' => false,
'label' => 'entry.edit.url_label', '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, [ ->add('save', SubmitType::class, [
'label' => 'entry.edit.save_label', 'label' => 'entry.edit.save_label',
]) ])

View file

@ -244,6 +244,7 @@ entry:
# page_title: 'Edit an entry' # page_title: 'Edit an entry'
# title_label: 'Title' # title_label: 'Title'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Gem' save_label: 'Gem'
public: public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" # 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' page_title: 'Eintrag bearbeiten'
title_label: 'Titel' title_label: 'Titel'
url_label: 'URL' url_label: 'URL'
# origin_url_label: 'Origin url'
save_label: 'Speichern' save_label: 'Speichern'
public: public:
shared_by_wallabag: 'Dieser Artikel wurde von %username% mittels <a href="%wallabag_instance%">wallabag</a> geteilt' 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' page_title: 'Edit an entry'
title_label: 'Title' title_label: 'Title'
url_label: 'Url' url_label: 'Url'
origin_url_label: 'Origin url'
save_label: 'Save' save_label: 'Save'
public: public:
shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" 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' page_title: 'Editar un artículo'
title_label: 'Título' title_label: 'Título'
url_label: 'URL' url_label: 'URL'
# origin_url_label: 'Origin url'
save_label: 'Guardar' save_label: 'Guardar'
public: public:
shared_by_wallabag: "Este artículo se ha compartido con <a href='%wallabag_instance%'>wallabag</a>" 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: 'ویرایش مقاله' page_title: 'ویرایش مقاله'
title_label: 'عنوان' title_label: 'عنوان'
url_label: 'نشانی' url_label: 'نشانی'
# origin_url_label: 'Origin url'
save_label: 'ذخیره' save_label: 'ذخیره'
public: public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" # 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" page_title: "Éditer un article"
title_label: "Titre" title_label: "Titre"
url_label: "Adresse" url_label: "Adresse"
origin_url_label: "Adresse d'origine"
save_label: "Enregistrer" save_label: "Enregistrer"
public: public:
shared_by_wallabag: "Cet article a été partagé par %username% avec <a href=\"%wallabag_instance%\">wallabag</a>" 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' page_title: 'Modifica voce'
title_label: 'Titolo' title_label: 'Titolo'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salva' save_label: 'Salva'
public: public:
shared_by_wallabag: "Questo articolo è stato condiviso da %username% con <a href='%wallabag_instance%'>wallabag</a>" 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' page_title: 'Modificar un article'
title_label: 'Títol' title_label: 'Títol'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Enregistrar' save_label: 'Enregistrar'
public: public:
shared_by_wallabag: "Aqueste article es estat partejat per <a href='%wallabag_instance%'>wallabag</a>" 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' page_title: 'Edytuj wpis'
title_label: 'Tytuł' title_label: 'Tytuł'
url_label: 'Adres URL' url_label: 'Adres URL'
# origin_url_label: 'Origin url'
save_label: 'Zapisz' save_label: 'Zapisz'
public: public:
shared_by_wallabag: "Ten artykuł został udostępniony przez <a href='%wallabag_instance%'>wallabag</a>" 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' page_title: 'Editar uma entrada'
title_label: 'Título' title_label: 'Título'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salvar' save_label: 'Salvar'
public: public:
shared_by_wallabag: "Este artigo foi compartilhado pelo <a href='%wallabag_instance%'>wallabag</a>" 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' # page_title: 'Edit an entry'
# title_label: 'Title' # title_label: 'Title'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Salvează' save_label: 'Salvează'
public: public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" # 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' page_title: 'Makaleyi düzenle'
title_label: 'Başlık' title_label: 'Başlık'
url_label: 'Url' url_label: 'Url'
# origin_url_label: 'Origin url'
save_label: 'Kaydet' save_label: 'Kaydet'
public: public:
# shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" # 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_label(form.url) }}
{{ form_widget(form.url) }} {{ form_widget(form.url) }}
</div> </div>
<div class="input-field s12">
{{ form_label(form.origin_url) }}
{{ form_widget(form.origin_url) }}
</div>
<br> <br>
{{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}