To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / custom_fields / new.html.erb @ 1591:63650ae64bf2

History | View | Annotate | Download (691 Bytes)

1
<%= title [l(:label_custom_field_plural), custom_fields_path],
2
  [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
3
  l(:label_custom_field_new) %>
4

    
5
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
6
<%= render :partial => 'form', :locals => { :f => f } %>
7
<%= hidden_field_tag 'type', @custom_field.type %>
8
<% end %>
9

    
10
<%= javascript_tag do %>
11
$('#custom_field_field_format').change(function(){
12
  $.ajax({
13
    url: '<%= new_custom_field_path(:format => 'js') %>',
14
    type: 'get',
15
    data: $('#custom_field_form').serialize(),
16
    complete: toggleDisabledInit
17
  });
18
});
19
<% end %>