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 @ 1298:4f746d8966dd

History | View | Annotate | Download (796 Bytes)

1
<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %>
2
  &#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
3
  &#187; <%= l(:label_custom_field_new) %></h2>
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
<%= submit_tag l(:button_save) %>
9
<% end %>
10

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