Project

General

Profile

Download (2.59 KB) Statistics
| Branch: | Tag: | Revision:
a6db0470 Paul Kelly
<%= javascript "nfs_visibility" %>
017e1049 Ohad Levy
<%= form_for @medium do |f| %>
05ab4c16 Ohad Levy
<%= base_errors_for @medium %>
611f5bff Amos Benari
<% if show_taxonomy_tabs? %>
<ul class="nav nav-tabs" data-tabs="tabs">
93117958 Bryan Kearney
<li class="active"><a href="#primary" data-toggle="tab"><%= _("Medium") %></a></li>
611f5bff Amos Benari
<% if show_location_tab? %>
93117958 Bryan Kearney
<li><a href="#locations" data-toggle="tab"><%= _("Locations") %></a></li>
611f5bff Amos Benari
<% end %>
<% if show_organization_tab? %>
93117958 Bryan Kearney
<li><a href="#organizations" data-toggle="tab"><%= _("Organizations") %></a></li>
611f5bff Amos Benari
<% end %>
</ul>
e9ed2ef9 Gaƫl Chamoulaud
<% end%>
611f5bff Amos Benari
<div class="tab-content">
<div class="tab-pane active" id="primary">
74e0b0e3 Lukas Zapletal
<%= text_f f, :name %>
bf4a13d3 Walden Raines
<%= text_f f, :path, :size => "col-md-8", :help_block => _("The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).
00ddc9db Greg Sutcliffe
for example <em>http://mirror.centos.org/centos/$version/os/$arch</em> where <strong>$arch</strong> will be substituted for the host's actual OS architecture and <strong>$version</strong>, <strong>$major</strong> and <strong>$minor</strong> will be substituted for the version of the operating system. Solaris and Debian media may also use <strong>$release</strong>.").html_safe %>
611f5bff Amos Benari
<span id="nfs-section" <%= display?(!@medium.operatingsystems.map(&:require_nfs_access_to_medium).any?) %>>
bf4a13d3 Walden Raines
<%= text_f f, :media_path, :size => "col-md-8", :help_inline => _("The NFS path to the media.") %>
<%= text_f f, :config_path, :size => "col-md-8", :help_inline => _("The NFS path to the jumpstart control files.") %>
<%= text_f f, :image_path, :size => "col-md-8", :help_inline => _("The NFS path to the image directory.") %>
611f5bff Amos Benari
</span>
48a65101 Greg Sutcliffe
<%= select_f f, :os_family, Operatingsystem.families_as_collection, :value, :name, { :include_blank => _("Operating System Family"), :label => _("OS Family"), :help_inline => _("The Operating System type") } %>
611f5bff Amos Benari
</div>


<% if show_taxonomy_tabs? %>
<% if show_location_tab? %>
<div class="tab-pane" id="locations">
fd2e3be1 Lukas Zapletal
<%= multiple_checkboxes f, :locations, @medium, Location, {:label => _("Locations")} %>
611f5bff Amos Benari
</div>
<% end %>

<% if show_organization_tab? %>
<div class="tab-pane" id="organizations">
fd2e3be1 Lukas Zapletal
<%= multiple_checkboxes f, :organizations, @medium, Organization, {:label => _("Organizations")} %>
611f5bff Amos Benari
</div>
<% end %>
<% end %>

<%= submit_or_cancel f %>

</div>

<% end %>

a6db0470 Paul Kelly
<script type="text/javascript" charset="utf-8">
05ab4c16 Ohad Levy
nfs_section_visibility([<%= Operatingsystem.all.map(&:require_nfs_access_to_medium).join(", ") %>])
</script>