File tree Expand file tree Collapse file tree
admin/templates/institutions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 {% if perms.osf.change_institution %}
6161 < a class ="btn btn-primary " href ={% url 'institutions:list_and_add_admin' institution.id %}> Manage Admins</ a >
6262 {% endif %}
63- {% if cas_login_url %}
64- < button class =" btn btn-primary " onclick =" openCopyPopup('{{ cas_login_url|escapejs }}') " >
65- Copy SSO URL
66- </ button >
67- < div id =" copy-modal " class =" modal " >
68- < div class ="modal-content ">
69- < span class ="close " onclick =" closeCopyPopup() " > × </ span >
70- < p > Value copied. You can also copy manually: </ p >
71- < textarea id =" copy-input " readonly > </ textarea >
72- </ div >
63+ < button
64+ {% if not cas_login_url %}disabled{% endif %}
65+ class =" btn btn-primary " onclick =" openCopyPopup('{{ cas_login_url|escapejs }}') " >
66+ Copy SSO URL
67+ </ button >
68+ < div id =" copy-modal " class ="modal ">
69+ < div class ="modal-content " >
70+ < span class =" close " onclick =" closeCopyPopup() " > × </ span >
71+ < p > Value copied. You can also copy manually: </ p >
72+ < textarea id =" copy-input " readonly > </ textarea >
7373 </ div >
74- {% endif %}
74+ </ div >
7575 </ div >
7676 </ div >
7777
You can’t perform that action at this time.
0 commit comments