Begining of a RON API to edit profile
This commit is contained in:
parent
37f6de7a89
commit
405aa68526
11 changed files with 229 additions and 68 deletions
|
|
@ -7,7 +7,7 @@
|
|||
{% match user %}
|
||||
{% when Some with (user) %}
|
||||
<a class="create-recipe" href="/recipe/new" >Create a new recipe</a>
|
||||
<span><a href="/edit_profile">{{ user.email }}</a> / <a href="/signout" />Sign out</a></span>
|
||||
<span><a href="/user/edit">{{ user.email }}</a> / <a href="/signout" />Sign out</a></span>
|
||||
{% when None %}
|
||||
<span>
|
||||
<a href="/signin" >Sign in</a>/<a href="/signup">Sign up</a>/<a href="/ask_reset_password">Lost password</a>
|
||||
|
|
|
|||
|
|
@ -1,22 +1,12 @@
|
|||
{% extends "base_with_list.html" %}
|
||||
|
||||
{% block content %}
|
||||
<label for="title_field">Title</label>
|
||||
<label for="title_field">Name</label>
|
||||
<input
|
||||
id="title_field"
|
||||
id="name_field"
|
||||
type="text"
|
||||
name="title"
|
||||
value="{{ current_recipe.title }}"
|
||||
autocapitalize="none"
|
||||
autocomplete="title"
|
||||
autofocus="autofocus" />
|
||||
|
||||
<label for="description_field">Description</label>
|
||||
<input
|
||||
id="title_field"
|
||||
type="text"
|
||||
name="title"
|
||||
value="{{ current_recipe.description }}"
|
||||
name="name"
|
||||
value="{{ user.name }}"
|
||||
autocapitalize="none"
|
||||
autocomplete="title"
|
||||
autofocus="autofocus" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue