Skip to content

Commit

Permalink
Disable value field in configuration form when prompt is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Mar 8, 2010
1 parent db15548 commit 9eaa23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/project_configurations/_form.html.erb
Expand Up @@ -14,7 +14,7 @@
<tr> <tr>
<td> <td>
<% disabled = @configuration.prompt? ? {:disabled =>'disabled'} : {} %> <% disabled = @configuration.prompt? ? {:disabled =>'disabled'} : {} %>
<%= text_field 'configuration', 'value', :style =>'width: 330px' %> <%= text_field 'configuration', 'value', disabled.merge(:style =>'width: 330px') %>
</td> </td>
<td style="padding:0px;">&nbsp;<b>or</b>&nbsp;</td> <td style="padding:0px;">&nbsp;<b>or</b>&nbsp;</td>
<td valign="bottom"> <td valign="bottom">
Expand Down Expand Up @@ -42,4 +42,4 @@




</script> </script>
<% end %> <% end %>

0 comments on commit 9eaa23b

Please sign in to comment.