forked from frodenas/cf-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_app_envvar_new.html.haml
31 lines (31 loc) · 1.49 KB
/
_app_envvar_new.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.modalBox{:id => "add_envvar_modalBox"}
= form_tag app_set_var_url, :id => "set-var-form", :method => :put, :remote => true do
.modalBox-title=t('apps.envvars.add_envvar')
.modalBox-flash
.modalBox-content
%table
%tbody
%tr
%td
= sprite_tag("help", :alt => "?", :class=> "help", :title => t('apps.envvars.name_help_html'))
= label_tag "name", t('apps.envvars.name') + ":"
%td
= text_field_tag :var_name, nil, :size => 30, :required => "required", :autofocus => "autofocus",
:placeholder => t('apps.envvars.name_placeholder'), :pattern => "[a-zA-Z0-9-_]+",
:title => t('apps.envvars.name_title_html')
.form-field-error
%tr
%td
= sprite_tag("help", :alt => "?", :class=> "help", :title => t('apps.envvars.value_help_html'))
= label_tag "value", t('apps.envvars.value') + ":"
%td
= text_field_tag :var_value, nil, :size => 30, :placeholder => t('apps.envvars.value_placeholder')
.form-field-error
- 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')