blob: a0bc1c2fa30d3a3a4e1cbca4db2b4ce083cf3f83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<div class="contextual">
<%= link_to_function sprite_icon('add', l(:label_custom_field_new)), "location.href = '#{new_custom_field_path}?tab=' + encodeURIComponent(($('.tabs a.selected').attr('id')||'').split('tab-').pop())", :class => 'icon icon-add' %>
</div>
<%= title l(:label_custom_field_plural) %>
<% if @custom_fields_by_type.present? %>
<%= render_custom_fields_tabs(@custom_fields_by_type.keys) %>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
<%= javascript_tag do %>
$(function() { $("table.custom_fields tbody").positionedItems(); });
<% end %>
|