From c91156ae0c383ea2254dc09e0daaf94ab5b94a6e Mon Sep 17 00:00:00 2001 From: differentreality Date: Sun, 28 Jul 2013 11:49:47 +0300 Subject: [PATCH] Do not allow title change after proposal is confirmed --- app/views/proposal/_proposal_form.html.haml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/proposal/_proposal_form.html.haml b/app/views/proposal/_proposal_form.html.haml index c02a9fdc..df960068 100644 --- a/app/views/proposal/_proposal_form.html.haml +++ b/app/views/proposal/_proposal_form.html.haml @@ -1,7 +1,14 @@ = semantic_form_for(@event, :url => @url) do |f| %section#basic = f.inputs :name => "Session Information" do - = f.input :title, :as => :string, :required => true + - if !@conference.call_for_papers.schedule_changes && @event.state == "confirmed" + Title + %br + = @event.title + %br + %br + - else + = f.input :title, :as => :string, :required => true = f.input :subtitle, :as => :string %section#details - unless @event.state === "unconfirmed" || @event.state === "confirmed"