-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make user account information readonly
- Loading branch information
1 parent
3bc1072
commit f92d73b
Showing
2 changed files
with
39 additions
and
34 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 |
---|---|---|
@@ -1,46 +1,48 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block header %} | ||
{% include "ngo/account-header.html" %} | ||
{% include "ngo/account-header.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="container"> | ||
|
||
<div class="row"> | ||
{% if errors %} | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
<div class="alert alert-dismissible alert-danger"> | ||
<button type="button" class="close" data-dismiss="alert">×</button> | ||
<strong>Oops!</strong> {{ errors }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if errors %} | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
<div class="alert alert-dismissible alert-danger"> | ||
<button type="button" class="close" data-dismiss="alert">×</button> | ||
<strong>Oops!</strong> {{ errors }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3 col-lg-4 col-lg-offset-4"> | ||
<form class="form-horizontal" action="/date-cont/" role="form" method="post"> | ||
{{ csrf_input }} | ||
<fieldset> | ||
<legend>Datele contului tău</legend> | ||
<div class="form-group"> | ||
<div class="col-xs-6"> | ||
<input class="form-control" type="text" name="nume" value="{{ user.last_name }}" placeholder="Nume" required /> | ||
</div> | ||
<div class="col-xs-6"> | ||
<input class="form-control" type="text" name="prenume" value="{{ user.first_name }}" placeholder="Prenume" required /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-xs-12"> | ||
<input class="form-control" type="email" value="{{ user.email }}" placeholder="Email" readonly /> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary pull-right">Salvează</button> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3 col-lg-4 col-lg-offset-4"> | ||
<form class="form-horizontal" action="/date-cont/" role="form" method="post"> | ||
{{ csrf_input }} | ||
<fieldset> | ||
<legend>Datele contului tău</legend> | ||
<div class="form-group"> | ||
{% if not is_ngohub_user %} | ||
<div class="col-xs-6"> | ||
<input class="form-control" type="text" name="nume" value="{{ user.last_name }}" placeholder="Nume" required {% if is_ngohub_user %}readonly{% endif %}/> | ||
</div> | ||
{% endif %} | ||
<div class="{% if is_ngohub_user %}col-xs-12{% else %}col-xs-6{% endif %}"> | ||
<input class="form-control" type="text" name="prenume" value="{{ user.first_name }}" placeholder="Prenume" required {% if is_ngohub_user %}readonly{% endif %}/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-xs-12"> | ||
<input class="form-control" type="email" value="{{ user.email }}" placeholder="Email" readonly/> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary pull-right">Salvează</button> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |