diff options
| author | Marc Florisson | 2015-01-21 14:35:39 +0100 |
|---|---|---|
| committer | Marc Florisson | 2015-01-21 14:35:39 +0100 |
| commit | 7ff17fdaab62f37357d2c686c62a7b1e2898d847 (patch) | |
| tree | 1306a9008a4a096538dd3f68d30c414bcb44f2e7 | |
| parent | b8ed9f192bf698b5aeaf045b8f2ab55f2c7500b0 (diff) | |
| download | chouette-core-7ff17fdaab62f37357d2c686c62a7b1e2898d847.tar.bz2 | |
add footnote missing sources
4 files changed, 50 insertions, 0 deletions
diff --git a/app/views/footnotes/_footnote_fields.html.erb b/app/views/footnotes/_footnote_fields.html.erb new file mode 100644 index 000000000..120e5e750 --- /dev/null +++ b/app/views/footnotes/_footnote_fields.html.erb @@ -0,0 +1,6 @@ +<%= f.inputs :class => 'nested-fields footnote' do %> + <%= f.input :code %> + <%= f.input :label %> + <%= link_to_remove_association t('actions.destroy'), f %> +<% end %> + diff --git a/config/locales/footnotes.yml b/config/locales/footnotes.yml new file mode 100644 index 000000000..3b20867b2 --- /dev/null +++ b/config/locales/footnotes.yml @@ -0,0 +1,23 @@ +en: + footnotes: + actions: + add_footnote: "add footnote" + activerecord: + models: + footnote: "footnote" + attributes: + footnote: + code: "number" + label: "line text" +fr: + footnotes: + actions: + add_footnote: "ajouter une note en bas de page" + activerecord: + models: + footnote: "note en bas de page" + attributes: + footnote: + code: "numéro" + label: "ligne de texte" + diff --git a/db/migrate/20150120125337_create_footnotes.ninoxe_engine.rb b/db/migrate/20150120125337_create_footnotes.ninoxe_engine.rb new file mode 100644 index 000000000..ce27d4ee8 --- /dev/null +++ b/db/migrate/20150120125337_create_footnotes.ninoxe_engine.rb @@ -0,0 +1,12 @@ +# This migration comes from ninoxe_engine (originally 20150115153453) +class CreateFootnotes < ActiveRecord::Migration + def change + create_table :footnotes do |t| + t.integer "line_id", :limit => 8 + t.string :code + t.string :label + + t.timestamps + end + end +end diff --git a/db/migrate/20150120183020_create_vehicle_journey_footnotes.ninoxe_engine.rb b/db/migrate/20150120183020_create_vehicle_journey_footnotes.ninoxe_engine.rb new file mode 100644 index 000000000..220d69d01 --- /dev/null +++ b/db/migrate/20150120183020_create_vehicle_journey_footnotes.ninoxe_engine.rb @@ -0,0 +1,9 @@ +# This migration comes from ninoxe_engine (originally 20150119160029) +class CreateVehicleJourneyFootnotes < ActiveRecord::Migration + def change + create_table :footnotes_vehicle_journeys, :id => false, :force => true do |t| + t.integer "vehicle_journey_id", :limit => 8 + t.integer "footnote_id", :limit => 8 + end + end +end |
