Sha256: 7b136c7e3e619c0e8ca98a5a1daa6eb53a88ff204e06d59b0a7fa0e26724223e

Contents?: true

Size: 444 Bytes

Versions: 16

Compression:

Stored size: 444 Bytes

Contents

<%
  # LOCALS disponibili per rendering del testo dell'help del campo se presente
  # nelle traduzioni in field/help_text
  # object: classe active_model che mi serve per cercare l'help text
  # field: campo per cui stampare l'help
%>
<%# locals: (object:,field:) -%>
<%
  help_text = object.class.human_attribute_name("#{field}/help_text", default: "")
  unless help_text.blank?
%>
  <div class="form-text"><%= help_text %></div>
<%
  end
%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
base_editing_bootstrap-1.6.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.5.1 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.5.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.4.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.3.2 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.3.1 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.3.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.2.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.1.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-1.0.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.16.1 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.16.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.15.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.14.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.13.0 app/views/base_editing/_editing_form_help_text.html.erb
base_editing_bootstrap-0.12.0 app/views/base_editing/_editing_form_help_text.html.erb