/usr/share/chef-server-webui/app/views/nodes/_form.html.erb is in chef-server-webui 10.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | <div class="content nodeFormContainer">
<%= form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do -%>
<% unless form_for == 'edit' %>
<div class="group form">
<label class="label" for="node_name">Name</label>
<%= text_field :id => "node_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @node.name %>
<span class="description">The name of the Node</span>
</div>
<% end %>
<div>
<label class="label" for="nodeEnvironment">Environment:</label>
<%= select :chef_environment, :collection => @environments, :id => 'nodeEnvironment', :selected => @env %>
<br />
<span class="description">The node's environment</span>
</div>
<div class="group form" id="run_list_editor_container">
<div id="availableRunListItemContainer" class="runListEditorColumn">
<div id="available_roles_container" class="runListItemListContainer">
<div class="runListEditorLabel">Available Roles</div>
<div class="sortable runListAvailableItemContainer">
<ul id="node_available_roles" class="connectedSortable runListAvailableItemList">
<% @available_roles.each do |role| %>
<li id="role[<%=h(role) -%>]" class="ui-state-highlight runListItem"><%= h(role) -%></li>
<% end %>
</ul>
</div>
</div>
<div id="available_recipes_container" class="runListItemListContainer">
<div class="runListEditorLabel">Available Recipes</div>
<div class="sortable runListAvailableItemContainer">
<ul id="node_available_recipes" class="connectedSortable runListAvailableItemList availableRecipes">
<% @available_recipes.each do |recipe| %>
<li id="recipe[<%= h(recipe) -%>]" class="ui-state-default runListItem"><%= h(recipe) -%></li>
<% end %>
</ul>
</div>
</div>
</div>
<div id="run_list_container" class="runListEditorColumn">
<div class="runListItemListContainer">
<div class="runListEditorLabel">Run List</div>
<div class="sortable runListContainer runListContainerForNode">
<ul class="ui-sortable connectedSortable runListItemList" id="for_node">
<% @run_list.each do |entry| %>
<li id="<%=h(entry)%>" class="<%= class_for_run_list_item(entry) -%> runListItem"><%=h(entry.name) -%></li>
<% end %>
</ul>
</div>
</div>
</div>
</div>
<div class="group form attrEditor">
<label class="label">Attributes</label>
<%= partial 'layout/jsonedit', :json => @node.normal_attrs.to_json %>
<span class="description">
A JSON hash for default attributes for nodes of this node. These attributes will only be applied if the node does not already have a value for the attributes.
</span>
</div>
<div class="group">
<div class="actions-bar">
<%= submit(submit_name, :id => submit_id, :class => 'button') -%>
</div>
</div>
<% end =%>
</div>
|