mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Allow title edit for confirmed proposal if organizer or admin and do not allow event type change for confirmed/unconfirmed proposals if schedule_changes is not set, unless it is done by an admin or organizer
This commit is contained in:
parent
c91156ae0c
commit
d7ae2ba29b
2 changed files with 8 additions and 5 deletions
|
|
@ -48,4 +48,5 @@ class ApplicationController < ActionController::Base
|
|||
Rails.logger.debug("Access denied!")
|
||||
redirect_to root_path, :alert => exception.message
|
||||
end
|
||||
helper_method :organizer_or_admin?
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
= semantic_form_for(@event, :url => @url) do |f|
|
||||
%section#basic
|
||||
= f.inputs :name => "Session Information" do
|
||||
- if !@conference.call_for_papers.schedule_changes && @event.state == "confirmed"
|
||||
Title
|
||||
%br
|
||||
= @event.title
|
||||
- if !@conference.call_for_papers.schedule_changes && @event.state == "confirmed" && !organizer_or_admin?
|
||||
Title: #{@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"
|
||||
- if (@event.state === "unconfirmed" || @event.state === "confirmed") && !organizer_or_admin? && !@conference.call_for_papers.schedule_changes
|
||||
Event type: #{@event.event_type.title}
|
||||
%br
|
||||
%br
|
||||
- else
|
||||
= f.input :event_type_id,:as => :select, :collection => @event_types, :include_blank => false, :label => "Session Type"
|
||||
= f.input :require_registration
|
||||
= f.input :abstract, :input_html => {:rows => 5, :class => "span11"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue