Sha256: b353e1f47cfcadbc532a15e8ca6b8b3830a5662ff4a42c1dfc995137a1f553ef

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

<div class="fields">
  <div class="control-group <%= 'error' if f.object.errors.any? %>">
    <%= f.hidden_field :lookup_key_id, :'data-property' => 'lookup_key_id' %>
    <% puppetclass = f.object.lookup_key ? f.object.lookup_key.puppetclass || f.object.lookup_key.param_class : nil %>
    <%= text_field_tag '', (puppetclass.name rescue ''), :class => 'span2', :'data-property' => 'class', :disabled => true, :title => _('Puppetclass') %>
    <%= text_field_tag '', (f.object.lookup_key.key rescue ''), :class => 'span2', :'data-property' => 'name', :disabled => true, :title => _('Parameter name') %>
    <%= f.text_area :value, :rows => line_count(f, :value), :class => 'span5', :'data-property' => 'value', :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value") %>
    <%= text_field_tag '', (f.object.lookup_key.key_type rescue 'unknown'), :class=> 'hide',  :'data-property' => 'type', :disabled => true, :title => _('Parameter type') %>
    <span class="help-inline">
      <%= link_to_remove_fields("remove", f) %>
    </span>
    <span class="help-block">
      <%= f.object.errors.full_messages.to_sentence %>
    </span>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/common_parameters/_puppetclass_parameter.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/common_parameters/_puppetclass_parameter.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/common_parameters/_puppetclass_parameter.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/common_parameters/_puppetclass_parameter.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/common_parameters/_puppetclass_parameter.erb