Sha256: c358aea500443d5ddb3eef9f9cfbcd250e2443cc7a029a3f80e8b6b7f2d488c4

Contents?: true

Size: 401 Bytes

Versions: 11

Compression:

Stored size: 401 Bytes

Contents

<%
  attribute_name = attribute.gsub(/\?$/,'')
  custom_true = @resource[:class].typus_boolean(attribute)[:true]
  custom_true = custom_true != 'True' ? custom_true : "Checked if active"
%>

<li><label><%= @resource[:class].human_attribute_name(attribute) %></label>
<%= check_box :item, attribute_name %> <label class="inline_label" for="item_<%= attribute_name %>"><%= _(custom_true) %></label></li>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typus-0.9.39 app/views/admin/templates/_boolean.html.erb
typus-0.9.38 app/views/admin/templates/_boolean.html.erb
typus-0.9.37 app/views/admin/templates/_boolean.html.erb
typus-0.9.36 app/views/admin/templates/_boolean.html.erb
typus-0.9.35 app/views/admin/templates/_boolean.html.erb
typus-0.9.34 app/views/admin/templates/_boolean.html.erb
typus-0.9.33 app/views/admin/templates/_boolean.html.erb
typus-0.9.32 app/views/admin/templates/_boolean.html.erb
typus-0.9.31 app/views/admin/templates/_boolean.html.erb
typus-0.9.30 app/views/admin/templates/_boolean.html.erb
typus-0.9.29 app/views/admin/templates/_boolean.html.erb