Update the new custom field form with remotely.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10163 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1749fbf3e6
commit
599736aca7
6 files changed
+52
-98
No files matched your search
@@ -2,8 +2,18 @@
|
||||
» <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
|
||||
» <%= l(:label_custom_field_new) %></h2>
|
||||
|
||||
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path do |f| %>
|
||||
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= hidden_field_tag 'type', @custom_field.type %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$('#custom_field_field_format').change(function(){
|
||||
$.ajax({
|
||||
url: '<%= new_custom_field_path(:format => 'js') %>',
|
||||
type: 'get',
|
||||
data: $('#custom_field_form').serialize()
|
||||
});
|
||||
});
|
||||
<% end %>
|
||||
Reference in new issue
Block a user