diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-06-20 16:40:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 16:40:48 +0200 |
commit | 80784b782becfaa297e6d9cbb0584e27739cffc8 (patch) | |
tree | fc201969597b16070d890b0703568618a81a76bc /src/Wallabag/CoreBundle/Resources | |
parent | 604cca1f4247f9f905e57b9276cf2543cfa41a5d (diff) | |
parent | f44dba22fc1a566cb156d9e6eda5afc353163eda (diff) | |
download | wallabag-80784b782becfaa297e6d9cbb0584e27739cffc8.tar.gz wallabag-80784b782becfaa297e6d9cbb0584e27739cffc8.tar.zst wallabag-80784b782becfaa297e6d9cbb0584e27739cffc8.zip |
Merge pull request #2683 from wallabag/credentials-in-db
Store credentials in DB
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
22 files changed, 640 insertions, 15 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 4be79547..e09b0f18 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -63,7 +63,8 @@ services: | |||
63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder | 63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder |
64 | arguments: | 64 | arguments: |
65 | - "@wallabag_core.graby.config_builder" | 65 | - "@wallabag_core.graby.config_builder" |
66 | - "%sites_credentials%" | 66 | - "@security.token_storage" |
67 | - "@wallabag_core.site_credential_repository" | ||
67 | - '@logger' | 68 | - '@logger' |
68 | tags: | 69 | tags: |
69 | - { name: monolog.logger, channel: graby } | 70 | - { name: monolog.logger, channel: graby } |
@@ -120,6 +121,14 @@ services: | |||
120 | arguments: | 121 | arguments: |
121 | - WallabagCoreBundle:Tag | 122 | - WallabagCoreBundle:Tag |
122 | 123 | ||
124 | wallabag_core.site_credential_repository: | ||
125 | class: Wallabag\CoreBundle\Repository\SiteCredentialRepository | ||
126 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | ||
127 | arguments: | ||
128 | - WallabagCoreBundle:SiteCredential | ||
129 | calls: | ||
130 | - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ] | ||
131 | |||
123 | wallabag_core.helper.entries_export: | 132 | wallabag_core.helper.entries_export: |
124 | class: Wallabag\CoreBundle\Helper\EntriesExport | 133 | class: Wallabag\CoreBundle\Helper\EntriesExport |
125 | arguments: | 134 | arguments: |
@@ -201,3 +210,9 @@ services: | |||
201 | 210 | ||
202 | wallabag_core.entry.download_images.client: | 211 | wallabag_core.entry.download_images.client: |
203 | class: GuzzleHttp\Client | 212 | class: GuzzleHttp\Client |
213 | |||
214 | wallabag_core.helper.crypto_proxy: | ||
215 | class: Wallabag\CoreBundle\Helper\CryptoProxy | ||
216 | arguments: | ||
217 | - "%wallabag_core.site_credentials.encryption_key_path%" | ||
218 | - "@logger" | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 02dd04f2..a91a0ce4 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Tilbage til de ulæste artikler' | 33 | back_to_unread: 'Tilbage til de ulæste artikler' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Tilføj ny artikel' | 37 | add_new_entry: 'Tilføj ny artikel' |
37 | search: 'Søg' | 38 | search: 'Søg' |
@@ -520,6 +521,26 @@ user: | |||
520 | search: | 521 | search: |
521 | # placeholder: Filter by username or email | 522 | # placeholder: Filter by username or email |
522 | 523 | ||
524 | site_credential: | ||
525 | # page_title: Site credentials management | ||
526 | # new_site_credential: Create a credential | ||
527 | # edit_site_credential: Edit an existing credential | ||
528 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
529 | # list: | ||
530 | # actions: Actions | ||
531 | # edit_action: Edit | ||
532 | # yes: Yes | ||
533 | # no: No | ||
534 | # create_new_one: Create a new credential | ||
535 | # form: | ||
536 | # username_label: 'Username' | ||
537 | # host_label: 'Host' | ||
538 | # password_label: 'Password' | ||
539 | # save: Save | ||
540 | # delete: Delete | ||
541 | # delete_confirm: Are you sure? | ||
542 | # back_to_list: Back to list | ||
543 | |||
523 | error: | 544 | error: |
524 | # page_title: An error occurred | 545 | # page_title: An error occurred |
525 | 546 | ||
@@ -572,3 +593,8 @@ flashes: | |||
572 | # added: 'User "%username%" added' | 593 | # added: 'User "%username%" added' |
573 | # updated: 'User "%username%" updated' | 594 | # updated: 'User "%username%" updated' |
574 | # deleted: 'User "%username%" deleted' | 595 | # deleted: 'User "%username%" deleted' |
596 | site_credential: | ||
597 | notice: | ||
598 | # added: 'Site credential for "%host%" added' | ||
599 | # updated: 'Site credential for "%host%" updated' | ||
600 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index f6ccdae0..e77cdca3 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Link speichern' | 32 | save_link: 'Link speichern' |
33 | back_to_unread: 'Zurück zu ungelesenen Artikeln' | 33 | back_to_unread: 'Zurück zu ungelesenen Artikeln' |
34 | users_management: 'Benutzerverwaltung' | 34 | users_management: 'Benutzerverwaltung' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Neuen Artikel hinzufügen' | 37 | add_new_entry: 'Neuen Artikel hinzufügen' |
37 | search: 'Suche' | 38 | search: 'Suche' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | placeholder: Filtere nach Benutzer oder E-Mail-Adresse | 523 | placeholder: Filtere nach Benutzer oder E-Mail-Adresse |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | list: | ||
531 | actions: Aktionen | ||
532 | edit_action: Bearbeiten | ||
533 | yes: Ja | ||
534 | no: Nein | ||
535 | # create_new_one: Create a new credential | ||
536 | form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | save: Speichern | ||
541 | delete: Löschen | ||
542 | delete_confirm: Bist du sicher? | ||
543 | back_to_list: Zurück zur Liste | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: Ein Fehler ist aufgetreten | 546 | page_title: Ein Fehler ist aufgetreten |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'Benutzer "%username%" hinzugefügt' | 594 | added: 'Benutzer "%username%" hinzugefügt' |
574 | updated: 'Benutzer "%username%" aktualisiert' | 595 | updated: 'Benutzer "%username%" aktualisiert' |
575 | deleted: 'Benutzer "%username%" gelöscht' | 596 | deleted: 'Benutzer "%username%" gelöscht' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 902c3046..50edab3a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Save a link' | 32 | save_link: 'Save a link' |
33 | back_to_unread: 'Back to unread articles' | 33 | back_to_unread: 'Back to unread articles' |
34 | users_management: 'Users management' | 34 | users_management: 'Users management' |
35 | site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Add a new entry' | 37 | add_new_entry: 'Add a new entry' |
37 | search: 'Search' | 38 | search: 'Search' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | placeholder: Filter by username or email | 523 | placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | page_title: Site credentials management | ||
527 | new_site_credential: Create a credential | ||
528 | edit_site_credential: Edit an existing credential | ||
529 | description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | list: | ||
531 | actions: Actions | ||
532 | edit_action: Edit | ||
533 | yes: Yes | ||
534 | no: No | ||
535 | create_new_one: Create a new credential | ||
536 | form: | ||
537 | username_label: 'Username' | ||
538 | host_label: 'Host' | ||
539 | password_label: 'Password' | ||
540 | save: Save | ||
541 | delete: Delete | ||
542 | delete_confirm: Are you sure? | ||
543 | back_to_list: Back to list | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: An error occurred | 546 | page_title: An error occurred |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'User "%username%" added' | 594 | added: 'User "%username%" added' |
574 | updated: 'User "%username%" updated' | 595 | updated: 'User "%username%" updated' |
575 | deleted: 'User "%username%" deleted' | 596 | deleted: 'User "%username%" deleted' |
597 | site_credential: | ||
598 | notice: | ||
599 | added: 'Site credential for "%host%" added' | ||
600 | updated: 'Site credential for "%host%" updated' | ||
601 | deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index afd6a7b1..6fbf00eb 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Guardar un enlace' | 32 | save_link: 'Guardar un enlace' |
33 | back_to_unread: 'Volver a los artículos sin leer' | 33 | back_to_unread: 'Volver a los artículos sin leer' |
34 | users_management: 'Configuración de usuarios' | 34 | users_management: 'Configuración de usuarios' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Añadir un nuevo artículo' | 37 | add_new_entry: 'Añadir un nuevo artículo' |
37 | search: 'Buscar' | 38 | search: 'Buscar' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | # list: | ||
531 | # actions: Actions | ||
532 | # edit_action: Edit | ||
533 | # yes: Yes | ||
534 | # no: No | ||
535 | # create_new_one: Create a new credential | ||
536 | # form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | # save: Save | ||
541 | # delete: Delete | ||
542 | # delete_confirm: Are you sure? | ||
543 | # back_to_list: Back to list | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: Ha ocurrido un error | 546 | page_title: Ha ocurrido un error |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'Añadido el usuario "%username%"' | 594 | added: 'Añadido el usuario "%username%"' |
574 | updated: 'Actualizado el usuario "%username%"' | 595 | updated: 'Actualizado el usuario "%username%"' |
575 | deleted: 'Eliminado el usuario "%username%"' | 596 | deleted: 'Eliminado el usuario "%username%"' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index 545514b3..ad7d6cd9 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'ذخیرهٔ یک پیوند' | 32 | save_link: 'ذخیرهٔ یک پیوند' |
33 | back_to_unread: 'بازگشت به خواندهنشدهها' | 33 | back_to_unread: 'بازگشت به خواندهنشدهها' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'افزودن مقالهٔ تازه' | 37 | add_new_entry: 'افزودن مقالهٔ تازه' |
37 | search: 'جستجو' | 38 | search: 'جستجو' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | # list: | ||
531 | # actions: Actions | ||
532 | # edit_action: Edit | ||
533 | # yes: Yes | ||
534 | # no: No | ||
535 | # create_new_one: Create a new credential | ||
536 | # form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | # save: Save | ||
541 | # delete: Delete | ||
542 | # delete_confirm: Are you sure? | ||
543 | # back_to_list: Back to list | ||
544 | |||
524 | error: | 545 | error: |
525 | # page_title: An error occurred | 546 | # page_title: An error occurred |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 594 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 595 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 596 | # deleted: 'User "%username%" deleted' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index e9e79c67..c4b029c3 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: "Sauvegarder un nouvel article" | 32 | save_link: "Sauvegarder un nouvel article" |
33 | back_to_unread: "Retour aux articles non lus" | 33 | back_to_unread: "Retour aux articles non lus" |
34 | users_management: "Gestion des utilisateurs" | 34 | users_management: "Gestion des utilisateurs" |
35 | site_credentials: 'Accès aux sites' | ||
35 | top: | 36 | top: |
36 | add_new_entry: "Sauvegarder un nouvel article" | 37 | add_new_entry: "Sauvegarder un nouvel article" |
37 | search: "Rechercher" | 38 | search: "Rechercher" |
@@ -516,11 +517,31 @@ user: | |||
516 | twofactor_label: "Double authentification" | 517 | twofactor_label: "Double authentification" |
517 | save: "Sauvegarder" | 518 | save: "Sauvegarder" |
518 | delete: "Supprimer" | 519 | delete: "Supprimer" |
519 | delete_confirm: "Voulez-vous vraiment ?" | 520 | delete_confirm: "Êtes-vous sûr ?" |
520 | back_to_list: "Revenir à la liste" | 521 | back_to_list: "Revenir à la liste" |
521 | search: | 522 | search: |
522 | placeholder: "Filtrer par nom d’utilisateur ou email" | 523 | placeholder: "Filtrer par nom d’utilisateur ou email" |
523 | 524 | ||
525 | site_credential: | ||
526 | page_title: Gestion des accès aux sites | ||
527 | new_site_credential: Créer un accès à un site | ||
528 | edit_site_credential: Éditer l'accès d'un site | ||
529 | description: "Ici vous pouvez gérer les accès aux différents sites. Ces accès permettent de récupérer des contenus sur des sites qui requièrent une authentification ou un paywall" | ||
530 | list: | ||
531 | actions: Actions | ||
532 | edit_action: Éditer | ||
533 | yes: Oui | ||
534 | no: Non | ||
535 | create_new_one: Créer un nouvel accès à un site | ||
536 | form: | ||
537 | username_label: 'Identifiant' | ||
538 | host_label: 'Domaine' | ||
539 | password_label: 'Mot de passe' | ||
540 | save: "Sauvegarder" | ||
541 | delete: "Supprimer" | ||
542 | delete_confirm: "Êtes-vous sûr ?" | ||
543 | back_to_list: "Revenir à la liste" | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: "Une erreur est survenue" | 546 | page_title: "Une erreur est survenue" |
526 | 547 | ||
@@ -570,6 +591,11 @@ flashes: | |||
570 | client_deleted: "Client %name% supprimé" | 591 | client_deleted: "Client %name% supprimé" |
571 | user: | 592 | user: |
572 | notice: | 593 | notice: |
573 | added: "Utilisateur \"%username%\" ajouté" | 594 | added: 'Utilisateur "%username%" ajouté' |
574 | updated: "Utilisateur \"%username%\" mis à jour" | 595 | updated: 'Utilisateur "%username%" mis à jour' |
575 | deleted: "Utilisateur \"%username%\" supprimé" | 596 | deleted: 'Utilisateur "%username%" supprimé' |
597 | site_credential: | ||
598 | notice: | ||
599 | added: 'Accès au site "%host%" ajouté' | ||
600 | updated: 'Accès au site "%host%" mis à jour' | ||
601 | deleted: 'Accès au site "%host%" supprimé' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index 0597d3e3..4bd04aad 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Salva collegamento' | 32 | save_link: 'Salva collegamento' |
33 | back_to_unread: 'Torna ai contenuti non letti' | 33 | back_to_unread: 'Torna ai contenuti non letti' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Aggiungi un nuovo contenuto' | 37 | add_new_entry: 'Aggiungi un nuovo contenuto' |
37 | search: 'Cerca' | 38 | search: 'Cerca' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | # list: | ||
531 | # actions: Actions | ||
532 | # edit_action: Edit | ||
533 | # yes: Yes | ||
534 | # no: No | ||
535 | # create_new_one: Create a new credential | ||
536 | # form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | # save: Save | ||
541 | # delete: Delete | ||
542 | # delete_confirm: Are you sure? | ||
543 | # back_to_list: Back to list | ||
544 | |||
524 | error: | 545 | error: |
525 | # page_title: An error occurred | 546 | # page_title: An error occurred |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 594 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 595 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 596 | # deleted: 'User "%username%" deleted' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml index c172a0f6..a6dd4dcd 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Enregistrar un novèl article' | 32 | save_link: 'Enregistrar un novèl article' |
33 | back_to_unread: 'Tornar als articles pas legits' | 33 | back_to_unread: 'Tornar als articles pas legits' |
34 | users_management: 'Gestion dels utilizaires' | 34 | users_management: 'Gestion dels utilizaires' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Enregistrar un novèl article' | 37 | add_new_entry: 'Enregistrar un novèl article' |
37 | search: 'Cercar' | 38 | search: 'Cercar' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | placeholder: "Filtrar per nom d'utilizaire o corrièl" | 523 | placeholder: "Filtrar per nom d'utilizaire o corrièl" |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | list: | ||
531 | actions: 'Accions' | ||
532 | edit_action: 'Modificar' | ||
533 | yes: 'Òc' | ||
534 | no: 'Non' | ||
535 | # create_new_one: Create a new credential | ||
536 | form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | save: 'Enregistrar' | ||
541 | delete: 'Suprimir' | ||
542 | delete_confirm: 'Sètz segur ?' | ||
543 | back_to_list: 'Tornar a la lista' | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: Una error s'es produsida | 546 | page_title: Una error s'es produsida |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'Utilizaire "%username%" ajustat' | 594 | added: 'Utilizaire "%username%" ajustat' |
574 | updated: 'Utilizaire "%username%" mes a jorn' | 595 | updated: 'Utilizaire "%username%" mes a jorn' |
575 | deleted: 'Utilizaire "%username%" suprimit' | 596 | deleted: 'Utilizaire "%username%" suprimit' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index 82d16767..7312abd7 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Zapisz link' | 32 | save_link: 'Zapisz link' |
33 | back_to_unread: 'Powrót do nieprzeczytanych artykułów' | 33 | back_to_unread: 'Powrót do nieprzeczytanych artykułów' |
34 | users_management: 'Zarządzanie użytkownikami' | 34 | users_management: 'Zarządzanie użytkownikami' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Dodaj nowy wpis' | 37 | add_new_entry: 'Dodaj nowy wpis' |
37 | search: 'Szukaj' | 38 | search: 'Szukaj' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | placeholder: Filtruj po nazwie użytkownika lub adresie e-mail | 523 | placeholder: Filtruj po nazwie użytkownika lub adresie e-mail |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | list: | ||
531 | actions: Akcje | ||
532 | edit_action: Edytuj | ||
533 | yes: Tak | ||
534 | no: Nie | ||
535 | # create_new_one: Create a new credential | ||
536 | form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | save: Zapisz | ||
541 | delete: Usuń | ||
542 | delete_confirm: Jesteś pewien? | ||
543 | back_to_list: Powrót do listy | ||
544 | |||
524 | error: | 545 | error: |
525 | page_title: Wystąpił błąd | 546 | page_title: Wystąpił błąd |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'Użytkownik "%username%" dodany' | 594 | added: 'Użytkownik "%username%" dodany' |
574 | updated: 'Użytkownik "%username%" zaktualizowany' | 595 | updated: 'Użytkownik "%username%" zaktualizowany' |
575 | deleted: 'Użytkownik "%username%" usunięty' | 596 | deleted: 'Użytkownik "%username%" usunięty' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml index b75567d6..18090352 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Salvar um link' | 32 | save_link: 'Salvar um link' |
33 | back_to_unread: 'Voltar para os artigos não lidos' | 33 | back_to_unread: 'Voltar para os artigos não lidos' |
34 | users_management: 'Gestão de Usuários' | 34 | users_management: 'Gestão de Usuários' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Adicionar uma nova entrada' | 37 | add_new_entry: 'Adicionar uma nova entrada' |
37 | search: 'Pesquisa' | 38 | search: 'Pesquisa' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | list: | ||
531 | actions: 'Ações' | ||
532 | edit_action: 'Editar' | ||
533 | yes: 'Sim' | ||
534 | no: 'Não' | ||
535 | # create_new_one: Create a new credential | ||
536 | form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | save: 'Salvar' | ||
541 | delete: 'Apagar' | ||
542 | delete_confirm: 'Tem certeza?' | ||
543 | back_to_list: 'Voltar para a lista' | ||
544 | |||
524 | error: | 545 | error: |
525 | # page_title: An error occurred | 546 | # page_title: An error occurred |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | added: 'Usuário "%username%" adicionado' | 594 | added: 'Usuário "%username%" adicionado' |
574 | updated: 'Usuário "%username%" atualizado' | 595 | updated: 'Usuário "%username%" atualizado' |
575 | deleted: 'Usuário "%username%" removido' | 596 | deleted: 'Usuário "%username%" removido' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index 95df573d..f8866fdc 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Înapoi la articolele necitite' | 33 | back_to_unread: 'Înapoi la articolele necitite' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Introdu un nou articol' | 37 | add_new_entry: 'Introdu un nou articol' |
37 | search: 'Căutare' | 38 | search: 'Căutare' |
@@ -521,6 +522,26 @@ user: | |||
521 | search: | 522 | search: |
522 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
523 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | # list: | ||
531 | # actions: Actions | ||
532 | # edit_action: Edit | ||
533 | # yes: Yes | ||
534 | # no: No | ||
535 | # create_new_one: Create a new credential | ||
536 | # form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | # save: Save | ||
541 | # delete: Delete | ||
542 | # delete_confirm: Are you sure? | ||
543 | # back_to_list: Back to list | ||
544 | |||
524 | error: | 545 | error: |
525 | # page_title: An error occurred | 546 | # page_title: An error occurred |
526 | 547 | ||
@@ -573,3 +594,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 594 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 595 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 596 | # deleted: 'User "%username%" deleted' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 61e1a1ea..4d01e7f7 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Okunmayan makalelere geri dön' | 33 | back_to_unread: 'Okunmayan makalelere geri dön' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Yeni bir makale ekle' | 37 | add_new_entry: 'Yeni bir makale ekle' |
37 | search: 'Ara' | 38 | search: 'Ara' |
@@ -571,3 +572,8 @@ flashes: | |||
571 | # added: 'User "%username%" added' | 572 | # added: 'User "%username%" added' |
572 | # updated: 'User "%username%" updated' | 573 | # updated: 'User "%username%" updated' |
573 | # deleted: 'User "%username%" deleted' | 574 | # deleted: 'User "%username%" deleted' |
575 | site_credential: | ||
576 | notice: | ||
577 | # added: 'Site credential for "%host%" added' | ||
578 | # updated: 'Site credential for "%host%" updated' | ||
579 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig new file mode 100644 index 00000000..882be430 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig | |||
@@ -0,0 +1,60 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.edit_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(edit_form) }} | ||
16 | {{ form_errors(edit_form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(edit_form.host) }} | ||
21 | {{ form_errors(edit_form.host) }} | ||
22 | {{ form_widget(edit_form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(edit_form.username) }} | ||
29 | {{ form_errors(edit_form.username) }} | ||
30 | {{ form_widget(edit_form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(edit_form.password) }} | ||
37 | {{ form_errors(edit_form.password) }} | ||
38 | {{ form_widget(edit_form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | <br/> | ||
43 | |||
44 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
45 | {{ form_widget(edit_form._token) }} | ||
46 | </form> | ||
47 | <p> | ||
48 | {{ form_start(delete_form) }} | ||
49 | <button onclick="return confirm('{{ 'site_credential.form.delete_confirm'|trans|escape('js') }}')" type="submit" class="btn waves-effect waves-light red">{{ 'site_credential.form.delete'|trans }}</button> | ||
50 | {{ form_end(delete_form) }} | ||
51 | </p> | ||
52 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
53 | </div> | ||
54 | </div> | ||
55 | </div> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | |||
60 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig new file mode 100644 index 00000000..324854ad --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <p class="help">{{ 'site_credential.description'|trans|raw }}</p> | ||
13 | |||
14 | <table class="bordered"> | ||
15 | <thead> | ||
16 | <tr> | ||
17 | <th>{{ 'site_credential.form.host_label'|trans }}</th> | ||
18 | <th>{{ 'site_credential.list.actions'|trans }}</th> | ||
19 | </tr> | ||
20 | </thead> | ||
21 | <tbody> | ||
22 | {% for credential in credentials %} | ||
23 | <tr> | ||
24 | <td>{{ credential.host }}</td> | ||
25 | <td> | ||
26 | <a href="{{ path('site_credentials_edit', { 'id': credential.id }) }}">{{ 'site_credential.list.edit_action'|trans }}</a> | ||
27 | </td> | ||
28 | </tr> | ||
29 | {% endfor %} | ||
30 | </tbody> | ||
31 | </table> | ||
32 | <br /> | ||
33 | <p> | ||
34 | <a href="{{ path('site_credentials_new') }}" class="waves-effect waves-light btn">{{ 'site_credential.list.create_new_one'|trans }}</a> | ||
35 | </p> | ||
36 | </div> | ||
37 | </div> | ||
38 | </div> | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig new file mode 100644 index 00000000..3c008cde --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig | |||
@@ -0,0 +1,53 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.new_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(form) }} | ||
16 | {{ form_errors(form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(form.host) }} | ||
21 | {{ form_errors(form.host) }} | ||
22 | {{ form_widget(form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(form.username) }} | ||
29 | {{ form_errors(form.username) }} | ||
30 | {{ form_widget(form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(form.password) }} | ||
37 | {{ form_errors(form.password) }} | ||
38 | {{ form_widget(form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
43 | {{ form_rest(form) }} | ||
44 | </form> | ||
45 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
46 | </div> | ||
47 | </div> | ||
48 | </div> | ||
49 | </div> | ||
50 | </div> | ||
51 | </div> | ||
52 | |||
53 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig index 42aeace9..17fa13bb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig | |||
@@ -38,6 +38,9 @@ | |||
38 | {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} | 38 | {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} |
39 | </div> | 39 | </div> |
40 | </li> | 40 | </li> |
41 | {% if craue_setting('restricted_access') %} | ||
42 | <li class="menu site_credentials"><a href="{{ path('site_credentials_index') }}">{{ 'menu.left.site_credentials'|trans }}</a></li> | ||
43 | {% endif %} | ||
41 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> | 44 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> |
42 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 45 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
43 | <li class="menu users"><a href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a></li> | 46 | <li class="menu users"><a href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a></li> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 9b0816eb..1e10bf38 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -66,13 +66,13 @@ | |||
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | 68 | ||
69 | <div class="row"> | 69 | <div class="row"> |
70 | <div class="input-field col s12"> | 70 | <div class="input-field col s12"> |
71 | {{ form_errors(form.config.action_mark_as_read) }} | 71 | {{ form_label(form.config.action_mark_as_read) }} |
72 | {{ form_widget(form.config.action_mark_as_read) }} | 72 | {{ form_errors(form.config.action_mark_as_read) }} |
73 | {{ form_label(form.config.action_mark_as_read) }} | 73 | {{ form_widget(form.config.action_mark_as_read) }} |
74 | </div> | ||
74 | </div> | 75 | </div> |
75 | </div> | ||
76 | 76 | ||
77 | <div class="row"> | 77 | <div class="row"> |
78 | <div class="input-field col s11"> | 78 | <div class="input-field col s11"> |
@@ -254,11 +254,11 @@ | |||
254 | {{ form_start(form.pwd) }} | 254 | {{ form_start(form.pwd) }} |
255 | {{ form_errors(form.pwd) }} | 255 | {{ form_errors(form.pwd) }} |
256 | 256 | ||
257 | <div class="row"> | 257 | <div class="row"> |
258 | <div class="input-field col s12"> | 258 | <div class="input-field col s12"> |
259 | {{ 'config.form_password.description'|trans }} | 259 | {{ 'config.form_password.description'|trans }} |
260 | </div> | ||
260 | </div> | 261 | </div> |
261 | </div> | ||
262 | 262 | ||
263 | <div class="row"> | 263 | <div class="row"> |
264 | <div class="input-field col s12"> | 264 | <div class="input-field col s12"> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig new file mode 100644 index 00000000..882be430 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig | |||
@@ -0,0 +1,60 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.edit_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(edit_form) }} | ||
16 | {{ form_errors(edit_form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(edit_form.host) }} | ||
21 | {{ form_errors(edit_form.host) }} | ||
22 | {{ form_widget(edit_form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(edit_form.username) }} | ||
29 | {{ form_errors(edit_form.username) }} | ||
30 | {{ form_widget(edit_form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(edit_form.password) }} | ||
37 | {{ form_errors(edit_form.password) }} | ||
38 | {{ form_widget(edit_form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | <br/> | ||
43 | |||
44 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
45 | {{ form_widget(edit_form._token) }} | ||
46 | </form> | ||
47 | <p> | ||
48 | {{ form_start(delete_form) }} | ||
49 | <button onclick="return confirm('{{ 'site_credential.form.delete_confirm'|trans|escape('js') }}')" type="submit" class="btn waves-effect waves-light red">{{ 'site_credential.form.delete'|trans }}</button> | ||
50 | {{ form_end(delete_form) }} | ||
51 | </p> | ||
52 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
53 | </div> | ||
54 | </div> | ||
55 | </div> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | |||
60 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig new file mode 100644 index 00000000..324854ad --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <p class="help">{{ 'site_credential.description'|trans|raw }}</p> | ||
13 | |||
14 | <table class="bordered"> | ||
15 | <thead> | ||
16 | <tr> | ||
17 | <th>{{ 'site_credential.form.host_label'|trans }}</th> | ||
18 | <th>{{ 'site_credential.list.actions'|trans }}</th> | ||
19 | </tr> | ||
20 | </thead> | ||
21 | <tbody> | ||
22 | {% for credential in credentials %} | ||
23 | <tr> | ||
24 | <td>{{ credential.host }}</td> | ||
25 | <td> | ||
26 | <a href="{{ path('site_credentials_edit', { 'id': credential.id }) }}">{{ 'site_credential.list.edit_action'|trans }}</a> | ||
27 | </td> | ||
28 | </tr> | ||
29 | {% endfor %} | ||
30 | </tbody> | ||
31 | </table> | ||
32 | <br /> | ||
33 | <p> | ||
34 | <a href="{{ path('site_credentials_new') }}" class="waves-effect waves-light btn">{{ 'site_credential.list.create_new_one'|trans }}</a> | ||
35 | </p> | ||
36 | </div> | ||
37 | </div> | ||
38 | </div> | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig new file mode 100644 index 00000000..3c008cde --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig | |||
@@ -0,0 +1,53 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.new_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(form) }} | ||
16 | {{ form_errors(form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(form.host) }} | ||
21 | {{ form_errors(form.host) }} | ||
22 | {{ form_widget(form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(form.username) }} | ||
29 | {{ form_errors(form.username) }} | ||
30 | {{ form_widget(form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(form.password) }} | ||
37 | {{ form_errors(form.password) }} | ||
38 | {{ form_widget(form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
43 | {{ form_rest(form) }} | ||
44 | </form> | ||
45 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
46 | </div> | ||
47 | </div> | ||
48 | </div> | ||
49 | </div> | ||
50 | </div> | ||
51 | </div> | ||
52 | |||
53 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig index 2dab1c18..60907e11 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig | |||
@@ -66,6 +66,11 @@ | |||
66 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"> | 66 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"> |
67 | <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a> | 67 | <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a> |
68 | </li> | 68 | </li> |
69 | {% if craue_setting('restricted_access') %} | ||
70 | <li class="bold {% if currentRoute starts with 'site_credentials_' %}active{% endif %}"> | ||
71 | <a class="waves-effect" href="{{ path('site_credentials_index') }}">{{ 'menu.left.site_credentials'|trans }}</a> | ||
72 | </li> | ||
73 | {% endif %} | ||
69 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 74 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
70 | <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}"> | 75 | <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}"> |
71 | <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a> | 76 | <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a> |