You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2013/07/06 03:23:36 UTC
svn commit: r1500187 - in /bloodhound/trunk/bloodhound_theme/bhtheme:
templates/bh_register.html theme.py
Author: rjollos
Date: Sat Jul 6 01:23:36 2013
New Revision: 1500187
URL: http://svn.apache.org/r1500187
Log:
Added template for registration page. Refs #201.
Patch by Olemis. Minor modifications were made to address th:#11213.
Added:
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_register.html
Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Added: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_register.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_register.html?rev=1500187&view=auto
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_register.html (added)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_register.html Sat Jul 6 01:23:36 2013
@@ -0,0 +1,148 @@
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
+ i18n:domain="bloodhound">
+ <xi:include href="layout.html" />
+ <?python
+ if _dgettext is not None:
+ dgettext = _dgettext ?>
+ <head>
+ <title>Register</title>
+ <script type="text/javascript">
+ jQuery(document).ready(function($) {
+ $('#username').focus();
+ });
+ </script>
+ </head>@name=username
+
+ <body>
+ <div id="content" class="register row">
+ <h1 class="span12">Register an account</h1>
+
+ <div class="system-message" py:if="registration_error">
+ <xi:include href="widget_alert.html"
+ py:with="msglabel = 'Failed'; msgbody = registration_error"/>
+ </div>
+
+ <form method="post" id="acctmgr_registerform" action="">
+ <div class="span6">
+ <fieldset>
+ <div class="form-horizontal">
+ <div class="control-group">
+ <div class="controls">
+ <span class="label label-important">Required</span>
+ </div>
+ </div>
+ <div class="control-group">
+ <input type="hidden" name="action" value="create" />
+ <label class="control-label" for="username">Username:</label>
+ <div class="controls">
+ <input type="text" id="username" name="username"
+ class="textwidget input-large no-add-on"
+ value="${acctmgr.username}" placeholder="e.g. newuser"/>
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="password" class="control-label">Password:</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on">
+ <i class="icon-lock"></i>
+ </span>
+ <input type="password" name="password" id="password"
+ class="textwidget input-large"
+ placeholder="Better use letters and numbers" />
+ </div>
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="password_confirm" class="control-label">Confirm Password:</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on">
+ <i class="icon-lock"></i>
+ </span>
+ <input type="password" name="password_confirm"
+ id="pasword_confirm" class="textwidget input-large"
+ placeholder="Must match password" />
+ </div>
+ </div>
+ </div>
+ <div py:if="verify_account_enabled" class="control-group">
+ <label for="email" class="control-label">Email:</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on">
+ <i class="icon-envelope"></i>
+ </span>
+ <input type="text" name="email" value="${acctmgr.email}"
+ class="textwidget input-large" id="email"
+ placeholder="user@domain.com" />
+ </div>
+ <p class="help-block">
+ <span class="label label-info">Notice</span>
+ The email
+ address is required for Trac to send you a
+ verification token.
+ </p>
+ <p class="help-block" py:if="reset_password_enabled">
+ Entering your email address
+ will also enable you to reset your password if you ever
+ forget it.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="span2 offset1">
+ <input type="submit" class="btn"
+ value="${dgettext('acct_mgr', 'Create account')}" />
+ </div>
+ </fieldset>
+ </div>
+
+ <div class="span6">
+ <fieldset>
+ <div class="form-horizontal">
+ <div class="control-group">
+ <div class="controls">
+ <span class="label">Optional</span>
+ </div>
+ </div>
+ <div class="control-group">
+ <label for="name" class="control-label">Name:</label>
+ <div class="controls">
+ <input type="text" name="name" id="name"
+ class="textwidget input-large" value="${acctmgr.name}"
+ placeholder="e.g. John Smith" />
+ </div>
+ </div>
+ <div py:if="not verify_account_enabled" class="control-group">
+ <label for="email" class="control-label">Email:</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on">
+ <i class="icon-envelope"></i>
+ </span>
+ <input type="text" name="email" value="${acctmgr.email}"
+ class="textwidget input-large"
+ placeholder="user@domain.com" />
+ <p py:if="reset_password_enabled" class="help-block">
+ <span class="label label-info">Notice</span>
+ Entering your email address
+ will enable you to reset your password if
+ you ever forget it.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </fieldset>
+ </div>
+ </form>
+ </div>
+ </body>
+</html>
Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1500187&r1=1500186&r2=1500187&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Sat Jul 6 01:23:36 2013
@@ -139,6 +139,7 @@ class BloodhoundTheme(ThemeBase):
'account_details.html': ('bh_account_details.html', None),
'login.html': ('bh_login.html', None),
'prefs_account.html': ('bh_prefs_account.html', None),
+ 'register.html' : ('bh_register.html', None),
}
BOOTSTRAP_CSS_DEFAULTS = (
# ('XPath expression', ['default', 'bootstrap', 'css', 'classes'])