annotate .svn/pristine/63/630d406caecc95039e8e8128a0f4598a5d568098.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %>
Chris@1295 2 &#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
Chris@1295 3 &#187; <%= l(:label_custom_field_new) %></h2>
Chris@1295 4
Chris@1295 5 <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
Chris@1295 6 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@1295 7 <%= hidden_field_tag 'type', @custom_field.type %>
Chris@1295 8 <%= submit_tag l(:button_save) %>
Chris@1295 9 <% end %>
Chris@1295 10
Chris@1295 11 <%= javascript_tag do %>
Chris@1295 12 $('#custom_field_field_format').change(function(){
Chris@1295 13 $.ajax({
Chris@1295 14 url: '<%= new_custom_field_path(:format => 'js') %>',
Chris@1295 15 type: 'get',
Chris@1295 16 data: $('#custom_field_form').serialize()
Chris@1295 17 });
Chris@1295 18 });
Chris@1295 19 <% end %>