Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fnctionality to declare modal new in the controller.
- Loading branch information
1 parent
c98491b
commit 842239f
Showing
11 changed files
with
53 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.span5.vline-center | ||
#dropzone.well.fade.vline-wrap{class: ('empty' unless resource.image)} | ||
= render partial: 'cms/assets/single-file/uploader', locals: { parent: resource } | ||
- if resource.image | ||
%figure.template-download | ||
.preview | ||
= link_to edit_cms_asset_path(resource.image), title: resource.image.asset_path do | ||
= image_tag resource.image.asset_path.url(:medium) | ||
.hover_links | ||
= link_to [:edit, :cms, resource.image] do | ||
%i.icon-pencil | ||
= link_to [:cms, resource.image], remote: true, method: :delete, confirm: "Are you sure?" do | ||
%i.icon-trash |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.modal-body | ||
.close{ data: { dismiss: 'modal' } } × | ||
%h1 You need to add the following partial: | ||
%h3= "#{params[:controller]}/_form-modal.html.*" |
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