1 {% extends "catalogue/base.html" %}
4 {% block inner_content %}
6 <h1>{% trans "Edit user data" %}</h1>
9 <form enctype="multipart/form-data" method="POST">
11 {{ form.non_field_errors }}
12 <label for="first_name">{% trans "First name" %}</label>
13 {{ form.first_name.errors }}
14 <input class="form-control" name="first_name" type="text" value="{{ form.first_name.value|default:"" }}">
15 <label for="last_name">{% trans "Last name" %}</label>
16 {{ form.last_name.errors }}
17 <input class="form-control" name="last_name" type="text" value="{{ form.last_name.value|default:"" }}">
19 <label for="logo">{% trans "Photo" %}</label>
20 {{ form.logo.errors }}
24 <label for="country">{% trans "Country" %}</label>
25 {{ form.country.errors }}
26 <select class="form-control" name="country">
27 <option value=''>-</option>
28 {% for c, t in form.cts %}
29 <option value='{{ c }}' {% if form.country.value == c %}selected="selected"{% endif %}>{{ t }}</option>
32 <label for="www">{% trans "WWW" %}</label>
34 <input class="form-control" name="www" type="www" value="{{ form.www.value|default:"" }}">
35 <label for="title">{% trans "Description" %}</label>
36 {{ form.description.errors }}
37 <textarea class="form-control" name="description">{{ form.description.value|default:"" }}</textarea>
38 <label for="title">{% trans "Projects" %}</label>
39 {{ form.projects.errors }}
40 <textarea class="form-control" name="projects">{{ form.projects.value|default:"" }}</textarea>
41 {% trans "Enter each line as: URL language description" %}<br/>
43 <button style="margin-top:1em;" class="btn btn-default" type="submit">{% trans "Change" %}</button></td></tr>