/
_environment_variable_entry.html.erb
36 lines (30 loc) · 1.44 KB
/
_environment_variable_entry.html.erb
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
32
33
34
35
36
<tr class="environment-variable-edit-row">
<td class="name_value_cell">
<%= scope[:var_form].text_field :name, :class => 'form_input environment_variable_name', :id => nil -%>
</td>
<td class="name_value_cell">
<span class="equals_sign"><%= l.string('EQUALS_SIGN') -%></span>
</td>
<td class="name_value_cell">
<% if scope[:is_secure] %>
<%= scope[:var_form].password_field :valueForDisplay, :class => 'form_input environment_variable_value', :id => nil -%>
<%= scope[:var_form].hidden_field :secure, value: true -%>
<% if scope[:var_form].object %>
<%= scope[:var_form].hidden_field :originalValue, value: scope[:var_form].object.getValueForDisplay, class: "original-secure-variable-value" -%>
<% end %>
<%= scope[:var_form].hidden_field com.thoughtworks.go.config.EnvironmentVariableConfig::ISCHANGED, value: scope[:is_changed], :class => "is-changed-field" -%>
<% else %>
<%= scope[:var_form].text_field :valueForDisplay, :class => 'form_input environment_variable_value', :id => nil -%>
<% end %>
</td>
<td class="name_value_cell cell_edit_reset_actions">
<% if scope[:is_secure] %>
<%= link_to 'Edit', '#', :class => 'edit' -%>
<%= link_to 'Reset', '#', :class => 'reset hidden' -%>
<% end %>
</td>
<td class="name_value_cell icon_remove_cell">
<span class="icon_remove delete_parent"></span>
<span class="wizard_error_message"></span>
</td>
</tr>