+ {{ app['phraseanet.registry'].get('GV_homeTitle') }} {{ block('title') }}
+
+
+ diff --git a/templates/web/account/access.html.twig b/templates/web/account/access.html.twig index ee896e667a..ff53f08f55 100644 --- a/templates/web/account/access.html.twig +++ b/templates/web/account/access.html.twig @@ -1,167 +1,175 @@ {% extends 'account/base.html.twig' %} -{% block content %} -
{% endblock %} diff --git a/templates/web/account/account.html.twig b/templates/web/account/account.html.twig index 66203991c3..4d18124b0f 100644 --- a/templates/web/account/account.html.twig +++ b/templates/web/account/account.html.twig @@ -2,12 +2,15 @@ {% import "login/common/macros.html.twig" as auth_macro %} +{% set selected = "informations" %} + {% block head %} - - - + + + + {% endblock %} {% block title %} @@ -15,215 +18,214 @@ {% endblock %} {% block content %} -|
+
+
{% if notice | trim != '' %}
{{ notice }}
{% endif %}
{{ auth_macro.flashes() }}
|
-
|
+
+
-
- {% trans 'Vous avez autorise ces applications a acceder a votre compte' %}- {% if applications|length > 0 %} -
- {% trans 'Aucune application n\'a accés à vos données.' %}
-
- {% endif %}
- |
-
-
-
- {% trans 'Applications' %}-- {% trans 'Naviguez et gerez les applications que vous souhaitez autoriser a acceder a vos informations Phraseanet' %} - -{% trans 'Developpeurs' %}-- {% trans 'Les developpeurs peuvent editer l\'enregistrement de leurs application grace a l\'onglet "developpeurs" ci-dessus' %} - +{% trans 'Vous avez autorise ces applications a acceder a votre compte' %}+ {% if applications|length > 0 %} +
+ {% trans 'Aucune application n\'a accés à vos données.' %}
+
+ {% endif %}
|
-
+ {% trans 'Naviguez et gerez les applications que vous souhaitez autoriser a acceder a vos informations Phraseanet' %} +
++ {% trans 'Les developpeurs peuvent editer l\'enregistrement de leurs application grace a l\'onglet "developpeurs" ci-dessus' %} +
+| - {{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ block('title') }} - | -- | -
{{ app['authentication'].getUser().get_login() }}
+{{ app['authentication'].getUser().get_login() }}
+
| - | -- {% trans 'Date de connexion' %} - | -- {% trans 'Dernier access' %} - | -- {% trans 'IP' %} - | -- {% trans 'Browser' %} - | -- {% trans 'ecran' %} - | -- {% trans 'Session persistante' %} - | -||||||||||||||
|
- {% if app['session'].get('phrasea_session_id') != row.Id() %}
- |
- - {{ app['date-formatter'].getDate(row.getCreated()) }} - | -- {{ app['date-formatter'].getDate(row.getUpdated()) }} - | -- {% set geoname = app['geonames'].find_geoname_from_ip(row.getIpAddress()) %} - - {% if geoname['city'] %} - {% set ip_infos = geoname['city'] ~ ' (' ~ geoname['country'] ~ ')' %} - {% elseif geoname['fips'] %} - {% set ip_infos = geoname['fips'] ~ ' (' ~ geoname['country'] ~ ')' %} - {% elseif geoname['country'] %} - {% set ip_infos = geoname['country'] %} - {% else %} - {% set ip_infos = '' %} - {% endif %} - - {{ row.getIpAddress() }} - {{ ip_infos }} - | -- {{ row.getBrowserName() }} {{ row.getBrowserVersion() }} - | -- {{ row.getScreenWidth() }} x {{ row.getScreenHeight() }} - | -- {% if row.getToken %}{{ yes }}{% endif %} - | +
| + | + {% trans 'Date de connexion' %} + | ++ {% trans 'Dernier access' %} + | ++ {% trans 'IP' %} + | ++ {% trans 'Browser' %} + | ++ {% trans 'ecran' %} + | ++ {% trans 'Session persistante' %} + |
|---|
{% trans 'Les parametres oauth de votre application.' %}
-| Client ID | -{{application.get_client_id}} | -|
| Client Secret | -{{application.get_client_secret}} | -|
| {% trans 'URL de callback' %} | - {% if application.get_type == constant('API_OAuth2_Application::DESKTOP_TYPE') %} -- {{application.get_redirect_uri}} - | - {% else %} -{{application.get_redirect_uri}} - - - | - {%endif%} -
| Authorize endpoint | -{{app['phraseanet.registry'].get('GV_ServerName')}}api/oauthv2/authorize | -|
| Access endpoint | -{{app['phraseanet.registry'].get('GV_ServerName')}}api/oauthv2/token | -|
| {% trans 'Activer le grant_type de type password pour votre application' %} | -- |
{% trans 'Les paramétres oauth de votre application.' %}
-| - {% trans 'Token' %} - | -- - {% if not token is none %} - {{token|default('')}} - {% else %} - {% trans 'Le token n\'a pas encore ete genere' %} - {% endif %} - - | -
| - | - |
{% trans 'Les parametres oauth de votre application.' %}
+ +| Client ID | +{{application.get_client_id()}} | +|
| Client Secret | +{{application.get_client_secret}} | +|
| {% trans 'URL de callback' %} | + {% if application.get_type == constant('API_OAuth2_Application::DESKTOP_TYPE') %} ++ {{application.get_redirect_uri}} + | + {% else %} ++ {{application.get_redirect_uri}} + + + | + {%endif%} +
| Authorize endpoint | +{{app['phraseanet.registry'].get('GV_ServerName')}}api/oauthv2/authorize | +|
| Access endpoint | +{{app['phraseanet.registry'].get('GV_ServerName')}}api/oauthv2/token | +|
| {% trans 'Activer le grant_type de type password pour votre application' %} | ++ |
{% trans 'Les paramétres oauth de votre application.' %}
+ +| + {% trans 'Token' %} + | ++ + {% if not token is none %} + {{token|default('')}} + {% else %} + {% trans 'Le token n\'a pas encore ete genere' %} + {% endif %} + + + | +
| - | {{ _self.input("name", name, violations, 'name') }} | -
| - | {{ _self.textarea("description", description, 'description', violations, 5, 17) }} | -
| - | - - {{ _self.input("website", website, violations, 'urlwebsite') }} | -
| - | {% trans 'Application web' %} - - {% trans 'Application desktop' %} - | -
| - | - - {{ _self.input("callback", callback, violations, 'urlcallback') }} | -
| - | - |
|
+
+
-
- Phraseanet Developer Center-{% trans 'Mes applications' %}- {% if applications|length > 0 %} -
- {% trans 'Aucune application creee.' %}
-
- {% endif %}
+ {% endif %}
|
- - - | -
{% trans 'Decouvrez la documentation' %}
+{% trans 'Creez une application pour commencer a utiliser l\'API Phraseanet' %}
+