Commit aacce213b35d69653b0cf17654d827d74c1636fb
1 parent
16a5527f
Exists in
go_to_profile_panel
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
@@ -192,8 +192,11 @@ $(function() { | @@ -192,8 +192,11 @@ $(function() { | ||
192 | </div> | 192 | </div> |
193 | </div> | 193 | </div> |
194 | <div class="row"> | 194 | <div class="row"> |
195 | - <div class="submit"> | ||
196 | - <button type="submit" class="btn btn-primary btn-lg btn-block">{% trans "Update" %}</button> | 195 | + <div class="col-md-12"> |
196 | + <div class="links-group"> | ||
197 | + <button type="submit" class="btn btn-primary btn-lg" expanded="false">{% trans "Update" %}</button> | ||
198 | + <a href="{% url 'user_profile' user %}" class="btn btn-default btn-lg" role="button">{% trans "Go to profile panel" %}</a> | ||
199 | + </div> | ||
197 | </div> | 200 | </div> |
198 | </div> | 201 | </div> |
199 | </form> | 202 | </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 { |