Commits

benoitc  committed a5cc9f7

move template example in example ...

  • Participants
  • Parent commits 0d64cf7

Comments (0)

Files changed (14)

File django_authopenid/templates/authopenid/complete.html

-{% extends "base.html" %}
-{% load i18n %}
-
-
-
-{% block head %}{% endblock %}
-
-
-{% block content %}
-
-	<div id="completetxt">
-	<h1>{% trans "Your OpenID is verified! " %}</h1>
-	{% blocktrans %}
-	<p>Your OpenID can now be associated with a new or existing membership. You can change the association later in your preferences.</p>
-	{% endblocktrans %}
-	<br /><br />
-	<h2>{% trans "Associate your OpenID" %}</h2>
-	{% blocktrans %}
-	<p>If you're joining <strong>Sitename</strong>, associate your OpenID with a new account. If you're already a member, associate with your existing account.</p>
-	{% endblocktrans %}
-	</div>
-
-		
-	
-	{% if form1.errors %}
-	<p class="errors">{% trans "Please correct errors below:" %}<br />
-		{% if form1.username.errors %} 
-			<span class="error">{{ form1.username.errors|join:", " }}</span>
-		{% endif %}
-		{% if form1.email.errors %} 
-			<span class="error">{{ form1.email.errors|join:", " }}</span>
-		{% endif %}
-	</p>
-	{% endif %}
-	{% if form2.errors %}
-	<p class="errors">{% trans "Please correct errors below:" %}<br />
-		{% if form2.username.errors %} 
-			<span class="error">{{ form2.username.errors|join:", " }}</span>
-		{% endif %}
-		{% if form2.password.errors %} 
-			<span class="error">{{ form2.password.errors|join:", " }}</span>
-		{% endif %}
-	</p>
-	{% endif %}
-
-	<div class="login">
-        <form name="fregister" action="{% url user_register %}" method="POST">
-            <input type="hidden" name="next" value="{{ next }}" />
-			<fieldset>
-				<legend>{% trans "A new account" %}</legend>
-				<div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form1.username }}</div>
-				<div class="form-row"><label for="id_email">{% trans "Email" %}</label><br />{{ form1.email }}</div>
-				<div class="submit-row"><input type="submit" name="bnewaccount" value="Create account"></div>
-				<hr class="clear" />
-            	</fieldset>
-		</form>
-	</div>
-
-	
-
-	<div class="login">
-		<h3></h3>
-        <form name="fverify" action="{% url user_register %}" method="POST">
-            <input type="hidden" name="next" value="{{ next }}" />
-			<fieldset>
-				<legend>{% trans "An exisiting account" %}</legend>
-				<div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form2.username }}</div>
-				<div class="form-row"><label for="id_passwordl">{% trans "Password" %}</label><br />{{ form2.password }}</div>
-				<div class="submit-row"><input type="submit" name="bverify" value="Verify"></div>
-			</fieldset>
-		</form>
-	</div>
-{% endblock %}
-
-	
-

File django_authopenid/templates/authopenid/failure.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-  <title>OpenID failed</title>
-</head>
-<body>
-<h1>OpenID failed</h1>
-
-<p>{{ message|escape }}</p>
-
-</body>
-</html>

File django_authopenid/templates/authopenid/password_change_form.html

-{% extends "base.html" %}
-{% load i18n %}
-
-
-{% block content %}
-
-
-
-
-{% if set_password %}
-<h1>{% trans 'Set password' %}</h1>
-<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
-
-<form action="" method="post">
-{{ form.new_password1.errors }}
-<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
-{{ form.new_password2.errors }}
-<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
-<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
-</form>
-
-{% else %}
-
-<h1>{% trans 'Password change' %}</h1>
-<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
-
-<form action="" method="post">
-
-{{ form.old_password.errors }}
-<p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p>
-{{ form.new_password1.errors }}
-<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
-{{ form.new_password2.errors }}
-<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
-
-<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
-</form>
-
-
-
-{% endif %}
-{% endblock %} 

File django_authopenid/templates/authopenid/registration_email.txt

-Thank you to join {{ site }}.

File django_authopenid/templates/authopenid/registration_email_subject.txt

-Welcome to {{ site }}

File django_authopenid/templates/authopenid/signin.html

