Revision a96c495d
b/snf-astakos-app/astakos/im/models.py | ||
---|---|---|
310 | 310 |
_('Invitations left'), default=INVITATIONS_PER_LEVEL.get(user_level, 0)) |
311 | 311 |
|
312 | 312 |
auth_token = models.CharField(_('Authentication Token'), max_length=32, |
313 |
null=True, blank=True) |
|
313 |
null=True, blank=True, help_text = _( 'test' ))
|
|
314 | 314 |
auth_token_created = models.DateTimeField(_('Token creation date'), null=True) |
315 | 315 |
auth_token_expires = models.DateTimeField( |
316 | 316 |
_('Token expiration date'), null=True) |
b/snf-astakos-app/astakos/im/static/im/js/auth_methods.js | ||
---|---|---|
73 | 73 |
|
74 | 74 |
|
75 | 75 |
if ($('input#id_change_email:checkbox').attr('checked')) { |
76 |
|
|
76 | 77 |
newEmailDiv.show(); |
77 | 78 |
$('.form-following #email-span').parents('.form-row').addClass('open'); |
78 | 79 |
}; |
... | ... | |
122 | 123 |
authTokenDiv.addClass('refresh'); |
123 | 124 |
$('#token-span').click(function(e){ |
124 | 125 |
$(this).parents('.form-row').toggleClass('open'); |
125 |
|
|
126 |
$(this).siblings('span.info').find('span').hide(); |
|
126 | 127 |
var position = $(this).parents('.form-row').position(); |
127 | 128 |
$('#token-confirm').css('top', position.top - 10); |
128 | 129 |
$('#token-confirm').toggle(); |
... | ... | |
135 | 136 |
$(this).hide(); |
136 | 137 |
}) |
137 | 138 |
|
138 |
|
|
139 |
$('#token-span').hover( |
|
140 |
function () { |
|
141 |
if (!$(this).parents('.form-row').hasClass('open')){ |
|
142 |
$(this).siblings('span.info').find('span').show(); |
|
143 |
} |
|
144 |
|
|
145 |
}, |
|
146 |
function () { |
|
147 |
$(this).siblings('span.info').find('span').hide(); |
|
148 |
}); |
|
139 | 149 |
|
140 | 150 |
/* end of complex form js */ |
141 | 151 |
|
b/snf-astakos-app/astakos/im/templates/im/profile_auth_methods.html | ||
---|---|---|
2 | 2 |
<h2>LOGIN METHODS</h2> |
3 | 3 |
|
4 | 4 |
<div class="assigned"> |
5 |
<h3>ENABLED</h3>
|
|
5 |
<h3>Enabled</h3>
|
|
6 | 6 |
<ul> |
7 | 7 |
{% for userauthprovider in user_providers %} |
8 | 8 |
<li> |
... | ... | |
40 | 40 |
</ul> |
41 | 41 |
</div> |
42 | 42 |
<div class="notassigned"> |
43 |
<h3>AVAILABLE</h3>
|
|
43 |
<h3>Available</h3>
|
|
44 | 44 |
<ul> |
45 | 45 |
{% for provider in user_available_providers %} |
46 | 46 |
<li> |
Also available in: Unified diff