Sha256: de5ef2da50403b66af941602562abf02bdb9f6e13b914b98eaadc5b19666280c
Contents?: true
Size: 868 Bytes
Versions: 5
Compression:
Stored size: 868 Bytes
Contents
<div class="fields"> <div class="control-group <%= 'error' if f.object.errors.any? %>"> <%= content_tag(:input, '', :class => "span2", :disabled => true, :value => _('Global'), :type=> :text ) if controller_name == 'hosts' %> <%= f.text_field(:name, :class => "span2", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %> <%= f.text_area(:value, :class => "span5", :rows => line_count(f, :value), :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value")) %> <span class="help-inline"> <%= 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>
Version data entries
5 entries across 5 versions & 1 rubygems