Mercurial > hg > soundsoftware-site
annotate .svn/pristine/ba/ba61511e045eca96ea5a08facf6c796046d39c61.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@1464 | 1 <%= title [l(:label_custom_field_plural), custom_fields_path], |
Chris@1464 | 2 [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], |
Chris@1464 | 3 l(:label_custom_field_new) %> |
Chris@1464 | 4 |
Chris@1464 | 5 <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> |
Chris@1464 | 6 <%= render :partial => 'form', :locals => { :f => f } %> |
Chris@1464 | 7 <%= hidden_field_tag 'type', @custom_field.type %> |
Chris@1464 | 8 <% end %> |
Chris@1464 | 9 |
Chris@1464 | 10 <%= javascript_tag do %> |
Chris@1464 | 11 $('#custom_field_field_format').change(function(){ |
Chris@1464 | 12 $.ajax({ |
Chris@1464 | 13 url: '<%= new_custom_field_path(:format => 'js') %>', |
Chris@1464 | 14 type: 'get', |
Chris@1464 | 15 data: $('#custom_field_form').serialize() |
Chris@1464 | 16 }); |
Chris@1464 | 17 }); |
Chris@1464 | 18 <% end %> |