Sha256: d14f74136494954c0bacd3420869ede0e03284796457d2bad7617db61e4fc2ba

Contents?: true

Size: 966 Bytes

Versions: 5

Compression:

Stored size: 966 Bytes

Contents

<div class="tab-pane" id="templates">
  <% if @operatingsystem.new_record? -%>
    <div class="alert alert-message alert-block alert-warning">
      <p><strong><%= _("Notice") %></strong> <%= _("It is not possible to assign provisioning templates at this stage") %></p>
      <p><%= _("Please save the Operating System first and try again.") %></p>
    </div>
  <% else -%>
    <% if ConfigTemplate.joins(:operatingsystems).where(:operatingsystems => { :id => @operatingsystem.id }).empty? -%>
      <div class="alert alert-message alert-warning">
        <a class="close" href="#" data-dismiss="alert">&times;</a>
        <p><strong><%= _("No templates found!") %></strong> <%= (_("you probably need to configure your %s first.") % link_to("templates", config_templates_path)).html_safe %></p>
      </div>
    <% end -%>

    <%= f.fields_for :os_default_templates do |builder| -%>
      <%= render 'templates', :f => builder %>
    <% end -%>
  <% end -%>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/operatingsystems/_template_defaults.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/operatingsystems/_template_defaults.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/operatingsystems/_template_defaults.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/operatingsystems/_template_defaults.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/operatingsystems/_template_defaults.html.erb