Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
Show restart app option when creating an env var only when app is sta…
Browse files Browse the repository at this point in the history
…rted
  • Loading branch information
frodenas committed Feb 14, 2012
1 parent cd6bd16 commit b4d87fa
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/views/apps/envvars/_app_envvar_new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
%td
= text_field_tag :var_value, nil, :size => 30, :placeholder => t('apps.envvars.value_placeholder')
.form-field-error
%tr
%td
= sprite_tag("help", :alt => "?", :class=> "help", :title => t('apps.envvars.restart_app_help'))
= label_tag "restart", t('apps.envvars.restart_app') + ":"
%td
= check_box_tag :restart, true, true
- if @app[:state] == "STARTED"
%tr
%td
= sprite_tag("help", :alt => "?", :class=> "help", :title => t('apps.envvars.restart_app_help'))
= label_tag "restart", t('apps.envvars.restart_app') + ":"
%td
= check_box_tag :restart, true, true
.modalBox-submit= submit_tag t('apps.envvars.add_envvar')

0 comments on commit b4d87fa

Please sign in to comment.