mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-05 12:47:29 +01:00
User profile: fix typo, add rank
This commit is contained in:
parent
dad980c3bf
commit
9fc71a5c99
@ -10,6 +10,12 @@
|
|||||||
<h2>{{ user.username }}</h2>
|
<h2>{{ user.username }}</h2>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>Rank:</td>
|
||||||
|
<td>
|
||||||
|
{{ user.rank.getTitle() }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Accounts:</td>
|
<td>Accounts:</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -13,11 +13,11 @@ from flask_user.forms import RegisterForm
|
|||||||
from flask_wtf import FlaskForm
|
from flask_wtf import FlaskForm
|
||||||
from wtforms import StringField, SubmitField, validators
|
from wtforms import StringField, SubmitField, validators
|
||||||
class MyRegisterForm(RegisterForm):
|
class MyRegisterForm(RegisterForm):
|
||||||
display_name = StringField("Diplay name")
|
display_name = StringField("Display name")
|
||||||
|
|
||||||
# Define the User profile form
|
# Define the User profile form
|
||||||
class UserProfileForm(FlaskForm):
|
class UserProfileForm(FlaskForm):
|
||||||
display_name = StringField("Diplay name")
|
display_name = StringField("Display name")
|
||||||
submit = SubmitField('Save')
|
submit = SubmitField('Save')
|
||||||
|
|
||||||
@app.route('/user/', methods=['GET', 'POST'])
|
@app.route('/user/', methods=['GET', 'POST'])
|
||||||
|
Loading…
Reference in New Issue
Block a user