Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed last views to haml and added shards
- Loading branch information
Keith Bingman
authored and
Keith Bingman
committed
Mar 19, 2008
1 parent
f1f4ddb
commit 4a7546f
Showing
6 changed files
with
38 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
%p.title | ||
%label{ :for => "asset_title" } Title | ||
= text_field "asset", "title", :class => 'textbox', :maxlength => 100 | ||
#extended-metadata{ :class => "row", :style => "display: none" } | ||
%table.fieldset{ :cellpadding => "0", :cellspacing => "0", :border => "0" } | ||
%tr | ||
%td.label | ||
%label{ :for => "asset_caption" } Caption | ||
%td.field | ||
= text_field "asset", "caption", :class => 'textbox', :maxlength => 255 | ||
%p | ||
%small | ||
%a{ :id => "more-extended-metadata", :href => "#", :onclick => "#{toggle_javascript_for('extended-metadata')}" } More | ||
%a{ :id => "less-extended-metadata", :href => "#", :onclick => "#{toggle_javascript_for('extended-metadata')}", :style => "display: none" } Less | ||
|
||
%p.content | ||
%label{ :for => "layout_content", :class => "asset" } | ||
Filename: | ||
= @asset.filename unless @asset.new_record? | ||
|
||
- unless @asset.new_record? | ||
.asset | ||
= image_tag @asset.public_filename(:original) | ||
|
||
= file_field "asset", "uploaded_data", :class => "", :style => "width: 100%" |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
%td.assets | ||
= page.assets.empty? ? '' : page.assets.size |
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,2 @@ | ||
%th | ||
Assets |
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