mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57: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>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Rank:</td>
|
||||
<td>
|
||||
{{ user.rank.getTitle() }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Accounts:</td>
|
||||
<td>
|
||||
|
@ -13,11 +13,11 @@ from flask_user.forms import RegisterForm
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import StringField, SubmitField, validators
|
||||
class MyRegisterForm(RegisterForm):
|
||||
display_name = StringField("Diplay name")
|
||||
display_name = StringField("Display name")
|
||||
|
||||
# Define the User profile form
|
||||
class UserProfileForm(FlaskForm):
|
||||
display_name = StringField("Diplay name")
|
||||
display_name = StringField("Display name")
|
||||
submit = SubmitField('Save')
|
||||
|
||||
@app.route('/user/', methods=['GET', 'POST'])
|
||||
|
Loading…
Reference in New Issue
Block a user