Skip to content

Commit

Permalink
Hide locked information in consent screen
Browse files Browse the repository at this point in the history
  • Loading branch information
saxtouri committed Feb 21, 2017
1 parent fbdc2ec commit 32a697e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
Binary file modified src/cmservice/service/data/i18n/locales/en/LC_MESSAGES/messages.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ msgstr "Your consent is required to continue."
msgid "would like to access the following attributes:"
msgstr "would like to access the following attributes:"

#: src/cmservice/service/templates/consent.mako:39
msgid "You also give consent for the following:"
msgstr "You also give consent for the following:"
#: src/cmservice/service/templates/consent.mako:41
msgid "Click to see what else is sent with you consent"
msgstr "Click to see what else is sent with you consent"

#: src/cmservice/service/templates/consent.mako:53
#: src/cmservice/service/templates/consent.mako:56
msgid "For how long (in months) do you give consent for this service?"
msgstr "For how long (in months) do you give consent for this service?"

#: src/cmservice/service/templates/consent.mako:68
#: src/cmservice/service/templates/consent.mako:71
msgid "OK, accept"
msgstr "OK, accept"

#: src/cmservice/service/templates/consent.mako:70
#: src/cmservice/service/templates/consent.mako:73
msgid "No, cancel"
msgstr "No, cancel"

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ msgstr "Samtycke - Ditt medgivande krävs för att fortsätta."
msgid "would like to access the following attributes:"
msgstr "vill få tillgång till följande attribut:"

#: src/cmservice/service/templates/consent.mako:39
msgid "You also give consent for the following:"
#: src/cmservice/service/templates/consent.mako:41
msgid "Click to see what else is sent with you consent"
msgstr "Följande attribut går inte att välja bort. Om du inte vill skicka dessa måste du avbrya."

#: src/cmservice/service/templates/consent.mako:53
#: src/cmservice/service/templates/consent.mako:56
msgid "For how long (in months) do you give consent for this service?"
msgstr "För hur många månader vill du ge samtycke for den angivna tjänsten:"

#: src/cmservice/service/templates/consent.mako:68
#: src/cmservice/service/templates/consent.mako:71
msgid "OK, accept"
msgstr "Ja, acceptera"

#: src/cmservice/service/templates/consent.mako:70
#: src/cmservice/service/templates/consent.mako:73
msgid "No, cancel"
msgstr "Nej, avbryt"

Expand Down
14 changes: 7 additions & 7 deletions src/cmservice/service/data/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: CMservice 2.0.2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2017-02-21 17:59+0200\n"
"POT-Creation-Date: 2017-02-21 18:27+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -25,23 +25,23 @@ msgstr ""
msgid "would like to access the following attributes:"
msgstr ""

#: src/cmservice/service/templates/consent.mako:39
msgid "You also give consent for the following:"
#: src/cmservice/service/templates/consent.mako:41
msgid "Click to see what else is sent with you consent"
msgstr ""

#: src/cmservice/service/templates/consent.mako:53
#: src/cmservice/service/templates/consent.mako:56
msgid "For how long (in months) do you give consent for this service?"
msgstr ""

#: src/cmservice/service/templates/consent.mako:68
#: src/cmservice/service/templates/consent.mako:71
msgid "OK, accept"
msgstr ""

#: src/cmservice/service/templates/consent.mako:70
#: src/cmservice/service/templates/consent.mako:73
msgid "No, cancel"
msgstr ""

#: src/cmservice/service/templates/consent.mako:101
#: src/cmservice/service/templates/consent.mako:104
msgid "No attributes where selected which equals no consent where given"
msgstr ""

Expand Down
19 changes: 11 additions & 8 deletions src/cmservice/service/templates/consent.mako
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@
% endfor

% if locked_claims:
<p class="small">${_("You also give consent for the following:")}</p>
% for attribute in locked_claims:
<div class="list-group-item">
<h4 class="list-group-item-heading">
${_(attribute).capitalize()}
</h4>
${locked_claims[attribute] | list2str}
<div class="btn btn-link"
onclick="$('#locked').toggleClass('hidden');">
<h4 class="small">${_("Click to see what else is sent with you consent")}</h4>
<div class="hidden list-group-item" id="locked">
% for attribute in locked_claims:
<h4 class="list-group-item-heading">
${_(attribute).capitalize()}
</h4>
${locked_claims[attribute] | list2str}
% endfor
</div>
</div>
% endfor
% endif
<div class="row"><hr/></div>

Expand Down

0 comments on commit 32a697e

Please sign in to comment.