Sha256: a693c1aa689eb21eb2ab1c1442a88d1a6aa33f67e64aa219862f72016ecff534

Contents?: true

Size: 1.4 KB

Versions: 4

Compression:

Stored size: 1.4 KB

Contents

<div class="fields">
  <div class="form-group">
    <%= field_set_tag _("Template input").html_safe +
                              ' ' +
                              remove_child_link('x', f, {:rel => 'twipsy', "data-title" => _('remove template input'), :'data-placement' => 'left', :class => 'fr badge badge-danger'}).html_safe do %>
      <%= text_f f, :name %>
      <%= checkbox_f f, :required %>
      <%= selectable_f f, :input_type, template_input_types_options, {}, :class => 'input_type_selector' %>
      <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 %>
      </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 %>
      </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 %>
        <%= text_f f, :puppet_parameter_name, :class => 'puppet_parameter_input_type', :required => true %>
      </div>
      <%= textarea_f f, :description, :rows => 3 %>
    <% end %>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_remote_execution-0.0.4 app/views/template_inputs/_form.html.erb
foreman_remote_execution-0.0.3 app/views/template_inputs/_form.html.erb
foreman_remote_execution-0.0.2 app/views/template_inputs/_form.html.erb
foreman_remote_execution-0.0.1 app/views/template_inputs/_form.html.erb