Skip to content

Commit 8459425

Browse files
committed
Refactored i18n and added button for profile deletion
1 parent ab4f81d commit 8459425

File tree

6 files changed

+34
-36
lines changed

6 files changed

+34
-36
lines changed

application/modules/Profile/View/Index/Index.phtml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,7 @@ foreach ($spList as $spId => $sp) {
129129
<div id="MyApps">
130130
<p><?php echo $this->t('profile_apps_connected_aps'); ?></p>
131131
<p>
132-
<?php echo $this->t('profile_apps_share',
133-
"<a href=\"https://wiki.surfnetlabs.nl/display/conextsupport/Profile+page\" target=\"_blank\">
134-
<img src=\"/media/question-mark.jpg\" alt=\"SURFconext Information\">
135-
</a>",
136-
"<a href=\"https://wiki.surfnetlabs.nl/display/conextsupport/Profile+page\" target=\"_blank\">
137-
<img src=\"/media/question-mark.jpg\" alt=\"SURFconext Information\">
138-
</a>"
139-
); ?>
132+
<?php echo $this->t('profile_apps_share'); ?>
140133

141134
</p>
142135
<table id="MyAppsTable" class="no-layout-fix">
@@ -223,19 +216,14 @@ foreach ($spList as $spId => $sp) {
223216
<div id="Exit">
224217
<p>
225218
<?php echo $this->t('profile_leave_surfconext_desc'); ?><br />
219+
<form id="delete-confirmation-form" method="post" action="/profile/delete-user">
220+
<input id="delete-confirmation-text"
221+
type="submit" value="<?php echo $this->t('profile_leave_surfconext_link'); ?>"
222+
data-confirmation-text="<?php echo $this->t('profile_leave_surfconext_conf'); ?>" >
223+
</form>
226224

227225
<div class="exit-disclaimer"/>
228-
<?php echo $this->t('profile_leave_surfconext_disclaim',
229-
"<a href=\"https://wiki.surfnetlabs.nl/display/conextsupport/Profile+page\" target=\"_blank\">
230-
<img src=\"/media/question-mark.jpg\" alt=\"SURFconext Information\">
231-
</a>",
232-
"<a href=\"https://wiki.surfnetlabs.nl/display/conextsupport/SURFteams+Best+Practice\" target=\"_blank\">
233-
<img src=\"/media/question-mark.jpg\" alt=\"SURFconext Information\">
234-
</a>"
235-
); ?><br />
226+
<?php echo $this->t('profile_leave_surfconext_disclaim'); ?><br />
236227
</div>
237-
<a class="delete" href="/profile/delete-user"><?php echo $this->t('profile_leave_surfconext_link'); ?></a>
238-
<?php echo $this->t('profile_leave_surfconext_link_add'); ?><br />
239-
<input id="delete-confirmation-text" type="hidden" value="<?php echo $this->t('profile_leave_surfconext_conf'); ?>"/>
240228
</p>
241229
</div>

bin/makeRelease.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ tar -czf ${PROJECT_DIR_NAME}.tar.gz ${PROJECT_DIR_NAME}
7474

7575
# create checksum file
7676
cd ${RELEASE_DIR}
77-
sha1sum ${PROJECT_DIR_NAME}.tar.gz > ${PROJECT_DIR_NAME}.sha
77+
# sha1sum ${PROJECT_DIR_NAME}.tar.gz > ${PROJECT_DIR_NAME}.sha
7878

7979
# sign it if requested
8080
if [ -n "$2" ]

languages/en.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,31 @@
105105
'profile_header_exit' => 'Exit',
106106
'profile_header_auth_needed' => 'Authentication required',
107107
'profile_header_leave_surfconext' => 'Leave SURFconext',
108-
'profile_store_info' => 'The following profile data have been provided by your home institution. These data as well as your group membership data (e.g.SURFteams) will be stored in SURFconext and a subset of this data will be shared with services accessed via SURFconext.',
108+
'profile_store_info' => 'The following profile data have been provided by your home institution. This profile will be stored in (and used by) SURFconext. It is also possible that a subset of this information is provided to services that you accessed via SURFconext.',
109109
'profile_group_membership_desc' => 'You are a member of the following groups.',
110110
'profile_no_groups' => 'No Groups',
111111
'profile_extra_groups_desc' => 'In order to get extra groups you need to authorize their use.',
112-
'profile_leave_surfconext_desc' => 'You currently use SURFconext to access one or more 3rd party application(s) with your institutional account. In addition, your group membership(s) may be shared with these applications.</p>If you would like to quit using SURFconext and delete your SURFconext profile, please click the link below.',
112+
'profile_leave_surfconext_desc' => 'You currently use SURFconext to access one or more applications with your institutional account. It is possible to delete your SURFconext profile by pressing the button below.',
113113
'profile_leave_surfconext_link' => 'Delete my SURFconext account!',
114-
'profile_leave_surfconext_disclaim' => 'Please note: You may reassign group%s, document or content ownership to a collegue. Otherwise ongoing projects may be disrupted and/or content may become inaccessible! Consult the deprovisioning and dataportability good practice section%s for more information',
114+
'profile_leave_surfconext_disclaim' => 'Note:
115+
<ul>
116+
<li>Only information stored in the SURFconext service will be deleted.</li>
117+
<li>Applications accessed with SURFconext will not be notified. It is possible your personal data is still stored in these applications.</li>
118+
<li>After a new SURFconext login automatically a new profile is created.</li>
119+
</ul>
120+
<br>More information about what information is stored by SURFconext can be found on the <a href="https://wiki.surfnet.nl/display/conextsupport/Profile+page" target="_blank">the SURFconext support pages</a>',
115121
'profile_leave_surfconext_link_add' => '(close your browser after this action to finalize the deprovisioning procedure)',
116122
'profile_revoke_access' => 'Revoke access',
117-
'profile_leave_surfconext_conf' => 'Are you sure you want to delete your profile?',
123+
'profile_leave_surfconext_conf' => 'Are you sure you want to delete your profile? You will need to restart your browser to finalize this action',
118124
'profile_eula_link' => 'Terms of use',
119125
'profile_support_link' => 'Support pages',
120126
'profile_mail_text' => 'SURFconext support may ask you to share the above data. This information can help them to answer your support question.',
121127
'profile_mail_attributes' => 'Mail data to help@surfconext.nl',
122128
'profile_mail_send_success' => 'The mail with your information has been successfully send.',
123129

124130
//Profile MyApps
125-
'profile_apps_connected_aps' => 'Connected Apps and Services',
126-
'profile_apps_share' => 'You have shared your profile%s and optionally group information%s with the following services',
131+
'profile_apps_connected_aps' => 'SURFconext Apps',
132+
'profile_apps_share' => 'You have given permission to share profile information with the following services:',
127133
'profile_apps_service_th' => 'Service/App',
128134
'profile_apps_eula_th' => 'EULA',
129135
'profile_apps_support_name_th' => 'Support person name',

languages/nl.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,26 +104,32 @@
104104
'profile_header_surfteams' => 'SURFteams',
105105
'profile_header_auth_needed' => 'Authenticatie vereist',
106106
'profile_header_leave_surfconext' => 'Verlaat SURFconext',
107-
'profile_store_info' => 'Van uw instelling hebben wij de volgende gegevens ontvangen. Deze gegevens, alsmede uw groepsrelaties, worden opgeslagen in (en gebruikt door) SURFconext. Tevens is het mogelijk dat een subset van deze gegevens worden verstrekt aan diensten die u via SURFconext benadert.',
107+
'profile_store_info' => 'Van jouw instelling hebben wij de volgende gegevens ontvangen. Deze gegevens worden opgeslagen in (en gebruikt door) SURFconext. Tevens is het mogelijk dat een subset van deze gegevens worden verstrekt aan diensten die je via SURFconext benadert.',
108108

109109
'profile_group_membership_desc' => 'U bent lid van de volgende groepen.',
110110
'profile_no_groups' => 'Geen Groepen',
111111
'profile_extra_groups_desc' => 'Om uw instellingsgroepen te zien moet u het gebruik hiervoor binnen SURFconext autoriseren.',
112-
'profile_leave_surfconext_desc' => 'Als u geen gebruik meer wilt maken van SURFconext en alle informatie die over u wordt opgeslagen wilt verwijderen, klik dan op de onderstaande link.',
112+
'profile_leave_surfconext_desc' => 'Je gebruikt SURFconext om met je instellingsaccount in te loggen op een of meerdere applicaties. Je kan je SURFconext profiel verwijderen door op onderstaande knop te drukken.',
113113
'profile_leave_surfconext_link' => 'Verwijder mijn profiel!',
114-
'profile_leave_surfconext_disclaim' => 'Belangrijk: Je kan group%s, document en content eigenaarschap overzetten naar een collega. Het gevaar bestaat anders dat lopende projecten schade ondervinden en/of content niet meer toegankelijk is. De deprovisioning en dataportability sectien%s beschrijft best practices op dit gebied',
114+
'profile_leave_surfconext_disclaim' => 'Let op:
115+
<ul>
116+
<li>Alleen de informatie welke in SURFconext wordt opgeslagen zal verwijderd worden.</li>
117+
<li>Diensten waar je met SURFconext op bent ingelogd zullen niet worden ingelicht. Het is dus mogelijk dat jouw persoonlijke gegevens hier nog opgeslagen zijn.</li>
118+
<li>Na een nieuwe login via SURFconext zal er automatisch weer een profiel worden aangemaakt.</li>
119+
</ul>
120+
<br>Meer informatie over welke informatie er wordt opgeslagen door SURFconext kan je vinden op de <a href="https://wiki.surfnet.nl/display/conextsupport/Profile+page" target="_blank">SURFconext supportpagina\'s</a>.',
115121
'profile_leave_surfconext_link_add' => '(sluit je browser na deze actie om de deprovisioning procedure te voltooien)',
116122
'profile_revoke_access' => 'Trek toegang in',
117-
'profile_leave_surfconext_conf' => 'Weet je zeker dat je je profiel wilt verwijderen?',
123+
'profile_leave_surfconext_conf' => 'Weet je zeker dat je je profiel wilt verwijderen? Je zult je browser moeten afsluiten om deze actie te voltooien',
118124
'profile_eula_link' => 'Gebruikersvoorwaarden',
119125
'profile_support_link' => 'Ondersteunings pagina\'s',
120126
'profile_mail_text' => 'SURFconext support kan je vragen om bovenstaande informatie te delen. Deze informatie kan hen helpen om jouw supportvraag te beantwoorden.',
121127
'profile_mail_attributes' => 'Mail data naar help@surfconext.nl',
122128
'profile_mail_send_success' => 'De mail met bovenstaande informatie is succesvol verstuurd.',
123129

124130
//Profile MyApps
125-
'profile_apps_connected_aps' => 'Beschikbare Apps en Services',
126-
'profile_apps_share' => 'Je kan je profiel%s en eventuele groepen informatie%s delen met de volgende services',
131+
'profile_apps_connected_aps' => 'SURFconext Apps',
132+
'profile_apps_share' => 'Je hebt toestemming gegeven om profielinformatie te delen met de volgende diensten:',
127133
'profile_apps_service_th' => 'Service/Applicatie',
128134
'profile_apps_eula_th' => 'EULA',
129135
'profile_apps_support_name_th' => 'Support contact',

www/authentication/css/wide/screen.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ span.revoke-gp-access {
315315
}
316316

317317
div.exit-disclaimer {
318-
border-style: solid;
319-
border-width: 1px;
320318
padding: 5px;
321319
margin-top: 15px;
322320
margin-bottom: 18px;

www/authentication/javascript/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ var Profile = function() {
3434
autoHeight: false
3535
});
3636

37-
$('.delete').click(function() {
38-
return confirm('Are you sure you want to delete your profile ?');
37+
$('#delete-confirmation-form').submit(function() {
38+
return confirm($('#delete-confirmation-text').attr('data-confirmation-text'));
3939
});
4040

4141
$('.show-details').live('click', function(e){

0 commit comments

Comments
 (0)