Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now we can delete a translation of a record
- Add delete_translation button to form_actions - Add crud method `delete_translation` - Add `delete_translation` :post route in engines images, pages and resources - Add delete_translation locales - Fix CSS
- Loading branch information
Brice Sanchez
committed
Jul 17, 2017
1 parent
ffce888
commit f754f0b
Showing
7 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
Refinery::Core::Engine.routes.draw do | ||
get '/system/images/*dragonfly', :to => Dragonfly.app(:refinery_images) | ||
get '/system/images/*dragonfly', to: Dragonfly.app(:refinery_images) | ||
|
||
namespace :admin, :path => Refinery::Core.backend_route do | ||
resources :images, :except => :show do | ||
get :insert, :on => :collection | ||
namespace :admin, path: Refinery::Core.backend_route do | ||
resources :images, except: :show do | ||
get :insert, on: :collection | ||
|
||
member do | ||
post :delete_translation | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
Refinery::Core::Engine.routes.draw do | ||
get '/system/resources/*dragonfly', :to => Dragonfly.app(:refinery_resources) | ||
get '/system/resources/*dragonfly', to: Dragonfly.app(:refinery_resources) | ||
|
||
namespace :admin, :path => Refinery::Core.backend_route do | ||
resources :resources, :except => :show do | ||
get :insert, :on => :collection | ||
namespace :admin, path: Refinery::Core.backend_route do | ||
resources :resources, except: :show do | ||
get :insert, on: :collection | ||
|
||
member do | ||
post :delete_translation | ||
end | ||
end | ||
end | ||
end |