Sha256: d808798894e0ee8f0b9124e1f24b0b67981054c121d0c2f57b740e1e398b52b0

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 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_id %>">
  <%= form.label attribute, raw(label_text) %>
  <%= form.text_field attribute, options %>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc17 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc16 app/views/admin/templates/_string_with_preview.html.erb
typus-3.1.0.rc15 app/views/admin/templates/_string_with_preview.html.erb