Commit 16fc56e0806aa71926661467d79817481dbb1000

Authored by Miguel Barão
1 parent 186cc76c
Exists in master and in 1 other branch dev

fixes error in README.md install instructions.

updates login page.
Showing 2 changed files with 14 additions and 22 deletions   Show diff stats
@@ -66,8 +66,8 @@ Replace USER by your bitbucket username: @@ -66,8 +66,8 @@ Replace USER by your bitbucket username:
66 cd somewhere 66 cd somewhere
67 git clone https://git.xdi.uevora.pt/mjsb/aprendizations.git 67 git clone https://git.xdi.uevora.pt/mjsb/aprendizations.git
68 cd aprendizations 68 cd aprendizations
69 -pip install . # install aprendizations and dependencies  
70 npm install # install javascript libraries 69 npm install # install javascript libraries
  70 +pip install . # install aprendizations and dependencies
71 ``` 71 ```
72 72
73 Python packages are usually installed in: 73 Python packages are usually installed in:
aprendizations/templates/login.html
@@ -22,40 +22,32 @@ @@ -22,40 +22,32 @@
22 <!-- =================================================================== --> 22 <!-- =================================================================== -->
23 <body> 23 <body>
24 <div class="container-fluid"> 24 <div class="container-fluid">
25 - <div class="card bg-light mt-3"> 25 + <div class="card bg-light border-dark mt-3">
26 <div class="card-body"> 26 <div class="card-body">
27 <div class="row"> 27 <div class="row">
28 28
29 - <div class="col-sm-8">  
30 - <img src="/static/logo_horizontal_login.png" class="img-responsive" width="80%"> 29 + <div class="col-sm-9">
  30 + <img src="/static/logo_horizontal_login.png" class="img-responsive mb-3" width="50%" alt="Universidade de Évora">
31 </div> 31 </div>
32 32
33 - <div class="col-sm-4"> 33 + <div class="col-sm-3">
  34 +
34 <form method="post" action="/login" class="form-signin"> 35 <form method="post" action="/login" class="form-signin">
35 {% module xsrf_form_html() %} 36 {% module xsrf_form_html() %}
36 -  
37 - <div class="form-row">  
38 - <div class="col-md-6 mt-5">  
39 - <label for="uid">Número de aluno</label>  
40 - <input type="text" id="uid" name="uid" class="form-control" placeholder="e.g., 99999" required autofocus>  
41 - </div>  
42 -  
43 - <div class="col-md-6 mt-5">  
44 - <label for="uid">Senha secreta</label>  
45 - <input type="password" name="pw" class="form-control" placeholder="" required>  
46 - </div>  
47 - </div>  
48 - 37 + <div class="form-group">
  38 + <input type="text" name="uid" class="form-control mb-3" placeholder="Número de aluno" required autofocus>
  39 + <input type="password" name="pw" class="form-control mb-3" placeholder="Senha" required>
49 <p class="text-danger"> {{ error }} </p> 40 <p class="text-danger"> {{ error }} </p>
50 <button class="btn btn-primary" type="submit"> 41 <button class="btn btn-primary" type="submit">
51 Entrar 42 Entrar
52 </button> 43 </button>
53 - 44 + </div>
54 </form> 45 </form>
55 </div> 46 </div>
56 - </div>  
57 - </div>  
58 - </div> 47 +
  48 + </div> <!-- row -->
  49 + </div> <!-- card-body -->
  50 + </div> <!-- card -->
59 </div> <!-- container --> 51 </div> <!-- container -->
60 </body> 52 </body>
61 </html> 53 </html>