Project

General

Profile

Download (1.41 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 %>
<%= text_f f, :name %>
82e47ae0 Amos Benari
<%= text_f f, :path, :class => "input-xxlarge", :help_block => "The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).
f40d58aa Ohad Levy
for example <em>http://mirror.averse.net/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 %>
05ab4c16 Ohad Levy
<span id="nfs-section" <%= display?(!@medium.operatingsystems.map(&:require_nfs_access_to_medium).any?) %>>
82e47ae0 Amos Benari
<%= text_f f, :media_path, :class => "input-xxlarge", :help_inline => "The NFS path to the media." %>
<%= text_f f, :config_path, :class => "input-xxlarge", :help_inline => "The NFS path to the jumpstart control files." %>
<%= text_f f, :image_path, :class => "input-xxlarge", :help_inline => "The NFS path to the image directory." %>
05ab4c16 Ohad Levy
</span>
<%= multiple_checkboxes f, :operatingsystems, @medium, Operatingsystem, :label => 'Operating Systems' %>
92971ae3 Ohad Levy
05ab4c16 Ohad Levy
<%= submit_or_cancel f %>
76b2f1b7 Ohad Levy
<% 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>