foreman/app/views/operatingsystems/_template_defaults.html.erb @ 82e47ae0
82e47ae0 | Amos Benari | <div class="tab-pane" id="templates">
|
|
9c3f01c5 | Ohad Levy | <% if @operatingsystem.new_record? -%>
|
|
82e47ae0 | Amos Benari | <div class="alert alert-message alert-block alert-warning">
|
|
9c3f01c5 | Ohad Levy | <p><strong>Notice</strong> It is not possible to assign provisioning templates at this stage</p>
|
|
67799065 | Ohad Levy | <p>Please save the Operating System first and try again.</p>
|
|
9c3f01c5 | Ohad Levy | </div>
|
|
<% else -%>
|
|||
017e1049 | Ohad Levy | <% if ConfigTemplate.joins(:operatingsystems).where(:id => @operatingsystem.id).empty? -%>
|
|
82e47ae0 | Amos Benari | <div class="alert alert-message alert-warning">
|
|
<a class="close" href="#" data-dismiss="alert">×</a>
|
|||
9c3f01c5 | Ohad Levy | <p><strong>No templates found!</strong> you probably need to configure your <%= link_to "templates", config_templates_path %> first.</p>
|
|
</div>
|
|||
<% end -%>
|
|||
017e1049 | Ohad Levy | <%= f.fields_for :os_default_templates do |builder| -%>
|
|
9c3f01c5 | Ohad Levy | <%= render 'templates', :f => builder %>
|
|
<% end -%>
|
|||
cab0d8c6 | Ohad Levy | <% end -%>
|
|
9c3f01c5 | Ohad Levy | </div>
|