Permalink
Browse files

Disable value field in configuration form when prompt is checked

  • Loading branch information...
scambra
scambra committed Mar 8, 2010
1 parent db15548 commit 9eaa23b77b242db837a26abaf0e68d7b1cf2aea1
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/project_configurations/_form.html.erb
@@ -14,7 +14,7 @@
<tr>
<td>
<% disabled = @configuration.prompt? ? {:disabled =>'disabled'} : {} %>
- <%= text_field 'configuration', 'value', :style =>'width: 330px' %>
+ <%= text_field 'configuration', 'value', disabled.merge(:style =>'width: 330px') %>
</td>
<td style="padding:0px;">&nbsp;<b>or</b>&nbsp;</td>
<td valign="bottom">
@@ -42,4 +42,4 @@
</script>
-<% end %>
+<% end %>

0 comments on commit 9eaa23b

Please sign in to comment.