Project

General

Profile

Download (1.97 KB) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / views / containers / steps / environment.html.erb @ bc82d5d5

1
<%= render :layout => 'title', :locals => { :step => 4 } do %>
2
  <%= form_for @docker_container_wizard_states_environment, :url => wizard_path, :method => :put do |f| %>
3
    <div class='row'>
4
      <div class='col-md-6 col-md-push-7'>
5
        <h3><%= _("Shell") %></h3>
6
        <%= checkbox_f f, :tty, :help_inline => _('Allocate a pseudo-tty'), :label => _('TTY') %>
7
        <%= checkbox_f f, :attach_stdin,  :label => _('Attach STDIN') %>
8
        <%= checkbox_f f, :attach_stdout, :label => _('Attach STDOUT') %>
9
        <%= checkbox_f f, :attach_stderr, :label => _('Attach STDERR') %>
10
      </div>
11
      <div class='col-md-6 col-md-pull-6'>
12
        <h3><%= _("Environment variables") %></h3>
13
        <%= f.fields_for :environment_variables, @docker_container_wizard_states_environment.environment_variables do |builder| %>
14
          <%= render 'foreman_docker/common_parameters/environment_variable', :f => builder %>
15
        <% end %>
16
        <%= link_to_add_fields(_("Add environment variable"), f, :environment_variables,
17
                               'foreman_docker/common_parameters/environment_variable') %>
18

    
19
        <h3><%= _("Exposed Ports") %></h3>
20
        <%= f.fields_for :exposed_ports, @docker_container_wizard_states_environment.exposed_ports do |builder| %>
21
          <%= render 'foreman_docker/common_parameters/exposed_ports', :f => builder %>
22
        <% end %>
23
        <%= link_to_add_fields(_("Add Exposed Port"), f, :exposed_ports,
24
                               'foreman_docker/common_parameters/exposed_ports') %>
25
        <h3><%= _("DNS") %></h3>
26
        <%= f.fields_for :dns, @docker_container_wizard_states_environment.dns do |builder| %>
27
          <%= render 'foreman_docker/common_parameters/dns', :f => builder %>
28
        <% end %>
29
        <%= link_to_add_fields(_("Add DNS"), f, :dns,
30
                               'foreman_docker/common_parameters/dns') %>                               
31
      </div>
32
   </div>
33
   <%= render :partial => 'form_buttons' %>
34
  <% end %>
35
<% end %>