Sha256: e2d272645c2cccf31e0d7c070b3fd3b19ac245710f5bd49ab22f9d7cddce8689

Contents?: true

Size: 1.95 KB

Versions: 34

Compression:

Stored size: 1.95 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' %>">
        <%= checkbox_f f, :advanced, :disabled => @template.locked? %>
        <%= 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

34 entries across 34 versions & 1 rubygems

Version Path
foreman_remote_execution-1.5.6 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.6.3 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.6.2 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.5 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.6.1 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.6.0 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.4 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.3 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.2 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.1 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.5.0 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.6 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.5 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.4 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.3 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.2 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.3.7 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.3.6 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.4.1 app/views/template_inputs/_form.html.erb
foreman_remote_execution-1.3.5 app/views/template_inputs/_form.html.erb