You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 568B

123456789101112131415
  1. <div class="contextual">
  2. <%= link_to_function 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' %>
  3. </div>
  4. <%= title l(:label_custom_field_plural) %>
  5. <% if @custom_fields_by_type.present? %>
  6. <%= render_custom_fields_tabs(@custom_fields_by_type.keys) %>
  7. <% else %>
  8. <p class="nodata"><%= l(:label_no_data) %></p>
  9. <% end %>
  10. <%= javascript_tag do %>
  11. $(function() { $("table.custom_fields tbody").positionedItems(); });
  12. <% end %>