annotate app/views/custom_fields/new.html.erb @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 433d4f72a19b
children 261b3d9a4903
rev   line source
Chris@0 1 <h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %>
Chris@909 2 &#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
Chris@0 3 &#187; <%= l(:label_custom_field_new) %></h2>
Chris@0 4
Chris@1115 5 <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
Chris@0 6 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@0 7 <%= hidden_field_tag 'type', @custom_field.type %>
Chris@0 8 <%= submit_tag l(:button_save) %>
Chris@0 9 <% end %>
Chris@1115 10
Chris@1115 11 <%= javascript_tag do %>
Chris@1115 12 $('#custom_field_field_format').change(function(){
Chris@1115 13 $.ajax({
Chris@1115 14 url: '<%= new_custom_field_path(:format => 'js') %>',
Chris@1115 15 type: 'get',
Chris@1115 16 data: $('#custom_field_form').serialize()
Chris@1115 17 });
Chris@1115 18 });
Chris@1115 19 <% end %>