Project

General

Profile

Revision f4c209f1

Added by Dmitri Dolguikh about 8 years ago

fixes #9004: wizard moves correctly between persisted states now

View differences:

app/views/containers/steps/environment.html.erb
1 1
<%= render :layout => 'title', :locals => { :step => 4 } do %>
2
  <%= form_for @environment, :url => wizard_path, :method => :put do |f| %>
2
  <%= form_for @docker_container_wizard_states_environment, :url => wizard_path, :method => :put do |f| %>
3 3
    <div class='row'>
4 4
      <div class='col-md-6 col-md-push-7'>
5 5
        <h3><%= _("Shell") %></h3>
......
10 10
      </div>
11 11
      <div class='col-md-6 col-md-pull-6'>
12 12
        <h3><%= _("Environment variables") %></h3>
13
        <%= f.fields_for :environment_variables, @environment.environment_variables do |builder| %>
13
        <%= f.fields_for :environment_variables, @docker_container_wizard_states_environment.environment_variables do |builder| %>
14 14
          <%= render 'foreman_docker/common_parameters/environment_variable', :f => builder %>
15 15
        <% end %>
16 16
        <%= link_to_add_fields(_("Add environment variable"), f, :environment_variables,

Also available in: Unified diff