Sha256: f81edcdfc3189a53372f9d1dd9c43e860c5170fb5a0813432e0edd5d55d7d1cb

Contents?: true

Size: 359 Bytes

Versions: 11

Compression:

Stored size: 359 Bytes

Contents

<%
  unless @item.new_record?
    label_text << " <small>"
    label_text << link_to(Typus::I18n.t("Preview"), send("#{@item.class.model_name.downcase}_path",@item.to_param), :target => "_blank")
    label_text << "</small>"
  end
%>

<li id="<%= attribute %>">
  <%= form.label attribute, raw(label_text) %>
  <%= form.text_field attribute, options %>
</li>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typus-3.1.0.rc14 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc13 app/themes/default/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc12 app/themes/default/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc11 app/themes/default/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc9 app/themes/default/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc8 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc7 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc6 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc5 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc4 app/views/admin/templates/_string_with_preview.html.erb