-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating post story forms to include media item elements.
- Loading branch information
Russell Branca
committed
Feb 17, 2010
1 parent
6bf87b3
commit 24f0864
Showing
13 changed files
with
86 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
%h2 Upload or link to an image: | ||
- @story.images.build if @story.images.empty? | ||
- form.semantic_fields_for :images do |image_form| | ||
= image_form.file_field :image | ||
= image_form.input :remote_image_url, :required => false | ||
%br | ||
%br | ||
%h2 Embed or link to a video (youtube only): | ||
- @story.videos.build if @story.videos.empty? | ||
- form.semantic_fields_for :videos do |video_form| | ||
= video_form.input :embed_code, :required => false | ||
= video_form.input :remote_video_url, :required => false | ||
%br | ||
%br | ||
%h2 Link to an audio file (.mp3 only): | ||
- @story.audios.build if @story.audios.empty? | ||
- form.semantic_fields_for :audios do |audio_form| | ||
= audio_form.input :url, :required => false | ||
= audio_form.input :title, :required => false | ||
= audio_form.input :album, :required => false | ||
= audio_form.input :artist, :required => false | ||
%br | ||
%br |
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,23 @@ | ||
%h2 Upload or link to an image: | ||
- @story.images.build if @story.images.empty? | ||
- form.semantic_fields_for :images do |image_form| | ||
= image_form.file_field :image | ||
= image_form.input :remote_image_url, :required => false | ||
%br | ||
%br | ||
%h2 Embed or link to a video (youtube only): | ||
- @story.videos.build if @story.videos.empty? | ||
- form.semantic_fields_for :videos do |video_form| | ||
= video_form.input :embed_code, :required => false | ||
= video_form.input :remote_video_url, :required => false | ||
%br | ||
%br | ||
%h2 Link to an audio file (.mp3 only): | ||
- @story.audios.build if @story.audios.empty? | ||
- form.semantic_fields_for :audios do |audio_form| | ||
= audio_form.input :url, :required => false | ||
= audio_form.input :title, :required => false | ||
= audio_form.input :album, :required => false | ||
= audio_form.input :artist, :required => false | ||
%br | ||
%br |
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