Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/hosts/_unattended.html.erb
<div id="virtual_machine">
<div class="tab-pane" id="virtual_machine">
<%= render('common/hypervisor', :item => @host) if @host.new_record? and !Hypervisor.first.nil? and authorized_for("Hypervisors::Guests", :create) %>
</div>
<div id="compute_resource">
<div class="tab-pane" id="compute_resource">
<%= render 'compute', :compute_resource => @host.compute_resource if @host.compute_resource_id %>
</div>
<div id="network">
<div class="tab-pane" id="network">
<span id="mac_address">
<%= render 'mac', :item => @host unless @hypervisor or @host.compute_resource_id -%>
</span>
......
</span>
</div>
<div id="os">
<div class="tab-pane" id="os">
<%= render "common/os_selection/initial", { :item=> @host } %>
<%= textarea_f f, :disk, :class => "xxlarge", :label => 'Custom Disk layout', :rows => "4",
<%= textarea_f f, :disk, :class => "input-xxlarge", :label => 'Custom Disk layout', :rows => "4",
:help_block => "What ever text(or ERB template) you use in here, would be used as your OS disk layout options If you want to use the partition table option, delete all of the text from this field" %>
<% if @host.new_record? -%>
<%= checkbox_f f, :build, :checked => true, :help_inline => "Enable this host for provisioning" %>
......
<%= password_f f, :root_pass, :label => "Root Password" %>
<div class="row">
<%= link_to_function "Provisioning Templates", "template_info('#templates_info','#{template_used_hosts_url}')", :title => "Click to refresh", :class => "btn small span2 ra" %>
<div id="templates_info" class="span10"> </div>
<%= link_to_function "Provisioning Templates", "template_info('#templates_info','#{template_used_hosts_url}')", :title => "Click to refresh", :class => "btn btn-small span2 ra" %>
<div id="templates_info" class="span7"> </div>
</div>
</div>

Also available in: Unified diff