Mercurial > hg > soundsoftware-site
view app/views/custom_fields/new.html.erb @ 1313:17f075c7fd41 redmine-2.2-integration
toggles bibtex.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 18 Jun 2013 14:59:04 +0100 |
parents | 433d4f72a19b |
children | 261b3d9a4903 |
line wrap: on
line source
<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> » <%= 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, :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 %>