Commit 5c7938f2 authored by Bruno Martin's avatar Bruno Martin
Browse files

remove accounts templates

parent 0b070476
{% extends 'account/base.html' %}
{% load i18n %}
<div class="register-page">
<div class="message">
<h2>{% trans "Sorry" %}</h2>
<h3>{% trans "You provided an invalid key" %}.<br/>{% trans "The registration failed" %}.</h3>
</div>
</div>
{% extends 'base.html' %}
{% block wrapper_classes %}
{% endblock %}
{% block content %}
{% block account_content %}
{% endblock %}
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% load account %}
{% load static %}
{% load compress %}
{% compress js %}
<!-- Dashboard -->
<script type="text/javascript" src="{% static 'js/dashboard/dashboard-app.js' %}"></script>
<script type="text/javascript" src="{% static 'js/dashboard/dashboard-controllers.js' %}"></script>
<script type="text/javascript" src="{% static 'js/core-services.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-services.js' %}"></script>
{% endcompress %}
{% block body_attrs %}
ng-app="header"
{% endblock %}
{% block account_content %}
<div class="login-page">
{% if confirmation %}
{% user_display confirmation.email_address.user as user_display %}
<div class="message">
{% with confirmation.email_address.email as email %}
Por favor, confirme que <a href="mailto:{{email}}">{{ email }}</a> é o endereço de email de {{ user_display }}.
{% endwith %}
</div>
<form onclick="event.stopPropagation()" method="post" action="{% url 'courses_legacy:account_confirm_email' confirmation.key %}" class="form-horizontal">{% csrf_token %}
<button type="submit" class="btn btn-submit">{% trans 'Confirm' %}</button>
</form>
{% else %}
{% url 'courses_legacy:account_email' as email_url %}
<div class="message">
O link de confirmação usado expirou ou é inválido.<br/>
</div>
{% endif %}
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% load static %}
{% load compress %}
{% compress js %}
<!-- Dashboard -->
<script type="text/javascript" src="{% static 'js/dashboard/dashboard-app.js' %}"></script>
<script type="text/javascript" src="{% static 'js/dashboard/dashboard-controllers.js' %}"></script>
<script type="text/javascript" src="{% static 'js/core-services.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-services.js' %}"></script>
{% endcompress %}
{% block body_attrs %}
ng-app="header"
{% endblock %}
{% block account_content %}
<div class="login-page">
<div class="message">
<h2>Missão cumprida!</h2>
<h3>Você ativou o email da sua conta</h3>
</div>
<form method="post" action="{% url 'courses_legacy:account_login' %}" class="login-form">{% csrf_token %}
<fieldset>
<legend>{% trans "Sign In" %}</legend>
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label for="username" class="sr-only">{% trans "Username" %}</label>
<input name="login" type="text" id="username" class="form-control"
value="{{form.login.value|default_if_none:""}}" placeholder='{% trans "E-mail or username" %}'/>
</div>
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label for="password" class="sr-only">{% trans "Password" %}</label>
<input name="password" type="password" id="password" class="form-control" placeholder='{% trans "Password" %}'>
</div>
<button type="submit" class="btn btn-submit">{% trans "Sign In" %}</button>
<input type="hidden" name="next" value="{{ next }}" />
<div class="checkbox">
<label>
<input type="checkbox" value="rememberme" style="display:inline-block;"> Lembrar do meu usuário neste computador.
</label>
</div>
</fieldset>
<p class="info"><a href="{% url 'courses_legacy:account_reset_password' %}">{% trans "Forgot my password" %}</a></p>
</form>
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="login-page">
{% for error in form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
<form method="post" action="{% url 'courses_legacy:account_login' %}" class="login-form">{% csrf_token %}
<fieldset>
<legend>{% trans "Sign In" %}</legend>
<div class="form-group{% if form.login.errors %} has-error{% endif %}">
<label for="username" class="sr-only">{% trans "Username" %}</label>
<input name="login" type="text" id="username" class="form-control"
value="{{form.login.value|default_if_none:""}}" placeholder='{% trans "E-mail or username" %}'/>
{% for error in form.login.errors %}
<small>{{error}}</small>
{% endfor error in %}
</div>
<div class="form-group{% if form.password.errors %} has-error{% endif %}">
<label for="password" class="sr-only">{% trans "Password" %}</label>
<input name="password" type="password" id="password" class="form-control" placeholder='{% trans "Password" %}'>
{% for error in form.password.errors %}
<small>{{error}}</small>
{% endfor %}
</div>
<button type="submit" class="btn btn-submit">{% trans "Sign In" %}</button>
<input type="hidden" name="next" value="{{ next }}" />
<div class="checkbox">
<label>
<input type="checkbox" value="rememberme" style="display:inline-block;"> Lembrar do meu usuário neste computador.
</label>
</div>
</fieldset>
<p class="info"><a href="{% url 'courses_legacy:account_reset_password' %}">{% trans "Forgot my password" %}</a></p>
</form>
</div>
{% endblock %}
{% load i18n %}
<!-- Modal -->
<div id="login-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="loginModalLabel" class="textcenter">
<i class="fa fa-smile-o"></i><br/>{% trans "You need to sign in or up to see this content" %}
</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-offset-2 col-lg-8 col-md-offset-2 col-md-8 col-sm-offset-2 col-sm-8 col-xs-12">
<div class="panel left-xs right-xs top-xs">
<div class="panel-heading left-xs right-xs">
<h3 class="bottom-xs top-xs"><i class="fa fa-angle-double-right"></i> {% trans 'Sign In' %}</h3>
</div>
<div class="panel-body bottom-xs left-xs right-xs top-xs">
<form class="form-horizontal" method="post" action="{% url 'account_login' %}">{% csrf_token %}
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label class="col-lg-3 col-md-3 col-sm-12 col-xs-12">{% trans 'Login' %}</label>
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
<input name="login" type="text" class="form-control"
value="{{form.login.value}}" placeholder="{% trans 'E-mail or username' %}"/>
{% for error in form.login.errors %}
<small>{{error}}</small>
{% endfor error in %}
</div>
</div>
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label class="col-lg-3 col-md-3 col-sm-12 col-xs-12">{% trans 'Password' %}</label>
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
<input name="password" type="password" class="form-control" placeholder="{% trans 'Password' %}">
{% for error in form.password.errors %}
<small>{{error}}</small>
{% endfor %}
{% for error in form.non_field_errors %}
<small>{{error}}</small>
{% endfor %}
<a href="{% url 'account_reset_password' %}">{% trans 'Forgot my password' %}</a>
</div>
</div>
<div class="submit">
<div class="row">
<div class="col-lg-4 col-lg-offset-8 col-md-4 col-sm-4 col-xs-12 textright">
<button class="btn btn-success col-xs-12">{% trans 'Sign In' %}</button>
</div>
</div>
</div>
<input type="hidden" name="next" />
</form>
</div>
</div>
</div>
</div>
<div class="divider bottom-xs top-xs"></div>
<p class="bottom textcenter"><a href="{% url 'account_signup' %}">{% trans 'Signup' %}</a></p>
</div>
</div>
</div>
</div>
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="login-page">
{% for error in errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
<form onclick="event.stopPropagation()" method="post" action="{% url 'courses_legacy:account_reset_password' %}" class="forgot-pass-form">
<fieldset>
<legend>Esqueci minha senha</legend>
{% csrf_token %}
{% with errors=form.email.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<label for="email">
Escreva seu email abaixo para receber instruções de recuperação de senha
</label>
<input name="email" type="email" id="email" class="form-control" placeholder="Seu e-mail">
</div>
{% endwith %}
<button type="submit" class="btn btn-submit">Enviar</button>
</fieldset>
</form>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="register-page">
<div class="message">
<h2>Por favor verifique seu email!</h2>
<h3>Nós te enviamos um email com instruções para recuperar sua senha</h3>
</div>
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="login-page">
{% for error in errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
{% if token_fail %}
{% url 'courses_legacy:account_reset_password' as passwd_reset_url %}
<div class="message">{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}</div>
{% else %}
{% if form %}
<form action="" method="post" class="form-horizontal register-form">{% csrf_token %}
<fieldset>
<legend>{% trans "Change your password" %}</legend>
{% with errors=form.password1.errors %}
<div class="form-group{% if errors or form.non_field_errors %} has-error{% endif %}">
<i class="fa fa-lock" aria-hidden="true"></i>
<label for="password1" class="sr-only">{% trans "Password" %}</label>
<input name="password1" type="password" id="password" class="form-control" placeholder="{% trans 'Really strong password' %}">
</div>
{% endwith %}
{% with errors=form.password2.errors %}
<div class="form-group{% if errors or form.non_field_errors %} has-error{% endif %}">
<i class="fa fa-lock" aria-hidden="true"></i>
<label for="password2" class="sr-only">{% trans 'Password confirmation' %}</label>
<input name="password2" type="password" class="form-control" placeholder="{% trans 'Password confirmation' %}">
</div>
{% endwith %}
<button class="btn btn-submit">{% trans "Save" %}</button>
</fieldset>
</form>
{% else %}
<div class="message">{{% trans 'Your password is now changed.' %}</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="login-page">
{% for error in form.login.errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor error in %}
{% for error in form.password.errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
{% for error in form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
<form method="post" action="{% url 'courses_legacy:account_login' %}" class="login-form">{% csrf_token %}
<fieldset>
<legend>{% trans "Password reset complete" %}</legend>
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label for="username" class="sr-only">{% trans "Username" %}</label>
<input name="login" type="text" id="username" class="form-control"
value="{{form.login.value|default_if_none:""}}" placeholder='{% trans "E-mail or username" %}'/>
</div>
<div class="form-group{% if form.errors %} has-error{% endif %}">
<label for="password" class="sr-only">{% trans "Password" %}</label>
<input name="password" type="password" id="password" class="form-control" placeholder='{% trans "Password" %}'>
</div>
<button type="submit" class="btn btn-submit">{% trans "Sign In" %}</button>
<input type="hidden" name="next" value="{{ next }}" />
<div class="checkbox">
<label>
<input type="checkbox" value="rememberme" style="display:inline-block;"> Lembrar do meu usuário neste computador.
</label>
</div>
</fieldset>
<p class="info"><a href="{% url 'courses_legacy:account_reset_password' %}">{% trans "Forgot my password" %}</a></p>
</form>
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
{% block account_content %}
<div class="register-page" style="padding-top: 10px; margin-top: -60px;">
<div style="padding-top: 0; margin: 0 auto 10px; ">
<div class="register-form" style="text-align: left;max-width: 448px;min-height: 246px;">
<iframe style="border: 0; margin: 0; height: 100%; width: 100%; min-height: 246px;"
src="https://www.youtube.com/embed/EcdIOdxFJTw?rel=0&amp;controls=2&amp;showinfo=0"
allow="autoplay; encrypted-media" allowfullscreen></iframe>
</div>
</div>
<script type="text/javascript">
var setOccupation = function(event) {
elem = document.getElementById("occupation");
elem.value = event.target.value;
}
</script>
{% for error in errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
{% for error in form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{error}}
</div>
{% endfor %}
<form onclick="event.stopPropagation()" method="post" action="{% url 'courses_legacy:account_signup' %}" class="register-form">{% csrf_token %}
<fieldset>
<legend>{% trans "Sign Up" %}</legend>
{% with errors=form.username.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<i class="fa fa-user" aria-hidden="true"></i>
<label for="username" class="sr-only">{% trans "Username" %}</label>
<input name="username" type="text" value="{{form.username.value|default_if_none:''}}" class="form-control" id="username" placeholder="{% trans 'Username' %}">
{% for error in errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.email.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<i class="fa fa-envelope" aria-hidden="true"></i>
<label for="email" class="sr-only">{% trans "E-mail" %}</label>
<input name="email" type="email" id="email" value="{{form.email.value|default_if_none:''}}" class="form-control" placeholder="{% trans 'Your e-mail' %}">
{% for error in errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.cpf.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<i class="fa fa-id-card" aria-hidden="true"></i>
<label for="cpf" class="sr-only">CPF</label>
<input name="cpf" type="text" id="cpf" value="{{form.cpf.value|default_if_none:''}}" class="form-control" placeholder="CPF">
{% for error in errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.institution.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<i class="fa fa-university" aria-hidden="true"></i>
<label for="institution" class="sr-only">Instituição</label>
<input name="institution" type="text" id="institution"
value="{{form.institution.value|default_if_none:''}}"
class="form-control" placeholder="Instituição">
{% for error in errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.occupation.errors %}
<div class="form-group{{ errors|yesno:' has-error,' }}">
<i class="fa fa-briefcase" aria-hidden="true"></i>
<label for="occupation" class="sr-only">Instituição</label>
<input list="list__occupation-list" type="name"
class="form-control" onchange="setOccupation(event)"
value="{{form.occupation.value|default_if_none:''}}"
placeholder="Você é" />
<input name="occupation" type="hidden" id="occupation" class="form-control"
value="{{form.occupation.value|default_if_none:''}}">
<datalist id="list__occupation-list">
<option value="Gestor Municipal">Gestor Municipal</option>
<option value="Gestor Estadual">Gestor Estadual</option>
<option value="Coordenador(a) de Educação infantil">Coordenador(a) de Educação infantil</option>
<option value="Professor(a) de Educação infantil">Professor(a) de Educação infantil</option>
</datalist>
{% for error in errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.password1.errors %}
<div class="form-group{% if errors or form.non_field_errors %} has-error{% endif %}">
<i class="fa fa-lock" aria-hidden="true"></i>
<label for="password1" class="sr-only">{% trans "Password" %}</label>
<input name="password1" type="password" id="password1" class="form-control" placeholder="{% trans 'Really strong password' %}">
{% for error in errors %}<small>{{error}}</small>{% endfor %}
{% for error in form.non_field_errors %}<small>{{error}}</small>{% endfor %}
</div>
{% endwith %}
{% with errors=form.password2.errors %}
<div class="form-group{% if errors or form.non_field_errors %} has-error{% endif %}">
<i class="fa fa-lock" aria-hidden="true"></i>
<label for="password2" class="sr-only">{% trans 'Password confirmation' %}</label>
<input name="password2" type="password" id="password2" class="form-control" placeholder="{% trans 'Password confirmation' %}">
</div>
{% endwith %}
{% if terms_required %}
{% with errors=form.accept_terms.errors %}
<div class="checkbox{{ errors|yesno:' has-error,' }}">
<label for="accept_terms" class="terms">
<input name="accept_terms" id="accept_terms" type="checkbox" style="display:inline-block;" {% if form.accept_terms.value %}checked=""{% endif %}>
{% url 'courses_legacy:flatpage' url='/terms' as terms_url %}
{% blocktrans %}I agree to the <a href="{{ terms_url }}" target="_blank">Terms of Use</a>{% endblocktrans %}
</label>
</div>
{% endwith %}
{% endif %}
<button class="btn btn-submit">{% trans "Sign Up" %}</button>
</fieldset>
<!-- <p class="info">
{% load socialaccount %}
<a href="{% provider_login_url 'facebook' method='oauth2' %}">Facebook Connect</a>
{% for provider in openid_providers %}
<span> | </span>
<a href="{% provider_login_url "openid" openid=provider.openid_url next=current_path %}">{{ provider.name }}</a>
{% endfor %}
</p> -->
</form>
</div>
{% endblock %}
{% extends 'account/base.html' %}
{% load i18n %}
<div class="register-page">
<div class="message">
<h2>{% trans "Check your inbox" %}!</h2>
<h3>{% trans "Validation email sent" %}</h3>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment