mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
privacy policy public page
This commit is contained in:
parent
43ff06c35d
commit
5bdaebb2f2
10
app/assets/javascripts/controllers/privacy.js
Normal file
10
app/assets/javascripts/controllers/privacy.js
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
Application.Controllers.controller('PrivacyController', ['$scope', 'Setting', function ($scope, Setting) {
|
||||
/* PUBLIC SCOPE */
|
||||
|
||||
Setting.get({ name: 'privacy_body' }, data => { $scope.privacyBody = data.setting; });
|
||||
|
||||
Setting.get({ name: 'privacy_dpo' }, data => { $scope.privacyDpo = data.setting; });
|
||||
}
|
||||
]);
|
@ -98,6 +98,18 @@ angular.module('application.router', ['ui.router'])
|
||||
translations: ['Translations', function (Translations) { return Translations.query('app.public.home').$promise; }]
|
||||
}
|
||||
})
|
||||
.state('app.public.privacy', {
|
||||
url: '/privacy-policy',
|
||||
views: {
|
||||
'content@': {
|
||||
templateUrl: '<%= asset_path "shared/privacy.html" %>',
|
||||
controller: 'PrivacyController'
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
translations: ['Translations', function (Translations) { return Translations.query('app.public.privacy').$promise; }]
|
||||
}
|
||||
})
|
||||
|
||||
// profile completion (SSO import passage point)
|
||||
.state('app.logged.profileCompletion', {
|
||||
|
@ -11,15 +11,18 @@
|
||||
<div class="col-sm-offset-1 col-md-offset-3 col-sm-7 col-md-5 col-lg-4 m-b-lg">
|
||||
<span ng-bind-html="aboutBody.value"></span>
|
||||
<p ng-show="cgu">
|
||||
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'read_the_fablab_policy' }}</a>
|
||||
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'about.read_the_fablab_policy' }}</a>
|
||||
</p>
|
||||
<p ng-show="cgv">
|
||||
<a href="{{cgv.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'read_the_fablab_s_general_terms_and_conditions' }}</a>
|
||||
<a href="{{cgv.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'about.read_the_fablab_s_general_terms_and_conditions' }}</a>
|
||||
</p>
|
||||
<p ng-show="cgv">
|
||||
<a ui-sref="app.public.privacy" translate>{{ 'about.privacy_policy' }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-offset-0 col-md-offset-0 col-lg-offset-1 col-sm-4 col-md-4">
|
||||
<h2 class="about-title-aside text-u-c" translate translate>{{ 'your_fablab_s_contacts' }}</h2>
|
||||
<h2 class="about-title-aside text-u-c" translate>{{ 'about.your_fablab_s_contacts' }}</h2>
|
||||
<span ng-bind-html="aboutContacts.value"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
20
app/assets/templates/shared/privacy.html.erb
Normal file
20
app/assets/templates/shared/privacy.html.erb
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="about-fablab scrollable">
|
||||
<div class="row padder">
|
||||
<header class="about-picture">
|
||||
<div class="col-sm-offset-2 col-md-offset-3 col-sm-10 col-md-8">
|
||||
<h1 class="about-title text-u-c" translate>{{ 'privacy.title' }}</h1>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="row padder">
|
||||
<div class="col-sm-offset-1 col-md-offset-3 col-sm-7 col-md-5 col-lg-4 m-b-lg">
|
||||
<span ng-bind-html="privacyBody.value"></span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-offset-0 col-md-offset-0 col-lg-offset-1 col-sm-4 col-md-4">
|
||||
<h2 class="about-title-aside text-u-c" translate>{{ 'privacy.dpo' }}</h2>
|
||||
<span ng-bind-html="privacyDpo.value"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -112,9 +112,17 @@ en:
|
||||
|
||||
about:
|
||||
# about page
|
||||
read_the_fablab_policy: "Read the FabLab policy"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Read the FabLab's general terms and conditions"
|
||||
your_fablab_s_contacts: "Your FabLab's contacts"
|
||||
about:
|
||||
read_the_fablab_policy: "Read the FabLab policy"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Read the FabLab's general terms and conditions"
|
||||
your_fablab_s_contacts: "Your FabLab's contacts"
|
||||
privacy_policy: "Privacy policy"
|
||||
|
||||
privacy:
|
||||
# 'privacy policy' page
|
||||
privacy:
|
||||
title: "Privacy policy"
|
||||
dpo: "Data protection officer"
|
||||
|
||||
home:
|
||||
# home page
|
||||
|
@ -111,9 +111,17 @@ es:
|
||||
|
||||
about:
|
||||
# about page
|
||||
read_the_fablab_policy: "Leer la politica del FabLab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Leer los terminos y condiciones del FabLab"
|
||||
your_fablab_s_contacts: "Sus contactos del FabLab"
|
||||
about:
|
||||
read_the_fablab_policy: "Leer la politica del FabLab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Leer los terminos y condiciones del FabLab"
|
||||
your_fablab_s_contacts: "Sus contactos del FabLab"
|
||||
privacy_policy: "Política de privacidad"
|
||||
|
||||
privacy:
|
||||
# 'privacy policy' page
|
||||
privacy:
|
||||
title: "Política de privacidad"
|
||||
dpo: "Oficial de protección de datos"
|
||||
|
||||
home:
|
||||
# home page
|
||||
|
@ -112,9 +112,17 @@ fr:
|
||||
|
||||
about:
|
||||
# page à propos
|
||||
read_the_fablab_policy: "Consulter les règles d'utilisation du Fab Lab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Consulter les conditions générales de vente du Fab Lab"
|
||||
your_fablab_s_contacts: "Vos contacts au Fab Lab"
|
||||
about:
|
||||
read_the_fablab_policy: "Consulter les règles d'utilisation du Fab Lab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Consulter les conditions générales de vente du Fab Lab"
|
||||
your_fablab_s_contacts: "Vos contacts au Fab Lab"
|
||||
privacy_policy: "Politique de confidentialité"
|
||||
|
||||
privacy:
|
||||
# page 'politique de confidentialité'
|
||||
privacy:
|
||||
title: "Politique de confidentialité"
|
||||
dpo: "Délégué à la protection des données"
|
||||
|
||||
home:
|
||||
# page d'accueil
|
||||
|
@ -112,9 +112,17 @@ pt:
|
||||
|
||||
about:
|
||||
# about page
|
||||
read_the_fablab_policy: "Ler a política do FabLab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Ler os termos e condições do FabLab"
|
||||
your_fablab_s_contacts: "Nossos contatos"
|
||||
about:
|
||||
read_the_fablab_policy: "Ler a política do FabLab"
|
||||
read_the_fablab_s_general_terms_and_conditions: "Ler os termos e condições do FabLab"
|
||||
your_fablab_s_contacts: "Nossos contatos"
|
||||
privacy_policy: "Política de privacidade"
|
||||
|
||||
privacy:
|
||||
# 'privacy policy' page
|
||||
privacy:
|
||||
title: "Política de privacidade"
|
||||
dpo: "Oficial de proteção de dados"
|
||||
|
||||
home:
|
||||
# home page
|
||||
|
Loading…
x
Reference in New Issue
Block a user