annotate .svn/pristine/63/630d406caecc95039e8e8128a0f4598a5d568098.svn-base @ 1433:cfa80f738847
bibliography_testing
Fixed assertion error message.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Tue, 08 Oct 2013 17:29:47 +0100 |
parents |
038ba2d95de8 |
children |
|
rev |
line source |
Chris@1296
|
1 <h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %>
|
Chris@1296
|
2 » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
|
Chris@1296
|
3 » <%= l(:label_custom_field_new) %></h2>
|
Chris@1296
|
4
|
Chris@1296
|
5 <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
|
Chris@1296
|
6 <%= render :partial => 'form', :locals => { :f => f } %>
|
Chris@1296
|
7 <%= hidden_field_tag 'type', @custom_field.type %>
|
Chris@1296
|
8 <%= submit_tag l(:button_save) %>
|
Chris@1296
|
9 <% end %>
|
Chris@1296
|
10
|
Chris@1296
|
11 <%= javascript_tag do %>
|
Chris@1296
|
12 $('#custom_field_field_format').change(function(){
|
Chris@1296
|
13 $.ajax({
|
Chris@1296
|
14 url: '<%= new_custom_field_path(:format => 'js') %>',
|
Chris@1296
|
15 type: 'get',
|
Chris@1296
|
16 data: $('#custom_field_form').serialize()
|
Chris@1296
|
17 });
|
Chris@1296
|
18 });
|
Chris@1296
|
19 <% end %>
|