-{% extends "base.html" %}
-{% load i18n %}
-
-{% block head %}
-
-
-{% endblock %}
-
-
-{% block content %}
-{% if msg %}
-<br />
-	<p class="warning">{{ msg }}</p>
-{% endif %}
-{% if form1.errors %}
-<p class="errors">{% trans "Please correct errors below:" %}<br />
-	{% if form2.username.errors %} 
-		<span class="error">{{ form2.username.errors|join:", " }}</span>
-	{% endif %}
-	{% if form2.password.errors %} 
-		<span class="error">{{ form1.password.errors|join:", " }}</span>
-	{% endif %}
-</p>
-{% endif %}
-<div class="login">
-
-    <form name="fauth" action="{% url user_signin %}" method="post">
-    <input type="hidden" name="next" value="{{ next }}" />
-	<fieldset>
-		<legend>{% trans "Sign In Using Your Account ID" %}</legend>
-		<div class="form-row"><label for="id_username">{% trans "Username:" %}</label><br />{{ form2.username }}</div>
-		<div class="form-row"><label for="id_password">{% trans "Password" %}</label><br />{{ form2.password }}</div>
-		
-        <div class="submit-row"><input type="submit" name="blogin" value="{% trans "Sign in" %}"> </div>
-	</fieldset>	
-	<p><a href="{% url registration_register %}">{% trans "Create a new account" %}</a></p>
-</form>
-
-<br />
-<form name="fopenid" action="{% url user_signin %}" method="post">
-    <input type="hidden" name="next" value="{{ next }}" />
-	<fieldset>
-		<legend>{% trans "Sign In Using Your OpenID URL" %}</legend>
-        <div class="form-row"><label for="id_openid_ul">{% trans "OpenId URL :" %}</label><br />{{ form1.openid_url }}</div>
-        <div class="submit-row "><input name="bsignin" type="submit" value="{% trans "Sign in with OpenID" %}"></div>
-		
-	</fieldset>
-</form>	
-</div>	
-{% endblock %}
-

File django_authopenid/templates/registration/registration_form.html

-{% extends "base.html" %}
-{% load i18n %}
-
-{% block head %}
-
-
-{% endblock %}
-
-
-{% block content %}
-
-<form action="" method="post">
-	<table>
-		{{ form.as_table }}
-	</table>
-	 <div class="submit-row"><input type="submit" name="bsignup'" value="{% trans "Sign up" %}"> </div>
-{% endblock %}

File djauthaupenid_example/templates/authopenid/complete.html

+{% extends "base.html" %}
+{% load i18n %}
+
+
+
+{% block head %}{% endblock %}
+
+
+{% block content %}
+
+	<div id="completetxt">
+	<h1>{% trans "Your OpenID is verified! " %}</h1>
+	{% blocktrans %}
+	<p>Your OpenID can now be associated with a new or existing membership. You can change the association later in your preferences.</p>
+	{% endblocktrans %}
+	<br /><br />
+	<h2>{% trans "Associate your OpenID" %}</h2>
+	{% blocktrans %}
+	<p>If you're joining <strong>Sitename</strong>, associate your OpenID with a new account. If you're already a member, associate with your existing account.</p>
+	{% endblocktrans %}
+	</div>
+
+		
+	
+	{% if form1.errors %}
+	<p class="errors">{% trans "Please correct errors below:" %}<br />
+		{% if form1.username.errors %} 
+			<span class="error">{{ form1.username.errors|join:", " }}</span>
+		{% endif %}
+		{% if form1.email.errors %} 
+			<span class="error">{{ form1.email.errors|join:", " }}</span>
+		{% endif %}
+	</p>
+	{% endif %}
+	{% if form2.errors %}
+	<p class="errors">{% trans "Please correct errors below:" %}<br />
+		{% if form2.username.errors %} 
+			<span class="error">{{ form2.username.errors|join:", " }}</span>
+		{% endif %}
+		{% if form2.password.errors %} 
+			<span class="error">{{ form2.password.errors|join:", " }}</span>
+		{% endif %}
+	</p>
+	{% endif %}
+
+	<div class="login">
+        <form name="fregister" action="{% url user_register %}" method="POST">
+            <input type="hidden" name="next" value="{{ next }}" />
+			<fieldset>
+				<legend>{% trans "A new account" %}</legend>
+				<div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form1.username }}</div>
+				<div class="form-row"><label for="id_email">{% trans "Email" %}</label><br />{{ form1.email }}</div>
+				<div class="submit-row"><input type="submit" name="bnewaccount" value="Create account"></div>
+				<hr class="clear" />
+            	</fieldset>
+		</form>
+	</div>
+
+	
+
+	<div class="login">
+		<h3></h3>
+        <form name="fverify" action="{% url user_register %}" method="POST">
+            <input type="hidden" name="next" value="{{ next }}" />
+			<fieldset>
+				<legend>{% trans "An exisiting account" %}</legend>
+				<div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form2.username }}</div>
+				<div class="form-row"><label for="id_passwordl">{% trans "Password" %}</label><br />{{ form2.password }}</div>
+				<div class="submit-row"><input type="submit" name="bverify" value="Verify"></div>
+			</fieldset>
+		</form>
+	</div>
+{% endblock %}
+
+	
+

