Project

General

Profile

Download (884 Bytes) Statistics
| Branch: | Tag: | Revision:
<div class="fields">
<div class="form-group <%= 'error' if f.object.errors.any? %>">
<%= content_tag(:input, '', :class => "col-md-2", :disabled => true, :value => _('Global'), :type=> :text ) if controller_name =~ /(host|hostgroup)/ %>
<%= f.text_field(:name, :class => "col-md-2", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %>
<%= f.text_area(:value, :class => "col-md-5", :rows => line_count(f, :value), :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value")) %>
<span class="help-block">
<%= link_to_remove_fields("remove", f) if authorized_via_my_scope("host_editing", "destroy_params") %>
</span>
<span class="help-block">
<%= f.object.errors.full_messages.to_sentence %>
</span>
</div>
<%= f.hidden_field :nested %>
</div>
(3-3/10)