Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |