Sha256: 667e4f429ee9c6fe7f02192f28910587cf2895cf1e0a2b6dcb15fc3dd86c8830
Contents?: true
Size: 1.84 KB
Versions: 5
Compression:
Stored size: 1.84 KB
Contents
<div class="row"> <% if obj.errors[:puppetclasses].any? -%> <div class="alert alert-message alert-block alert-error base in fade"> <a class='close' href='#' data-dismiss="alert">×</a> <%= obj.errors[:puppetclasses].map {|e| "<li>#{e}</li>"}.to_s.html_safe %> </div> <% end -%> <div class="span3 classes"> <h3><%= _('Included Classes') -%></h3> <%# hidden field to ensure that classes gets removed if none are defined -%> <%= hidden_field_tag obj.class.model_name.downcase + "[puppetclass_ids][]" %> <ul id="selected_classes"> <% if authorized_for(:host_editing, :edit_classes) -%> <%= render :partial => "puppetclasses/selectedClasses", :collection => obj.puppetclasses ,:as => :klass, :locals => { :type => obj.class.model_name.downcase, :host => obj } %> <% else -%> <% obj.puppetclasses.each do |klass| %> <li data-original-title="<%= _('Not authorized to edit classes') %>" rel="twipsy" style='color:black;'><%= h klass.name %></li> <% end -%> <% end -%> </ul> <ul> <% parent_classes(obj).each do |klass| %> <li data-original-title="<%= _('included already from host group') %>" rel="twipsy" style='color:black;'><%= h klass.name %></li> <% end -%> </ul> </div> <div class="span8"> <h3><%= _('Available Classes') -%></h3> <div class='control-group'> <input placeholder="<%= _('Filter classes') %>" class="search-query" onkeyup="filter_puppet_classes(this);" type='text'> </div> <div class="row"> <%= render "puppetclasses/classes", :puppetclasses => (obj.environment.blank? ? Puppetclass.all : obj.environment.puppetclasses), :selected_puppet_classes => obj.all_puppetclasses, :obj => obj, :type => obj.class.model_name.downcase %> </div> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems