-
Notifications
You must be signed in to change notification settings - Fork 0
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
Arx Cruz
committed
Jan 31, 2015
1 parent
68002e2
commit 624b8d6
Showing
4 changed files
with
37 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from wtforms import BooleanField | ||
from wtforms import Form | ||
from wtforms import TextField | ||
from wtforms import validators | ||
|
||
class UserForm(Form): | ||
name = TextField('Name', [validators.Length(min=3, max=128)]) | ||
user_id = TextField('User id', [validators.Length(min=4, max=25)]) | ||
email = TextField('Email Address', [validators.Length(min=6, max=35)]) | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% from 'common.html' import render_field %} | ||
|
||
{% block title %}Stackquery - Create user{% endblock title%} | ||
|
||
{% block java_script %} | ||
|
||
{% endblock java_script %} | ||
|
||
{% block main %} | ||
<form method="POST" action="{{ url_for('dashboard.dashboard_create_user') }}"> | ||
{{ render_field(form.name) }} | ||
{{ render_field(form.user_id) }} | ||
{{ render_field(form.email) }} | ||
<p><input type="submit" value="Create"></p> | ||
</form> | ||
{% endblock main %} |