Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/operatingsystems/_template_defaults.html.erb | ||
---|---|---|
<div id="templates">
|
||
<div class="tab-pane" id="templates">
|
||
<% if @operatingsystem.new_record? -%>
|
||
<div class="alert-message block-message warning">
|
||
<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-message warning" data-alert="close">
|
||
<a class="close" href="#">×</a>
|
||
<div class="alert alert-message alert-warning">
|
||
<a class="close" href="#" data-dismiss="alert">×</a>
|
||
<p><strong>No templates found!</strong> you probably need to configure your <%= link_to "templates", config_templates_path %> first.</p>
|
||
</div>
|
||
<% end -%>
|
Also available in: Unified diff
updates UI to bootstrap v2