Project

General

Profile

Download (870 Bytes) Statistics
| Branch: | Tag: | Revision:
<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(: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 <%= link_to "templates", config_templates_path %> first.</p>
</div>
<% end -%>

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