Skip to content

Commit

Permalink
Add option to remember IdP
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalse authored and thijskh committed Jul 24, 2023
1 parent 397c22a commit 892a7f4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions locales/af/LC_MESSAGES/discopower.po
Expand Up @@ -95,3 +95,9 @@ msgstr "InCommon"
msgid "{discopower:tabs:incremental_search}"
msgstr "Inkrementele soektog..."

msgid ""
"The institution you've chosen will be saved in this browser so that "
"you do not need to select it each time you login."
msgstr ""
"Die instelling wat jy gekies het, sal in hierdie webblaaier gestoor word "
"sodat jy dit nie hoef te kies elke keer as jy aanmeld nie."
6 changes: 6 additions & 0 deletions locales/en/LC_MESSAGES/discopower.po
Expand Up @@ -99,3 +99,9 @@ msgstr "InCommon"
msgid "{discopower:tabs:incremental_search}"
msgstr "Incremental search..."

msgid ""
"The institution you've chosen will be saved in this browser so that "
"you do not need to select it each time you login."
msgstr ""
"The institution you've chosen will be saved in this browser so that "
"you do not need to select it each time you login."
4 changes: 4 additions & 0 deletions public/assets/css/disco.css
Expand Up @@ -55,6 +55,10 @@ div.favourite {
margin-top: 1ex;
}

#favouriteremember {
margin: 1ex 0 0;
}

div#content {
margin: .4em ! important;
}
Expand Down
1 change: 1 addition & 0 deletions public/assets/js/tablist.js
Expand Up @@ -10,4 +10,5 @@ $(document).ready(function () {
}
}
});
$('#favouriteremember').tooltip();
});
8 changes: 7 additions & 1 deletion templates/disco.twig
Expand Up @@ -23,7 +23,13 @@
<input type="hidden" name="returnIDParam" value="{{ returnIDParam }}">
<input type="hidden" name="idpentityid" value="{{ faventry.entityid }}">
<input type="submit" name="formsubmit" id="favouritesubmit" value="{{ 'Login at'|trans }} {{ faventry|entityDisplayName }}" class="pure-button pure-button-primary">
</form>
{% if rememberenabled %}
<label for="remember" id="favouriteremember" class="pure-checkbox" title="{{ "The institution you've chosen will be saved in this browser so that you do not need to select it each time you login."|trans }}">
<input type="checkbox" name="remember" id="remember" value="1"{% if rememberchecked %} checked{% endif %}>
{{ 'Remember my choice' | trans }}
</label>
{% endif %}
</form>
</div>
{% endif %}

Expand Down

0 comments on commit 892a7f4

Please sign in to comment.