Commit 49ba0c9ff766dc9a8bfeae077572559ad4018fb3
Committed by
Alexandre Barbosa
1 parent
5b139c69
Exists in
master
and in
4 other branches
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>
Showing
2 changed files
with
8 additions
and
6 deletions
Show diff stats
colab/accounts/templates/accounts/user_update_form.html
| ... | ... | @@ -228,8 +228,11 @@ $(function() { |
| 228 | 228 | </div> |
| 229 | 229 | </div> |
| 230 | 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 | 236 | </div> |
| 234 | 237 | </div> |
| 235 | 238 | </form> | ... | ... |
colab/static/css/screen.css
| ... | ... | @@ -115,10 +115,9 @@ form.signup .form-group { |
| 115 | 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 | 123 | .checkbox ul { | ... | ... |