Project

General

Profile

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

foreman-docker / app / views / registries / _form.html.erb @ 9ea40591

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

    
13
    <div class="tab-content">
14
      <div class="tab-pane active" id="primary">
15
        <%= text_f   f, :name %>
16
        <%= text_f   f, :url %>
17
        <%= text_f   f, :description, :help_inline => _("Description of the registry") %>
18
        <%= text_f   f, :username, :help_inline => _("Username used to access the registry") %>
19
        <%= password_f   f, :password, :help_inline => _("Password used for authentication to the registry") %>
20
      </div>
21

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

    
25
    <%= submit_or_cancel f %>
26
<% end %>