Commit 49ba0c9ff766dc9a8bfeae077572559ad4018fb3

Authored by Carlos Coêlho
Committed by Alexandre Barbosa
1 parent 5b139c69

Back to profile button in Edit profile page

Added a button that takes the user back to its profile general view.

Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Signed-off-by: Peter Lima <peterlima@gmail.com>
colab/accounts/templates/accounts/user_update_form.html
@@ -228,8 +228,11 @@ $(function() { @@ -228,8 +228,11 @@ $(function() {
228 </div> 228 </div>
229 </div> 229 </div>
230 <div class="row"> 230 <div class="row">
231 - <div class="submit">  
232 - <button type="submit" class="btn btn-primary btn-lg btn-block">{% trans "Update" %}</button> 231 + <div class="col-md-12">
  232 + <div class="links-group">
  233 + <button type="submit" class="btn btn-primary btn-lg" expanded="false">{% trans "Update" %}</button>
  234 + <a href="{% url 'user_profile' user %}" class="btn btn-default btn-lg" role="button">{% trans "Go to profile panel" %}</a>
  235 + </div>
233 </div> 236 </div>
234 </div> 237 </div>
235 </form> 238 </form>
colab/static/css/screen.css
@@ -115,10 +115,9 @@ form.signup .form-group { @@ -115,10 +115,9 @@ form.signup .form-group {
115 margin-left: 0.5em; 115 margin-left: 0.5em;
116 } 116 }
117 117
118 -div.submit {  
119 - margin: auto;  
120 - margin-bottom: 2em;  
121 - width: 200px; 118 +div.links-group {
  119 + text-align: center;
  120 + margin-bottom: 20px;
122 } 121 }
123 122
124 .checkbox ul { 123 .checkbox ul {