Sha256: cea8d5b8859fe0797e3842891b029e07c0e36b5287a055dfdec261dae135e86f
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
<div class="image_fields" style="display:none"> <div id='image_selection'> <%= select_f f, :image_id, images, :uuid, :name, { :include_blank => (images.empty? || images.size == 1) ? false : _('Please select an image') }, { :disabled => images.empty?, :label => _('Image'), :label_size => "col-md-2" } %> </div> <div id="target_sr_selection"> <%= selectable_f_with_cache_invalidation(f, :target_sr, options_from_collection_for_select( compute_resource.storage_pools, :uuid, :display_name ), {}, { class: "span2", label: _("Target Repository"), }, { title: 'Refresh available storage repositories', url: url_for(controller: "foreman_xen/cache", action: "refresh", only_path: true), compute_resource_id: compute_resource.id, attribute: 'storage_pools' } ) %> </div> <% if compute_resource.iso_library_mountpoint %> <div id="configdrive"> <%= checkbox_f(f, :configdrive, { checked: true, label: _('Metadata ISO'), help_inline: 'Attach cloud-init compatible configdrive' } )%> </div> <%= javascript_tag(" $(document).on('change', '#host_provision_method_image', function(){ if ($('#host_provision_method_image').is(':checked')) { $('#configdrive').appendTo($('#image_provisioning')); $('#configdrive').show(); } }); ") %> <%end%> </div> <%= javascript_tag(" $(document).on('change', '#host_provision_method_image', function(){ if ($('#host_provision_method_image').is(':checked')) { $('#target_sr_selection').appendTo($('#image_provisioning')); $('#target_sr_selection').show(); } }); "); %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_xen-1.0.1 | app/views/compute_resources_vms/form/_image_provisioning.html.erb |
foreman_xen-1.0.0 | app/views/compute_resources_vms/form/_image_provisioning.html.erb |