1 <table class="table pipeline-components-table" style="margin-top: -.1em">
3 <col style="width: 15%" />
4 <col style="width: 20%" />
5 <col style="width: 20%" />
6 <col style="width: 45%" />
23 <% order = PipelineTemplatesHelper::sort_components(template.components) %>
24 <% puts "order is #{order}" %>
25 <% order.each do |k| %>
26 <% template_value = template.components[k] %>
27 <% puts "#{k} #{template_value}" %>
28 <% if not template_value then next end %>
30 <td><span class="label label-default"><%= k %></span></td>
32 <td><%= render_editable_subattribute obj, :components, [k, :script], template_value[:script] %></td>
34 <td>script version</td>
37 <%= render_editable_subattribute obj, :components, [k, :script_version], template_value[:script_version] %>
41 <% if template_value[:script_parameters].length > 0 %>
42 <% template_value[:script_parameters].each do |p, tv| %>
44 <td style="border-top: none"></td>
45 <td style="border-top: none"></td>
47 <td class="property-edit-row"><%= p %></td>
48 <td class="property-edit-row"><%= render_editable_subattribute obj, :components, [k, :script_parameters, p.to_sym], tv %></td>