Commit 377f4cbaf7e58ed80b5d60bb95f99e7272290390

Authored by Erik Zambom
Committed by GitHub
2 parents f9508fd1 0f20aeb7

Merge pull request #569 from amadeusproject/refactoring

Daily Update - 22_09_2017
amadeus/static/css/base/amadeus_responsive.css
@@ -276,12 +276,20 @@ @@ -276,12 +276,20 @@
276 p{ 276 p{
277 margin: 10px; 277 margin: 10px;
278 } 278 }
  279 + .slide_toggle{
  280 + visibility: hidden;
  281 + }
  282 + .carousel-caption{
  283 + position: static;
  284 + text-align: center;
  285 + font-size: 1em;
  286 + }
279 } 287 }
280 @media(max-width:610px){ 288 @media(max-width:610px){
281 .outside-title{ 289 .outside-title{
282 font-size:1.5em; 290 font-size:1.5em;
283 } 291 }
284 - 292 +
285 .container-fluid { 293 .container-fluid {
286 padding-left: 10px; 294 padding-left: 10px;
287 padding-right: 10px; 295 padding-right: 10px;
@@ -290,4 +298,15 @@ @@ -290,4 +298,15 @@
290 p{ 298 p{
291 margin: 10px; 299 margin: 10px;
292 } 300 }
  301 + .carousel-caption{
  302 + position: static;
  303 + text-align: center;
  304 + font-size: 1em;
  305 + }
293 } 306 }
  307 +
  308 +@media(min-width: 500px) {
  309 + .dropdown-menu{
  310 + margin-left: 100px;
  311 + }
  312 +}
294 \ No newline at end of file 313 \ No newline at end of file
subjects/templates/subjects/home.html
@@ -24,10 +24,10 @@ @@ -24,10 +24,10 @@
24 <div id="myCarousel" class="carousel slide " data-ride="carousel"> 24 <div id="myCarousel" class="carousel slide " data-ride="carousel">
25 <!-- Indicators --> 25 <!-- Indicators -->
26 <ol class="carousel-indicators"> 26 <ol class="carousel-indicators">
27 - <li data-target="#myCarousel" data-slide-to="0" class="active"></li> 27 + <li class="slide_toggle" data-target="#myCarousel" data-slide-to="0" class="active"></li>
28 {% for new in news %} 28 {% for new in news %}
29 {% if forloop.counter != news.count %} 29 {% if forloop.counter != news.count %}
30 - <li data-target="#myCarousel" data-slide-to="{{forloop.counter}}"></li> 30 + <li class="slide_toggle" data-target="#myCarousel" data-slide-to="{{forloop.counter}}"></li>
31 {% endif %} 31 {% endif %}
32 {% endfor %} 32 {% endfor %}
33 </ol> 33 </ol>
users/locale/pt_BR/LC_MESSAGES/django.po
@@ -259,8 +259,6 @@ msgid &quot;No users found&quot; @@ -259,8 +259,6 @@ msgid &quot;No users found&quot;
259 msgstr "Nenhum usuário encontrado" 259 msgstr "Nenhum usuário encontrado"
260 260
261 #: users/templates/users/login.html:43 261 #: users/templates/users/login.html:43
262 -#, fuzzy  
263 -#| msgid "Sign in with your account to continue"  
264 msgid "Sign in with your account" 262 msgid "Sign in with your account"
265 msgstr "Entre com a sua conta" 263 msgstr "Entre com a sua conta"
266 264
users/templates/users/register.html
@@ -48,73 +48,74 @@ @@ -48,73 +48,74 @@
48 <form class="{% if form.has_error %} has-error {% endif %} form-horizontal is-fileinput" method="post" enctype="multipart/form-data" id="user-form"> 48 <form class="{% if form.has_error %} has-error {% endif %} form-horizontal is-fileinput" method="post" enctype="multipart/form-data" id="user-form">
49 {% csrf_token %} 49 {% csrf_token %}
50 {% for field in form %} 50 {% for field in form %}
51 - <div class="col-lg-12 col-md-12 col-sm-12">  
52 - <div class="form-group form-group-md">  
53 - <div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">  
54 - {% if field.auto_id == 'id_image' %}  
55 - <label for="{{ field.auto_id }}">{{ field.label }}</label>  
56 - 51 + {% if field.auto_id == 'id_show_email' %}
  52 + {% elif field.auto_id == 'id_x' %}
  53 + <input class="form-control" id="id_x" name="x" type="hidden">
  54 + {% elif field.auto_id == 'id_y' %}
  55 + <input class="form-control" id="id_y" name="y" type="hidden">
  56 + {% elif field.auto_id == 'id_width' %}
  57 + <input class="form-control" id="id_width" name="width" type="hidden">
  58 + {% elif field.auto_id == 'id_height' %}
  59 + <input class="form-control" id="id_height" name="height" type="hidden">
  60 + {% else %}
  61 + <div class="col-lg-12 col-md-12 col-sm-12">
  62 + <div class="form-group form-group-md">
  63 + <div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">
  64 + {% if field.auto_id == 'id_image' %}
  65 + <label for="{{ field.auto_id }}">{{ field.label }}</label>
57 {% render_field field class='form-control file-selector' %} 66 {% render_field field class='form-control file-selector' %}
58 -  
59 - <div class="input-group common-file-input">  
60 - <input type="text" readonly="" class="form-control" placeholder="{% trans 'Choose your photo...' %}">  
61 - <span class="input-group-btn input-group-sm">  
62 - <button type="button" class="btn btn-fab btn-fab-mini">  
63 - <i class="material-icons">attach_file</i>  
64 - </button>  
65 - </span>  
66 - </div>  
67 -  
68 - <div class="filedrag">  
69 - {% if acc.image %}  
70 - <i class="fa fa-file-archive-o"></i> <br />  
71 -  
72 - <small>{{ acc.image.path }}</small>  
73 - {% else %}  
74 - {% trans 'Click or drop the file here' %}<br />  
75 -  
76 - <small>{% trans 'The photo could not exceed 2MB.' %}</small>  
77 - {% endif %}  
78 - </div>  
79 - {% else %}  
80 - {% if field.auto_id == 'id_show_email' %}  
81 - {% else %}  
82 - {% render_field field class='form-control' %}  
83 - {% endif %}  
84 -  
85 - 67 + <div class="input-group common-file-input">
  68 + <input type="text" readonly="" class="form-control" placeholder="{% trans 'Choose your photo...' %}">
  69 + <span class="input-group-btn input-group-sm">
  70 + <button type="button" class="btn btn-fab btn-fab-mini">
  71 + <i class="material-icons">attach_file</i>
  72 + </button>
  73 + </span>
  74 + </div>
  75 + <div class="filedrag">
  76 + {% if acc.image %}
  77 + <i class="fa fa-file-archive-o"></i> <br />
  78 + <small>{{ acc.image.path }}</small>
  79 + {% else %}
  80 + {% trans 'Click or drop the file here' %}<br />
  81 + <small>{% trans 'The photo could not exceed 2MB.' %}</small>
  82 + {% endif %}
  83 + </div>
  84 + {% else %}
  85 + {% render_field field class='form-control' %}
  86 + {% endif %}
  87 +
  88 + <span class="help-block">{{ field.help_text }}</span>
  89 + </div>
  90 + {% if field.errors %}
  91 + <div class="row">
  92 + <div class="alert alert-danger alert-dismissible" role="alert">
  93 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  94 + <span aria-hidden="true">&times;</span>
  95 + </button>
  96 + <ul>
  97 + {% for error in field.errors %}
  98 + <li>{{ error }}</li>
  99 + {% endfor %}
  100 + </ul>
  101 + </div>
  102 + </div>
86 {% endif %} 103 {% endif %}
87 - <span class="help-block">{{ field.help_text }}</span>  
88 - </div>  
89 -  
90 - {% if field.errors %}  
91 - <div class="row">  
92 - <div class="alert alert-danger alert-dismissible" role="alert">  
93 - <button type="button" class="close" data-dismiss="alert" aria-label="Close">  
94 - <span aria-hidden="true">&times;</span>  
95 - </button> 104 +
  105 + {% if field.auto_id == 'id_image' %}
  106 + <div class="col-lg-12 col-md-12 col-sm-12 alert alert-danger alert-dismissible client-file-errors" style="display:none" role="alert">
  107 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  108 + <span aria-hidden="true">&times;</span>
  109 + </button>
96 <ul> 110 <ul>
97 - {% for error in field.errors %}  
98 - <li>{{ error }}</li>  
99 - {% endfor %} 111 + <li class="size" style="display:none">{% trans "The image is too large. It should have less than 2MB." %}</li>
  112 + <li class="format" style="display:none">{% trans 'File not supported.' %}</li>
100 </ul> 113 </ul>
101 </div> 114 </div>
102 - </div>  
103 - {% endif %}  
104 -  
105 - {% if field.auto_id == 'id_image' %}  
106 - <div class="col-lg-12 col-md-12 col-sm-12 alert alert-danger alert-dismissible client-file-errors" style="display:none" role="alert">  
107 - <button type="button" class="close" data-dismiss="alert" aria-label="Close">  
108 - <span aria-hidden="true">&times;</span>  
109 - </button>  
110 - <ul>  
111 - <li class="size" style="display:none">{% trans "The image is too large. It should have less than 2MB." %}</li>  
112 - <li class="format" style="display:none">{% trans 'File not supported.' %}</li>  
113 - </ul>  
114 - </div>  
115 - {% endif %} 115 + {% endif %}
  116 + </div>
116 </div> 117 </div>
117 - </div> 118 + {% endif %}
118 {% endfor %} 119 {% endfor %}
119 <div class="row"> 120 <div class="row">
120 <div class="col-lg-12 col-md-12 col-sm-12"> 121 <div class="col-lg-12 col-md-12 col-sm-12">
@@ -146,7 +147,7 @@ function Init() { @@ -146,7 +147,7 @@ function Init() {
146 var small = $(".file-selector"), 147 var small = $(".file-selector"),
147 filedrag = $(".filedrag"), 148 filedrag = $(".filedrag"),
148 common = $(".common-file-input"); 149 common = $(".common-file-input");
149 - 150 +
150 // file select 151 // file select
151 small.on("change", FileSelectHandler); 152 small.on("change", FileSelectHandler);
152 153