File djauthaupenid_example/templates/authopenid/failure.html

+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <title>OpenID failed</title>
+</head>
+<body>
+<h1>OpenID failed</h1>
+
+<p>{{ message|escape }}</p>
+
+</body>
+</html>

File djauthaupenid_example/templates/authopenid/password_change_form.html

+{% extends "base.html" %}
+{% load i18n %}
+
+
+{% block content %}
+
+
+
+
+{% if set_password %}
+<h1>{% trans 'Set password' %}</h1>
+<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+{{ form.new_password1.errors }}
+<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
+{{ form.new_password2.errors }}
+<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
+<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
+</form>
+
+{% else %}
+
+<h1>{% trans 'Password change' %}</h1>
+<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+
+{{ form.old_password.errors }}
+<p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p>
+{{ form.new_password1.errors }}
+<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
+{{ form.new_password2.errors }}
+<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
+
+<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
+</form>
+
+
+
+{% endif %}
+{% endblock %} 

File djauthaupenid_example/templates/authopenid/registration_email.txt

+Thank you to join {{ site }}.

File djauthaupenid_example/templates/authopenid/registration_email_subject.txt

+Welcome to {{ site }}

File djauthaupenid_example/templates/authopenid/signin.html

+{% extends "base.html" %}
+{% load i18n %}
+
+{% block head %}
+
+
+{% endblock %}
+
+
+{% block content %}
+{% if msg %}
+<br />
+	<p class="warning">{{ msg }}</p>
+{% endif %}
+{% if form1.errors %}
+<p class="errors">{% trans "Please correct errors below:" %}<br />
+	{% if form2.username.errors %} 
+		<span class="error">{{ form2.username.errors|join:", " }}</span>
+	{% endif %}
+	{% if form2.password.errors %} 
+		<span class="error">{{ form1.password.errors|join:", " }}</span>
+	{% endif %}
+</p>
+{% endif %}
+<div class="login">
+
+    <form name="fauth" action="{% url user_signin %}" method="post">
+    <input type="hidden" name="next" value="{{ next }}" />
+	<fieldset>
+		<legend>{% trans "Sign In Using Your Account ID" %}</legend>
+		<div class="form-row"><label for="id_username">{% trans "Username:" %}</label><br />{{ form2.username }}</div>
+		<div class="form-row"><label for="id_password">{% trans "Password" %}</label><br />{{ form2.password }}</div>
+		
+        <div class="submit-row"><input type="submit" name="blogin" value="{% trans "Sign in" %}"> </div>
+	</fieldset>	
+	<p><a href="{% url registration_register %}">{% trans "Create a new account" %}</a></p>
+</form>
+
+<br />
+<form name="fopenid" action="{% url user_signin %}" method="post">
+    <input type="hidden" name="next" value="{{ next }}" />
+	<fieldset>
+		<legend>{% trans "Sign In Using Your OpenID URL" %}</legend>
+        <div class="form-row"><label for="id_openid_ul">{% trans "OpenId URL :" %}</label><br />{{ form1.openid_url }}</div>
+        <div class="submit-row "><input name="bsignin" type="submit" value="{% trans "Sign in with OpenID" %}"></div>
+		
+	</fieldset>
+</form>	
+</div>	
+{% endblock %}
+

File djauthaupenid_example/templates/registration/registration_form.html

+{% extends "base.html" %}
+{% load i18n %}
+
+{% block head %}
+
+
+{% endblock %}
+
+
+{% block content %}
+
+<form action="" method="post">
+	<table>
+		{{ form.as_table }}
+	</table>
+	 <div class="submit-row"><input type="submit" name="bsignup'" value="{% trans "Sign up" %}"> </div>
+{% endblock %}