Commit 956ab406ebd2e648fbe63c8eacc2a9f648f901f9
1 parent
25286b08
Exists in
master
and in
5 other branches
Ajustando página de login
Showing
1 changed file
with
17 additions
and
42 deletions
Show diff stats
core/templates/index.html
... | ... | @@ -3,53 +3,31 @@ |
3 | 3 | {% load static i18n %} |
4 | 4 | {% load widget_tweaks %} |
5 | 5 | |
6 | -{% block style %} | |
7 | - <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css"> | |
8 | - <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
9 | - | |
10 | - <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.3.7/css/bootstrap.min.css' %}"> | |
11 | - <link rel="stylesheet" type="text/css" href="{% static 'material/css/bootstrap-material-design.min.css' %}"> | |
12 | - <link rel="stylesheet" type="text/css" href="{% static 'material/css/ripples.min.css' %}"> | |
13 | - | |
6 | +{% block nav %} | |
14 | 7 | {% endblock %} |
15 | 8 | |
16 | - | |
17 | -{% block javascript %} | |
18 | -<!-- Jquery --> | |
19 | - <script src="{% static 'js/jquery-3.1.0.min.js' %}"></script> | |
20 | - <script src="{% static 'bootstrap-3.3.7/js/bootstrap.min.js' %}"></script> | |
21 | - <script src="{% static 'material/js/material.min.js' %}"></script> | |
22 | - <script src="{% static 'material/js/ripples.min.js' %}"></script> | |
23 | - <script> | |
24 | - $.material.init(); | |
25 | - </script> | |
26 | -{% endblock %} | |
27 | - | |
28 | - | |
29 | 9 | {% block content %} |
30 | - <div class="row logo-row"> | |
10 | + <div class="row logo-row"> | |
31 | 11 | <div class="col-lg-offset-2 col-lg-9"> |
32 | 12 | <img src="..." class="img-responsive center-block " alt="logo amadeus"> |
33 | 13 | </div> |
34 | 14 | </div> |
35 | 15 | |
36 | - <div class="row "> | |
16 | + <div class="row "> | |
37 | 17 | <div class="col-lg-9 col-lg-offset-2"> |
38 | 18 | <div class="card"> |
39 | 19 | <div class="card-content"> |
40 | - | |
41 | 20 | <div class="card-body"> |
42 | - <form id="form-login" class="form-group" method="post" action=""> | |
43 | - {% csrf_token %} | |
44 | - <div class="form-group is-empty"> | |
45 | - <label for="inputEmail" class="col-md-4 control-label"> Username</label> | |
46 | - <div class="col-md-8"> | |
47 | - <input form="form-login" type="text" name="username" class="form-control" id="inputEmail" placeholder="Username"> | |
48 | - </div> | |
49 | - </div> | |
21 | + <form id="form-login" class="form-group" method="post" action=""> | |
22 | + {% csrf_token %} | |
23 | + <div class="form-group is-empty"> | |
24 | + <label for="inputEmail" class="col-md-4 control-label"> {% trans 'Username' %}</label> | |
25 | + <div class="col-md-8"> | |
26 | + <input form="form-login" type="text" name="username" class="form-control" id="inputEmail" placeholder="Username"> | |
27 | + </div> | |
28 | + </div> | |
50 | 29 | <div class="form-group is-empty"> |
51 | - <label for="inputPassword" class="col-md-4 control-label"> Password</label> | |
52 | - | |
30 | + <label for="inputPassword" class="col-md-4 control-label"> {% trans 'Password' %}</label> | |
53 | 31 | <div class="col-md-8"> |
54 | 32 | <input form="form-login" type="password" name="password" class="form-control" id="inputPassword" placeholder="Password"> |
55 | 33 | </div> |
... | ... | @@ -57,31 +35,28 @@ |
57 | 35 | <div class="col-md-offset-2 col-md-10"> |
58 | 36 | <div class="checkbox"> |
59 | 37 | <label> |
60 | - <input form="form-login" type="checkbox" name="checkbox"><span class="checkbox-material"><span class="check"></span></span> Remember Email | |
38 | + <input form="form-login" type="checkbox" name="checkbox"><span class="checkbox-material"><span class="check"></span></span> {% trans 'Remember Email' %} | |
61 | 39 | </label> |
62 | 40 | </div> |
63 | 41 | </div> |
64 | - </form> | |
42 | + </form> | |
65 | 43 | </div> |
66 | 44 | |
67 | 45 | <footer class="card-footer" style="display: -webkit-box;"> |
68 | 46 | <div class="col-md-6"> |
69 | - <button type="button" class="btn btn-flat" formaction="#" style="position: initial;">Guest</button> | |
47 | + <button type="button" class="btn btn-flat" formaction="#" style="position: initial;">{% trans 'Guest' %}</button> | |
70 | 48 | </div> |
71 | 49 | <div class="col-md-6"> |
72 | - <button type="submite" class="btn btn-flat btn-success" form="form-login" style="position: initial;">Login</button> | |
50 | + <button type="submite" class="btn btn-flat btn-success" form="form-login" style="position: initial;">{% trans 'Login' %}</button> | |
73 | 51 | </div> |
74 | 52 | </footer> |
75 | - | |
76 | 53 | </div> |
77 | 54 | </div> |
78 | 55 | </div> |
79 | 56 | </div> |
80 | 57 | <div class="row"> |
81 | 58 | <div class="col-lg-offset-2 col-lg-9"> |
82 | - <button class="btn btn-raised btn-primary btn-lg btn-block" formaction="{% url 'users:create' %}">Sign Up </button> | |
83 | - | |
59 | + <button class="btn btn-raised btn-primary btn-lg btn-block" formaction="{% url 'users:create' %}">{% trans 'Sign Up' %} </button> | |
84 | 60 | </div> |
85 | - | |
86 | 61 | </div> |
87 | 62 | {% endblock%} | ... | ... |