mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 23:17:47 +01:00
Fix theme deletion not working
This commit is contained in:
parent
f8448405a4
commit
65e66003ee
1 changed files with 16 additions and 16 deletions
|
@ -1,4 +1,3 @@
|
||||||
= bootstrap_form_for(current_user.theme || Theme.new, url: {action: "update_theme"}, html: {id: 'update_theme'}, method: "patch") do |f|
|
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h1 Theming
|
%h1 Theming
|
||||||
|
@ -11,6 +10,11 @@
|
||||||
%p
|
%p
|
||||||
And with that:
|
And with that:
|
||||||
%b Happy Theming!
|
%b Happy Theming!
|
||||||
|
|
||||||
|
- if current_user.theme
|
||||||
|
.pull-right
|
||||||
|
= button_to 'Delete Theme', delete_user_theme_path, data: { confirm: "Are you sure?" }, tabindex: -1, method: :delete, class: "btn btn-danger"
|
||||||
|
= bootstrap_form_for(current_user.theme || Theme.new, url: {action: "update_theme"}, html: {id: 'update_theme'}, method: "patch") do |f|
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2 General
|
%h2 General
|
||||||
|
@ -129,7 +133,3 @@
|
||||||
.card-body
|
.card-body
|
||||||
.pull-left
|
.pull-left
|
||||||
= f.submit t('views.actions.save'), class: 'btn btn-primary'
|
= f.submit t('views.actions.save'), class: 'btn btn-primary'
|
||||||
|
|
||||||
- if current_user.theme
|
|
||||||
.pull-right
|
|
||||||
= button_to 'Delete Theme', delete_user_theme_path, data: { confirm: "Are you sure?" }, tabindex: -1, method: :delete, class: "btn btn-danger"
|
|
||||||
|
|
Loading…
Reference in a new issue