Fix theme deletion not working
This commit is contained in:
parent
f8448405a4
commit
65e66003ee
|
@ -1,16 +1,20 @@
|
||||||
= 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
|
%p.lead Welcome to the Theme Editor!
|
||||||
%p.lead Welcome to the Theme Editor!
|
%p
|
||||||
%p
|
Here you'll be able to modify your Retrospring experience by adjusting all available colors.
|
||||||
Here you'll be able to modify your Retrospring experience by adjusting all available colors.
|
To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include
|
||||||
To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include
|
descriptions on their general use on the site!
|
||||||
descriptions on their general use on the site!
|
|
||||||
|
|
||||||
%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 New Issue