-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
5 changed files
with
69 additions
and
2 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
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,27 @@ | ||
<h1>Редактировать пользователя</h1> | ||
<hr> | ||
{% if errors %} | ||
<ul class=flashes> | ||
{% for _, error in errors.items() %} | ||
<li class="error">{{ error }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<hr> | ||
<form action="{{ url_for('users_patch', id=user.id) }}" method="post"> | ||
<div> | ||
<label for="user-nickname"> | ||
Имя: | ||
<input type="text" id="user-name" name="name" value="{{ user.name }}"> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="user-email"> | ||
Email: | ||
<input type="text" id="user-email" name="email" value="{{ user.email }}"> | ||
</label> | ||
</div> | ||
<div> | ||
<button type="submit" title="Submit form">Обновить</button> | ||
</div> | ||
</form> |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<div>Имя = {{ user.name }}</div> | ||
<div>Email = {{ user.email }}</div> | ||
|
||
<a href="{{ url_for('users_edit', id=user.id) }}">Редактировать пользователя</a> | ||
|
||
<p><a href="{{ url_for('users_get') }}">Назад к списку пользователей</a></p> |
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