Skip to content

Commit 892a7f4

Browse files
ghalsethijskh
authored andcommitted
Add option to remember IdP
1 parent 397c22a commit 892a7f4

5 files changed

Lines changed: 24 additions & 1 deletion

File tree

locales/af/LC_MESSAGES/discopower.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ msgstr "InCommon"
9595
msgid "{discopower:tabs:incremental_search}"
9696
msgstr "Inkrementele soektog..."
9797

98+
msgid ""
99+
"The institution you've chosen will be saved in this browser so that "
100+
"you do not need to select it each time you login."
101+
msgstr ""
102+
"Die instelling wat jy gekies het, sal in hierdie webblaaier gestoor word "
103+
"sodat jy dit nie hoef te kies elke keer as jy aanmeld nie."

locales/en/LC_MESSAGES/discopower.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,9 @@ msgstr "InCommon"
9999
msgid "{discopower:tabs:incremental_search}"
100100
msgstr "Incremental search..."
101101

102+
msgid ""
103+
"The institution you've chosen will be saved in this browser so that "
104+
"you do not need to select it each time you login."
105+
msgstr ""
106+
"The institution you've chosen will be saved in this browser so that "
107+
"you do not need to select it each time you login."

public/assets/css/disco.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ div.favourite {
5555
margin-top: 1ex;
5656
}
5757

58+
#favouriteremember {
59+
margin: 1ex 0 0;
60+
}
61+
5862
div#content {
5963
margin: .4em ! important;
6064
}

public/assets/js/tablist.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ $(document).ready(function () {
1010
}
1111
}
1212
});
13+
$('#favouriteremember').tooltip();
1314
});

templates/disco.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@
2323
<input type="hidden" name="returnIDParam" value="{{ returnIDParam }}">
2424
<input type="hidden" name="idpentityid" value="{{ faventry.entityid }}">
2525
<input type="submit" name="formsubmit" id="favouritesubmit" value="{{ 'Login at'|trans }} {{ faventry|entityDisplayName }}" class="pure-button pure-button-primary">
26-
</form>
26+
{% if rememberenabled %}
27+
<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 }}">
28+
<input type="checkbox" name="remember" id="remember" value="1"{% if rememberchecked %} checked{% endif %}>
29+
{{ 'Remember my choice' | trans }}
30+
</label>
31+
{% endif %}
32+
</form>
2733
</div>
2834
{% endif %}
2935

0 commit comments

Comments
 (0)