git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f512ba9
)
MyAcc: Clear button disabled when there is no credentials to clear
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Fri, 20 Dec 2013 11:11:25 +0000
(12:11 +0100)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Fri, 20 Dec 2013 11:11:25 +0000
(12:11 +0100)
portal/templates/account-view.html
patch
|
blob
|
history
diff --git
a/portal/templates/account-view.html
b/portal/templates/account-view.html
index
fda9e90
..
33d787f
100644
(file)
--- a/
portal/templates/account-view.html
+++ b/
portal/templates/account-view.html
@@
-1,7
+1,7
@@
{% extends "layout-unfold1.html" %}
{% block unfold_main %}
{% extends "layout-unfold1.html" %}
{% block unfold_main %}
-<h2>User Profile
<small>User info. in Myslice platform</small>
</h2>
+<h2>User Profile</h2>
{% if messages %}
<ul class="messages">
{% if messages %}
<ul class="messages">
@@
-233,8
+233,12
@@
</tr>
{%endfor%}
</table>
</tr>
{%endfor%}
</table>
- <p></p>
+ <p></p>
+ {%if '' not in my_users%}
<p><button class="btn btn-danger btn-lg btn-block" name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
<p><button class="btn btn-danger btn-lg btn-block" name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
+ {%else%}
+ <p><button class="btn btn-danger btn-lg btn-block disabled" name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
+ {%endif%}
</div>
</div>
</div>
</div>
</div>
</div>
@@
-297,7
+301,7
@@
<tr class="border_bottom">
<td class="odd"> {{ platform.platform_no_access }} </td>
<td class="odd">
<tr class="border_bottom">
<td class="odd"> {{ platform.platform_no_access }} </td>
<td class="odd">
- <button class="btn btn-success btn-
xs
" name= "add_{{platform.platform_no_access}}" type="submit" title="Add account to this platform">
+ <button class="btn btn-success btn-
sm
" name= "add_{{platform.platform_no_access}}" type="submit" title="Add account to this platform">
<span class="glyphicon glyphicon-plus"></span>
</button>
</td>
<span class="glyphicon glyphicon-plus"></span>
</button>
</td>