Skip to content

Commit

Permalink
Remove table view from manage mako
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 12, 2017
1 parent 7fd3bfb commit 8e4ab40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/webapps/galaxy/controllers/user.py
Expand Up @@ -389,8 +389,7 @@ def openid_associate(self, trans, cntrller='user', **kwd):
@web.expose_api
@web.require_admin
def create_openid(self, trans, **kwd):
#kwd['openid_providers'] = trans.app.openid_providers

#kwd['openid_providers'] = trans.app.openid_providers
if trans.request.method == 'GET':
return {
'inputs' : [{'name' : 'password', 'label' : 'New password', 'type' : 'password'},
Expand Down
28 changes: 2 additions & 26 deletions templates/user/openid_manage.mako
@@ -1,31 +1,7 @@
## Template generates a grid that enables user to select items.
<%inherit file="../grid_base.mako" />
<%def name="render_openid_form( redirect, auto_associate, openid_providers )">
<div class="toolForm">
<div class="toolFormTitle">OpenID Login</div>
<form name="openid" id="openid" action="${h.url_for( controller='user', action='openid_auth' )}" method="post" target="_parent" >
<div class="form-row">
<label>OpenID URL:</label>
<input type="text" name="openid_url" size="60" style="background-image:url('${h.url_for( '/static/images/openid-16x16.gif' )}' ); background-repeat: no-repeat; padding-right: 20px; background-position: 99% 50%;"/>
<input type="hidden" name="redirect" value="${redirect | h}" size="40"/>
</div>
<div class="form-row">
Or, authenticate with your <select name="openid_provider">
%for provider in openid_providers:
<option value="${provider.id}">${provider.name}</option>
%endfor
</select> account.
</div>
<div class="form-row">
<input type="submit" name="login_button" value="Login"/>
</div>
</form>
</div>
</%def>

<%namespace file="login.mako" import="render_openid_form" />
<%def name="load()">
<h2>Associate more OpenIDs</h2>
${render_openid_form( kwargs['redirect'], True, kwargs['openid_providers'] )}
<br/><br/>
${parent.load()}
</%def>
</%def>

0 comments on commit 8e4ab40

Please sign in to comment.