<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,32 +72,33 @@ module Admin::FlightsHelper
   end
 
   def award_form_column(record, input_name)
+    return %Q{&lt;span class=&quot;readonly&quot;&gt;#{h Award.find(record.award_id).name}&lt;/span&gt;} unless record.new_record?
+
     options = form_element_input_options(input_name, Flight)
-    options[:name] += '[id]'
-    awards = Award.find(:all,
-                        :order =&gt; 'category_id, position').collect { |a| [ a.name, a.id ] }
-    select :record, :award_id, awards,
-           { :prompt =&gt; '- Select an award category -' },
+    options[:name] += &quot;[id]&quot;
+    select :record, :award_id,
+           Award.all(:order =&gt; &quot;category_id, position&quot;).collect { |a| [ a.name, a.id ] },
+           { :prompt =&gt; &quot;- Select an award category -&quot; },
            options
   end
 
   def round_form_column(record, input_name)
+    return %Q{&lt;span class=&quot;readonly&quot;&gt;#{h Round.find(record.round_id).name}&lt;/span&gt;} unless record.new_record?
+
     options = form_element_input_options(input_name, Flight)
-    options[:name] += '[id]'
-    rounds = Round.find(:all,
-                        :order =&gt; 'id').collect { |r| [ r.name, r.id ] }
-    select :record, :round_id, rounds,
-           { :prompt =&gt; '- Select a round -' },
+    options[:name] += &quot;[id]&quot;
+    select :record, :round_id,
+           Round.all(:order =&gt; &quot;id&quot;).collect { |r| [ r.name, r.id ] },
+           { :prompt =&gt; &quot;- Select a round -&quot; },
            options
   end
 
   def judging_session_form_column(record, input_name)
     options = form_element_input_options(input_name, Flight)
-    options[:name] += '[id]'
-    sessions = JudgingSession.find(:all,
-                                   :order =&gt; 'position').collect { |s| [ s.description, s.id ] }
-    select :record, :judging_session_id, sessions,
-           { :prompt =&gt; '- Select a judging session -' },
+    options[:name] += &quot;[id]&quot;
+    select :record, :judging_session_id,
+           JudgingSession.all(:order =&gt; &quot;position&quot;).collect { |s| [ s.description, s.id ] },
+           { :prompt =&gt; &quot;- Select a judging session -&quot; },
            options
   end
 </diff>
      <filename>app/helpers/admin/flights_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>43f03441d0a4e7851e61350119f9d3e1bc54d187</id>
    </parent>
  </parents>
  <author>
    <name>David Cato</name>
    <email>git@crunchyfrog.net</email>
  </author>
  <url>http://github.com/davec/openbrewcomp/commit/a88a7fa0ae35c7fbd962b81796311b8a25477547</url>
  <id>a88a7fa0ae35c7fbd962b81796311b8a25477547</id>
  <committed-date>2009-10-12T14:25:31-07:00</committed-date>
  <authored-date>2009-10-12T14:24:11-07:00</authored-date>
  <message>Disable editing award and round values for existing flights</message>
  <tree>2279ce38133aa0ec3a1d7216153e3e7345469e06</tree>
  <committer>
    <name>David Cato</name>
    <email>git@crunchyfrog.net</email>
  </committer>
</commit>
