From 813658fb196cd00c2a95da419e68158d663b1343 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Fri, 22 Jan 2016 11:00:01 +0200 Subject: [PATCH] rebase fixes for commercials path --- Gemfile.lock | 3 --- app/views/proposal/_form.html.haml | 2 +- app/views/proposal/_tooltip.html.haml | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d205da32..ecab3981 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -538,6 +538,3 @@ DEPENDENCIES uglifier (>= 1.3.0) web-console (~> 2.0) whenever - -BUNDLED WITH - 1.10.6 diff --git a/app/views/proposal/_form.html.haml b/app/views/proposal/_form.html.haml index e19bbb7f..7f8ec638 100644 --- a/app/views/proposal/_form.html.haml +++ b/app/views/proposal/_form.html.haml @@ -22,7 +22,7 @@ #resource-placeholder{ style: 'background-color:#d3d3d3; float: left; width: 400px; height: 250px; margin: 5px; border-width: 1px; border-style: solid; border-color: rgba(0,0,0,.2);' } .row .col-md-6 - = semantic_form_for(@event.commercials.build, url: conference_proposal_commercials_path(conference_id: @conference.short_title, proposal_id: @event)) do |f| + = semantic_form_for(@event.commercials.build, url: conference_program_proposal_commercials_path(conference_id: @conference.short_title, proposal_id: @event)) do |f| = f.input :url, label: 'URL', as: :string, input_html: { required: 'required', type: 'url' }, hint: 'Just paste the url of your video/photo provider. Currently supported: YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.' = f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true } diff --git a/app/views/proposal/_tooltip.html.haml b/app/views/proposal/_tooltip.html.haml index ed45e8e5..aced298b 100644 --- a/app/views/proposal/_tooltip.html.haml +++ b/app/views/proposal/_tooltip.html.haml @@ -26,7 +26,7 @@ - if progress_status['commercials'] = link_to 'Edit the commercials', edit_conference_program_proposal_path(event.program.conference.short_title, event, anchor: 'commercials-content') - else - = link_to 'Add a commercial', edit_conference_program_proposal_path(event.conference.short_title, event, anchor: 'commercials-content') + = link_to 'Add a commercial', edit_conference_program_proposal_path(event.program.conference.short_title, event, anchor: 'commercials-content') %li{'class'=>class_for_todo(progress_status['difficulty_level'])} %span{'class'=>icon_for_todo(progress_status['difficulty_level'])} - if progress_status['difficulty_level']