Sha256: 2679ef43874895232d8a5636f79ac3d69c95d3fe4fa473c92ab702ab41a3928d

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

<div class="fields">
  <div class="form-group">
    <%= field_set_tag template_input_header(f, @template) do  %>
      <%= text_f f, :name, :disabled => @template.locked? %>
      <%= checkbox_f f, :required, :disabled => @template.locked? %>
      <%= selectable_f f, :input_type, template_input_types_options, {}, :class => 'input_type_selector without_select2', :disabled => @template.locked? %>
      <div class="fact_input_type custom_input_type_fields" style="<%= f.object.fact_template_input? ? '' : 'display:none' %>">
        <%= text_f f, :fact_name, :class => 'fact_input_type', :required => true, :disabled => @template.locked? %>
      </div>
      <div class="variable_input_type custom_input_type_fields" style="<%= f.object.variable_template_input? ? '' : 'display:none' %>">
        <%= text_f f, :variable_name, :class => 'variable_input_type', :required => true, :disabled => @template.locked? %>
      </div>
      <div class="puppet_parameter_input_type custom_input_type_fields" style="<%= f.object.puppet_parameter_template_input? ? '' : 'display:none' %>">
        <%= text_f f, :puppet_class_name, :class => 'puppet_parameter_input_type', :required => true, :disabled => @template.locked? %>
        <%= text_f f, :puppet_parameter_name, :class => 'puppet_parameter_input_type', :required => true, :disabled => @template.locked? %>
      </div>
      <div class="user_input_type custom_input_type_fields" style="<%= (f.object.user_template_input? || f.object.new_record?) ? '' : 'display:none' %>">
        <%= textarea_f f, :options, :rows => 3, :class => 'user_input_type', :help_inline => _("A list of options the user can select from. If not provided, the user will be given a free-form field"),
                                    :disabled => @template.locked? %>
      </div>
      <%= textarea_f f, :description, :rows => 3, :disabled => @template.locked? %>
    <% end %>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_remote_execution-0.2.3 app/views/template_inputs/_form.html.erb
foreman_remote_execution-0.2.2 app/views/template_inputs/_form.html.erb
foreman_remote_execution-0.2.1 app/views/template_inputs/_form.html.erb