Project

General

Profile

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

foreman_docker / app / views / registries / _form.html.erb @ 401c0065

1
<%= javascript 'foreman_docker/create_registry' %>
2
<%= form_for @registry, :url => (@registry.new_record? ? registries_path : registry_path(:id => @registry.id)) do |f| %>
3
    <%= base_errors_for @registry %>
4
    <ul class="nav nav-tabs" data-tabs="tabs">
5
      <li class="active"><a href="#primary" data-toggle="tab"><%= _("Registry") %></a></li>
6
      <% if show_location_tab? %>
7
          <li><a href="#locations" data-toggle="tab"><%= _("Locations") %></a></li>
8
      <% end %>
9
      <% if show_organization_tab? %>
10
          <li><a href="#organizations" data-toggle="tab"><%= _("Organizations") %></a></li>
11
      <% end %>
12
    </ul>
13

    
14
    <div class="tab-content">
15
      <div class="tab-pane active" id="primary">
16
        <%= text_f   f, :name %>
17
        <%= text_f   f, :url %>
18
        <%= text_f   f, :description, :label_help => _("Description of the registry") %>
19
        <%= text_f   f, :username, :label_help => _("Username used to access the registry") %>
20
        <%= password_f   f, :password, :label_help => _("Password used for authentication to the registry") %>
21
        <%= checkbox_f f, :verify_ssl, :label_help => _("Disable to use an insecure registry"), :wrapper_class => 'form-group hidden' %>
22
      </div>
23

    
24
      <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @registry %>
25
    </div>
26

    
27
    <%= submit_or_cancel f %>
28
<% end %>