This file contains hidden or 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
| def single_widget_params | |
| params.require(:single_widget).permit( | |
| :title, :max_votes_per_day, :expires_at_date, :cms_title, | |
| :expires_at_time, :logo, :logo_cache, :start_screen_text, :tos_text, :recording_tips, :hashtags, | |
| :id, :respond_button_color, :respond_button_font_color, | |
| :video_max_length, | |
| widget_video: [ | |
| video_attributes: [ | |
| :id, :creation_mode, :description, :username, :embed_code, | |
| :cover_photo, :cover_photo_cache, :tag_list |
This file contains hidden or 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
| <%= form.fields_for :widget_videos do |widget_video| %> | |
| <%= render "publisher/widgets/widget_video_fields", widget_video_fields: widget_video %> | |
| <% end %> | |
| </div> |
This file contains hidden or 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
| <%= form_for [:publisher, @site, @single_widget], builder: FoundationFormBuilder, html: { role: "single-widget-form" } do |form| %> | |
| <div role="form"> | |
| <%= form.errors_list %> | |
| <%= field_set_tag "Basic Information" do %> | |
| <%= render "publisher/widgets/basic_info_fields", form: form %> | |
| <% end %> | |
| <%= field_set_tag "Advanced Settings" do %> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <title>Squabbler Publisher</title> | |
| <link href="/assets/publisher.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
| <link href="/assets/video-js.css?body=1" media="all" rel="stylesheet" type="text/css" /> |
NewerOlder