Project

General

Profile

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

foreman_docker / app / views / registries / _form.html.erb @ ada932ab

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, :help_inline => _("Registry name") %>
16
        <%= text_f   f, :url, :help_inline => _("Registry url") %>
17
        <%= text_f   f, :description, :help_inline => _("Describing of the registry") %>
18
      </div>
19

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

    
23
    <%= submit_or_cancel f %>
24
<% end %>