apidae 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.rdoc +2 -2
- data/Rakefile +38 -38
- data/app/assets/images/apidae/logo-apidae-grey.svg +84 -84
- data/app/assets/javascripts/apidae/application.js +13 -13
- data/app/assets/stylesheets/apidae/application.css +15 -15
- data/app/controllers/apidae/api_controller.rb +25 -25
- data/app/controllers/apidae/application_controller.rb +6 -6
- data/app/controllers/apidae/dashboard_controller.rb +13 -13
- data/app/controllers/apidae/import_controller.rb +68 -68
- data/app/controllers/apidae/objects_controller.rb +59 -59
- data/app/controllers/apidae/projects_controller.rb +35 -35
- data/app/controllers/apidae/references_controller.rb +9 -9
- data/app/controllers/apidae/selections_controller.rb +53 -53
- data/app/helpers/apidae/api_helper.rb +4 -4
- data/app/helpers/apidae/application_helper.rb +4 -4
- data/app/helpers/apidae/dashboard_helper.rb +4 -4
- data/app/helpers/apidae/import_helper.rb +4 -4
- data/app/helpers/apidae/objects_helper.rb +4 -4
- data/app/helpers/apidae/references_helper.rb +4 -4
- data/app/helpers/apidae/selections_helper.rb +4 -4
- data/app/models/apidae/application_record.rb +5 -5
- data/app/models/apidae/export.rb +13 -13
- data/app/models/apidae/file_import.rb +161 -161
- data/app/models/apidae/obj.rb +351 -351
- data/app/models/apidae/project.rb +4 -4
- data/app/models/apidae/reference.rb +45 -45
- data/app/models/apidae/selection.rb +160 -160
- data/app/models/apidae/selection_object.rb +6 -6
- data/app/models/apidae/town.rb +28 -27
- data/app/views/apidae/dashboard/index.html.erb +41 -41
- data/app/views/apidae/import/callback.html.erb +2 -2
- data/app/views/apidae/objects/_form.html.erb +73 -73
- data/app/views/apidae/objects/edit.html.erb +6 -6
- data/app/views/apidae/objects/index.html.erb +34 -34
- data/app/views/apidae/objects/index.json.jbuilder +6 -6
- data/app/views/apidae/objects/new.html.erb +5 -5
- data/app/views/apidae/objects/show.html.erb +74 -74
- data/app/views/apidae/projects/edit.html.erb +32 -32
- data/app/views/apidae/projects/index.html.erb +34 -34
- data/app/views/apidae/references/index.html.erb +34 -34
- data/app/views/apidae/selections/_form.html.erb +29 -29
- data/app/views/apidae/selections/edit.html.erb +6 -6
- data/app/views/apidae/selections/index.html.erb +34 -34
- data/app/views/apidae/selections/new.html.erb +5 -5
- data/app/views/apidae/selections/show.html.erb +19 -19
- data/app/views/layouts/apidae/application.html.erb +14 -14
- data/config/locales/apidae.fr.yml +6 -6
- data/config/routes.rb +14 -14
- data/db/migrate/20170512212941_create_apidae_selections.rb +11 -11
- data/db/migrate/20170512214641_create_apidae_objects.rb +22 -22
- data/db/migrate/20170512221525_create_apidae_objects_apidae_selections.rb +8 -8
- data/db/migrate/20170513114002_create_apidae_towns.rb +15 -15
- data/db/migrate/20170513114409_add_town_insee_code_to_objects.rb +5 -5
- data/db/migrate/20170513115401_add_pictures_data_to_objects.rb +5 -5
- data/db/migrate/20170513121215_create_apidae_attached_files.rb +13 -13
- data/db/migrate/20170513205932_rename_objects_selections_table.rb +5 -5
- data/db/migrate/20170720161134_add_entity_data_to_objects.rb +5 -5
- data/db/migrate/20170730102424_create_apidae_file_imports.rb +13 -13
- data/db/migrate/20171025075304_create_apidae_exports.rb +15 -15
- data/db/migrate/20180217222410_create_apidae_selection_objects.rb +10 -10
- data/db/migrate/20180218172704_change_text_columns_to_json.rb +10 -10
- data/db/migrate/20180218231319_add_service_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180222104915_add_rates_data_to_apidae_objects.rb +6 -6
- data/db/migrate/20180222105302_rename_openings_to_openings_data.rb +5 -5
- data/db/migrate/20180307164936_add_attachments_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180307170349_create_apidae_references.rb +12 -12
- data/db/migrate/20180314093512_add_tags_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180314132631_add_meta_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180319143954_remove_apidae_id_unicity.rb +6 -6
- data/db/migrate/20180417164604_add_location_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180417165744_remove_address_from_apidae_objects.rb +5 -5
- data/db/migrate/20180417171344_remove_lat_lng_from_apidae_objects.rb +6 -6
- data/db/migrate/20180418141248_add_description_data_to_apidae_objects.rb +5 -5
- data/db/migrate/20180418141305_remove_desc_columns_from_apidae_objects.rb +6 -6
- data/db/migrate/20180424141656_add_meta_data_to_apidae_references.rb +5 -5
- data/db/migrate/20180519170210_remove_insee_code_unicity.rb +7 -7
- data/db/migrate/20180521211735_destroy_attached_files.rb +5 -5
- data/db/migrate/20180625050400_rename_objects_to_obj.rb +5 -5
- data/db/migrate/20181024072424_add_project_id_to_selections.rb +5 -5
- data/db/migrate/20181024072843_create_apidae_projects.rb +10 -10
- data/db/migrate/20190328122424_add_description_to_apidae_towns.rb +5 -0
- data/lib/apidae.rb +4 -4
- data/lib/apidae/engine.rb +10 -10
- data/lib/apidae/version.rb +3 -3
- data/lib/tasks/apidae_tasks.rake +4 -4
- data/test/apidae_test.rb +7 -7
- data/test/controllers/apidae/api_controller_test.rb +23 -23
- data/test/controllers/apidae/dashboard_controller_test.rb +15 -15
- data/test/controllers/apidae/import_controller_test.rb +15 -15
- data/test/controllers/apidae/objects_controller_test.rb +52 -52
- data/test/controllers/apidae/references_controller_test.rb +13 -13
- data/test/controllers/apidae/selections_controller_test.rb +52 -52
- data/test/data/selections.json +14 -14
- data/test/data/structure.json +64 -64
- data/test/data/update_selections.json +18 -18
- data/test/dummy/README.rdoc +28 -28
- data/test/dummy/Rakefile +6 -6
- data/test/dummy/app/assets/javascripts/application.js +13 -13
- data/test/dummy/app/assets/stylesheets/application.css +15 -15
- data/test/dummy/app/controllers/application_controller.rb +5 -5
- data/test/dummy/app/helpers/application_helper.rb +2 -2
- data/test/dummy/app/views/layouts/application.html.erb +14 -14
- data/test/dummy/bin/bundle +3 -3
- data/test/dummy/bin/rails +4 -4
- data/test/dummy/bin/rake +4 -4
- data/test/dummy/bin/setup +29 -29
- data/test/dummy/config.ru +4 -4
- data/test/dummy/config/application.rb +24 -24
- data/test/dummy/config/boot.rb +5 -5
- data/test/dummy/config/database.yml +20 -20
- data/test/dummy/config/environment.rb +5 -5
- data/test/dummy/config/environments/development.rb +41 -41
- data/test/dummy/config/environments/production.rb +79 -79
- data/test/dummy/config/environments/test.rb +42 -42
- data/test/dummy/config/initializers/apidae.rb +18 -18
- data/test/dummy/config/initializers/assets.rb +11 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/test/dummy/config/initializers/inflections.rb +16 -16
- data/test/dummy/config/initializers/mime_types.rb +4 -4
- data/test/dummy/config/initializers/session_store.rb +3 -3
- data/test/dummy/config/initializers/to_time_preserves_timezone.rb +10 -10
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/test/dummy/config/locales/en.yml +23 -23
- data/test/dummy/config/routes.rb +4 -4
- data/test/dummy/config/secrets.yml +22 -22
- data/test/dummy/db/schema.rb +104 -104
- data/test/dummy/public/404.html +67 -67
- data/test/dummy/public/422.html +67 -67
- data/test/dummy/public/500.html +66 -66
- data/test/fixtures/apidae/exports.yml +15 -15
- data/test/fixtures/apidae/objects.yml +33 -33
- data/test/fixtures/apidae/references.yml +11 -11
- data/test/fixtures/apidae/selection_objects.yml +9 -9
- data/test/fixtures/apidae/selections.yml +11 -11
- data/test/fixtures/apidae/towns.yml +15 -15
- data/test/integration/navigation_test.rb +8 -8
- data/test/models/apidae/export_test.rb +9 -9
- data/test/models/apidae/file_import_test.rb +88 -88
- data/test/models/apidae/object_test.rb +9 -9
- data/test/models/apidae/reference_test.rb +9 -9
- data/test/models/apidae/selection_object_test.rb +9 -9
- data/test/models/apidae/selection_test.rb +9 -9
- data/test/models/apidae/town_test.rb +9 -9
- data/test/test_helper.rb +22 -22
- metadata +49 -50
- data/test/dummy/log/test.log +0 -2109
@@ -1,42 +1,42 @@
|
|
1
|
-
<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
|
2
|
-
<div id="apidae_header" class="<%= styles[:header] %>">
|
3
|
-
<%= link_to pluralize(@projects, 'projet', 'projets'), apidae.projects_path, class: styles[:projects] %>
|
4
|
-
<%= link_to pluralize(@selections, 'sélection', 'sélections'), apidae.selections_path, class: styles[:selections] %>
|
5
|
-
<%= link_to pluralize(@objects, 'objet touristique', 'objets touristiques'), apidae.objects_path, class: styles[:objects] %>
|
6
|
-
<%= link_to (pluralize(@references, 'élément', 'éléments') + ' de référence'), apidae.references_path, class: styles[:references] %>
|
7
|
-
<%= link_to 'Retour', :back, class: styles[:back] %>
|
8
|
-
<h1 class="<%= styles[:h1] %>">Apidae</h1>
|
9
|
-
</div>
|
10
|
-
<div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
|
11
|
-
<div id="apidae_imports_panel" class="<%= styles[:body] %>">
|
12
|
-
<h2 class="<%= styles[:h2] %>">Derniers imports</h2>
|
13
|
-
<table id="apidae_imports" class="<%= styles[:table] %>">
|
14
|
-
<thead class="<%= styles[:table_head] %>">
|
15
|
-
<tr>
|
16
|
-
<th>Date</th>
|
17
|
-
<th>Créations</th>
|
18
|
-
<th>Mises à jour</th>
|
19
|
-
<th>Suppressions</th>
|
20
|
-
<th>Statut</th>
|
21
|
-
</tr>
|
22
|
-
</thead>
|
23
|
-
<tbody class="<%= styles[:table_body] %>">
|
24
|
-
<% @last_imports.each do |import| %>
|
25
|
-
<tr>
|
26
|
-
<td><%= import.updated_at.strftime('Le %d/%m/%Y à %H:%M') if import.updated_at %></td>
|
27
|
-
<td><%= import.created %></td>
|
28
|
-
<td><%= import.updated %></td>
|
29
|
-
<td><%= import.deleted %></td>
|
30
|
-
<td><%= t "apidae.file_import.status.#{import.status}" %></td>
|
31
|
-
</tr>
|
32
|
-
<% end %>
|
33
|
-
<% if @last_imports.empty? %>
|
34
|
-
<tr>
|
35
|
-
<td colspan="5">Aucun import pour le moment.</td>
|
36
|
-
</tr>
|
37
|
-
<% end %>
|
38
|
-
</tbody>
|
39
|
-
</table>
|
40
|
-
</div>
|
41
|
-
</div>
|
1
|
+
<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
|
2
|
+
<div id="apidae_header" class="<%= styles[:header] %>">
|
3
|
+
<%= link_to pluralize(@projects, 'projet', 'projets'), apidae.projects_path, class: styles[:projects] %>
|
4
|
+
<%= link_to pluralize(@selections, 'sélection', 'sélections'), apidae.selections_path, class: styles[:selections] %>
|
5
|
+
<%= link_to pluralize(@objects, 'objet touristique', 'objets touristiques'), apidae.objects_path, class: styles[:objects] %>
|
6
|
+
<%= link_to (pluralize(@references, 'élément', 'éléments') + ' de référence'), apidae.references_path, class: styles[:references] %>
|
7
|
+
<%= link_to 'Retour', :back, class: styles[:back] %>
|
8
|
+
<h1 class="<%= styles[:h1] %>">Apidae</h1>
|
9
|
+
</div>
|
10
|
+
<div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
|
11
|
+
<div id="apidae_imports_panel" class="<%= styles[:body] %>">
|
12
|
+
<h2 class="<%= styles[:h2] %>">Derniers imports</h2>
|
13
|
+
<table id="apidae_imports" class="<%= styles[:table] %>">
|
14
|
+
<thead class="<%= styles[:table_head] %>">
|
15
|
+
<tr>
|
16
|
+
<th>Date</th>
|
17
|
+
<th>Créations</th>
|
18
|
+
<th>Mises à jour</th>
|
19
|
+
<th>Suppressions</th>
|
20
|
+
<th>Statut</th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
<tbody class="<%= styles[:table_body] %>">
|
24
|
+
<% @last_imports.each do |import| %>
|
25
|
+
<tr>
|
26
|
+
<td><%= import.updated_at.strftime('Le %d/%m/%Y à %H:%M') if import.updated_at %></td>
|
27
|
+
<td><%= import.created %></td>
|
28
|
+
<td><%= import.updated %></td>
|
29
|
+
<td><%= import.deleted %></td>
|
30
|
+
<td><%= t "apidae.file_import.status.#{import.status}" %></td>
|
31
|
+
</tr>
|
32
|
+
<% end %>
|
33
|
+
<% if @last_imports.empty? %>
|
34
|
+
<tr>
|
35
|
+
<td colspan="5">Aucun import pour le moment.</td>
|
36
|
+
</tr>
|
37
|
+
<% end %>
|
38
|
+
</tbody>
|
39
|
+
</table>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
42
|
<% end %>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<h1>Apidae::Import#callback</h1>
|
2
|
-
<p>Find me in app/views/apidae/apidae/import/callback.html.erb</p>
|
1
|
+
<h1>Apidae::Import#callback</h1>
|
2
|
+
<p>Find me in app/views/apidae/apidae/import/callback.html.erb</p>
|
@@ -1,73 +1,73 @@
|
|
1
|
-
<%= form_for(@object) do |f| %>
|
2
|
-
<% if @object.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(@object.errors.count, "error") %> prohibited this object from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% @object.errors.full_messages.each do |message| %>
|
8
|
-
<li><%= message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<%= f.label :address %><br>
|
16
|
-
<%= f.text_field :address %>
|
17
|
-
</div>
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label :apidae_id %><br>
|
20
|
-
<%= f.number_field :apidae_id %>
|
21
|
-
</div>
|
22
|
-
<div class="field">
|
23
|
-
<%= f.label :apidae_type %><br>
|
24
|
-
<%= f.text_field :apidae_type %>
|
25
|
-
</div>
|
26
|
-
<div class="field">
|
27
|
-
<%= f.label :apidae_subtype %><br>
|
28
|
-
<%= f.text_field :apidae_subtype %>
|
29
|
-
</div>
|
30
|
-
<div class="field">
|
31
|
-
<%= f.label :title %><br>
|
32
|
-
<%= f.text_field :title %>
|
33
|
-
</div>
|
34
|
-
<div class="field">
|
35
|
-
<%= f.label :short_desc %><br>
|
36
|
-
<%= f.text_area :short_desc %>
|
37
|
-
</div>
|
38
|
-
<div class="field">
|
39
|
-
<%= f.label :contact %><br>
|
40
|
-
<%= f.text_area :contact %>
|
41
|
-
</div>
|
42
|
-
<div class="field">
|
43
|
-
<%= f.label :long_desc %><br>
|
44
|
-
<%= f.text_area :long_desc %>
|
45
|
-
</div>
|
46
|
-
<div class="field">
|
47
|
-
<%= f.label :type_data %><br>
|
48
|
-
<%= f.text_area :type_data %>
|
49
|
-
</div>
|
50
|
-
<div class="field">
|
51
|
-
<%= f.label :latitude %><br>
|
52
|
-
<%= f.text_field :latitude %>
|
53
|
-
</div>
|
54
|
-
<div class="field">
|
55
|
-
<%= f.label :longitude %><br>
|
56
|
-
<%= f.text_field :longitude %>
|
57
|
-
</div>
|
58
|
-
<div class="field">
|
59
|
-
<%= f.label :openings %><br>
|
60
|
-
<%= f.text_area :openings %>
|
61
|
-
</div>
|
62
|
-
<div class="field">
|
63
|
-
<%= f.label :rates %><br>
|
64
|
-
<%= f.text_area :rates %>
|
65
|
-
</div>
|
66
|
-
<div class="field">
|
67
|
-
<%= f.label :reservation %><br>
|
68
|
-
<%= f.text_area :reservation %>
|
69
|
-
</div>
|
70
|
-
<div class="actions">
|
71
|
-
<%= f.submit %>
|
72
|
-
</div>
|
73
|
-
<% end %>
|
1
|
+
<%= form_for(@object) do |f| %>
|
2
|
+
<% if @object.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@object.errors.count, "error") %> prohibited this object from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @object.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :address %><br>
|
16
|
+
<%= f.text_field :address %>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :apidae_id %><br>
|
20
|
+
<%= f.number_field :apidae_id %>
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<%= f.label :apidae_type %><br>
|
24
|
+
<%= f.text_field :apidae_type %>
|
25
|
+
</div>
|
26
|
+
<div class="field">
|
27
|
+
<%= f.label :apidae_subtype %><br>
|
28
|
+
<%= f.text_field :apidae_subtype %>
|
29
|
+
</div>
|
30
|
+
<div class="field">
|
31
|
+
<%= f.label :title %><br>
|
32
|
+
<%= f.text_field :title %>
|
33
|
+
</div>
|
34
|
+
<div class="field">
|
35
|
+
<%= f.label :short_desc %><br>
|
36
|
+
<%= f.text_area :short_desc %>
|
37
|
+
</div>
|
38
|
+
<div class="field">
|
39
|
+
<%= f.label :contact %><br>
|
40
|
+
<%= f.text_area :contact %>
|
41
|
+
</div>
|
42
|
+
<div class="field">
|
43
|
+
<%= f.label :long_desc %><br>
|
44
|
+
<%= f.text_area :long_desc %>
|
45
|
+
</div>
|
46
|
+
<div class="field">
|
47
|
+
<%= f.label :type_data %><br>
|
48
|
+
<%= f.text_area :type_data %>
|
49
|
+
</div>
|
50
|
+
<div class="field">
|
51
|
+
<%= f.label :latitude %><br>
|
52
|
+
<%= f.text_field :latitude %>
|
53
|
+
</div>
|
54
|
+
<div class="field">
|
55
|
+
<%= f.label :longitude %><br>
|
56
|
+
<%= f.text_field :longitude %>
|
57
|
+
</div>
|
58
|
+
<div class="field">
|
59
|
+
<%= f.label :openings %><br>
|
60
|
+
<%= f.text_area :openings %>
|
61
|
+
</div>
|
62
|
+
<div class="field">
|
63
|
+
<%= f.label :rates %><br>
|
64
|
+
<%= f.text_area :rates %>
|
65
|
+
</div>
|
66
|
+
<div class="field">
|
67
|
+
<%= f.label :reservation %><br>
|
68
|
+
<%= f.text_area :reservation %>
|
69
|
+
</div>
|
70
|
+
<div class="actions">
|
71
|
+
<%= f.submit %>
|
72
|
+
</div>
|
73
|
+
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<h1>Editing Object</h1>
|
2
|
-
|
3
|
-
<%= render 'form' %>
|
4
|
-
|
5
|
-
<%= link_to 'Show', @object %> |
|
6
|
-
<%= link_to 'Back', objects_path %>
|
1
|
+
<h1>Editing Object</h1>
|
2
|
+
|
3
|
+
<%= render 'form' %>
|
4
|
+
|
5
|
+
<%= link_to 'Show', @object %> |
|
6
|
+
<%= link_to 'Back', objects_path %>
|
@@ -1,35 +1,35 @@
|
|
1
|
-
<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
|
2
|
-
<div id="apidae_header" class="<%= styles[:header] %>">
|
3
|
-
<%= link_to 'Retour', @selection ? selections_path : root_path, class: styles[:back] %>
|
4
|
-
<h1 class="<%= styles[:h1] %>">Apidae - <%= @selection ? "Sélection \"#{@selection.label}\"" : "Tous les objets touristiques" %></h1>
|
5
|
-
</div>
|
6
|
-
<div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
|
7
|
-
<div id="apidae_imports_panel" class="<%= styles[:body] %>">
|
8
|
-
<table id="apidae_objects" class="<%= styles[:table] %>">
|
9
|
-
<thead class="<%= styles[:table_head] %>">
|
10
|
-
<tr>
|
11
|
-
<th>Titre</th>
|
12
|
-
<th>Identifiant</th>
|
13
|
-
<th>Type</th>
|
14
|
-
<th>Mise à jour</th>
|
15
|
-
</tr>
|
16
|
-
</thead>
|
17
|
-
<tbody class="<%= styles[:table_body] %>">
|
18
|
-
<% @objects.each do |object| %>
|
19
|
-
<tr>
|
20
|
-
<td><%= object.title %></td>
|
21
|
-
<td><%= object.apidae_id %></td>
|
22
|
-
<td><%= object.apidae_type %></td>
|
23
|
-
<td><%= object.updated_at.strftime('Le %d/%m/%Y à %H:%M') if object.updated_at %></td>
|
24
|
-
</tr>
|
25
|
-
<% end %>
|
26
|
-
<% if @objects.empty? %>
|
27
|
-
<tr>
|
28
|
-
<td colspan="4">Aucun objet importé pour le moment.</td>
|
29
|
-
</tr>
|
30
|
-
<% end %>
|
31
|
-
</tbody>
|
32
|
-
</table>
|
33
|
-
</div>
|
34
|
-
</div>
|
1
|
+
<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
|
2
|
+
<div id="apidae_header" class="<%= styles[:header] %>">
|
3
|
+
<%= link_to 'Retour', @selection ? selections_path : root_path, class: styles[:back] %>
|
4
|
+
<h1 class="<%= styles[:h1] %>">Apidae - <%= @selection ? "Sélection \"#{@selection.label}\"" : "Tous les objets touristiques" %></h1>
|
5
|
+
</div>
|
6
|
+
<div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
|
7
|
+
<div id="apidae_imports_panel" class="<%= styles[:body] %>">
|
8
|
+
<table id="apidae_objects" class="<%= styles[:table] %>">
|
9
|
+
<thead class="<%= styles[:table_head] %>">
|
10
|
+
<tr>
|
11
|
+
<th>Titre</th>
|
12
|
+
<th>Identifiant</th>
|
13
|
+
<th>Type</th>
|
14
|
+
<th>Mise à jour</th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody class="<%= styles[:table_body] %>">
|
18
|
+
<% @objects.each do |object| %>
|
19
|
+
<tr>
|
20
|
+
<td><%= object.title %></td>
|
21
|
+
<td><%= object.apidae_id %></td>
|
22
|
+
<td><%= object.apidae_type %></td>
|
23
|
+
<td><%= object.updated_at.strftime('Le %d/%m/%Y à %H:%M') if object.updated_at %></td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
<% if @objects.empty? %>
|
27
|
+
<tr>
|
28
|
+
<td colspan="4">Aucun objet importé pour le moment.</td>
|
29
|
+
</tr>
|
30
|
+
<% end %>
|
31
|
+
</tbody>
|
32
|
+
</table>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
35
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
json.results do
|
2
|
-
json.array!(@objects) do |obj|
|
3
|
-
json.id obj.id
|
4
|
-
json.title obj.title
|
5
|
-
end
|
6
|
-
end
|
1
|
+
json.results do
|
2
|
+
json.array!(@objects) do |obj|
|
3
|
+
json.id obj.id
|
4
|
+
json.title obj.title
|
5
|
+
end
|
6
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<h1>New Object</h1>
|
2
|
-
|
3
|
-
<%= render 'form' %>
|
4
|
-
|
5
|
-
<%= link_to 'Back', objects_path %>
|
1
|
+
<h1>New Object</h1>
|
2
|
+
|
3
|
+
<%= render 'form' %>
|
4
|
+
|
5
|
+
<%= link_to 'Back', objects_path %>
|
@@ -1,74 +1,74 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Address:</strong>
|
5
|
-
<%= @object.address %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Apidae:</strong>
|
10
|
-
<%= @object.apidae_id %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<strong>Apidae type:</strong>
|
15
|
-
<%= @object.apidae_type %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<strong>Apidae subtype:</strong>
|
20
|
-
<%= @object.apidae_subtype %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<strong>Title:</strong>
|
25
|
-
<%= @object.title %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
<p>
|
29
|
-
<strong>Short desc:</strong>
|
30
|
-
<%= @object.short_desc %>
|
31
|
-
</p>
|
32
|
-
|
33
|
-
<p>
|
34
|
-
<strong>Contact:</strong>
|
35
|
-
<%= @object.contact %>
|
36
|
-
</p>
|
37
|
-
|
38
|
-
<p>
|
39
|
-
<strong>Long desc:</strong>
|
40
|
-
<%= @object.long_desc %>
|
41
|
-
</p>
|
42
|
-
|
43
|
-
<p>
|
44
|
-
<strong>Type data:</strong>
|
45
|
-
<%= @object.type_data %>
|
46
|
-
</p>
|
47
|
-
|
48
|
-
<p>
|
49
|
-
<strong>Latitude:</strong>
|
50
|
-
<%= @object.latitude %>
|
51
|
-
</p>
|
52
|
-
|
53
|
-
<p>
|
54
|
-
<strong>Longitude:</strong>
|
55
|
-
<%= @object.longitude %>
|
56
|
-
</p>
|
57
|
-
|
58
|
-
<p>
|
59
|
-
<strong>Openings:</strong>
|
60
|
-
<%= @object.openings %>
|
61
|
-
</p>
|
62
|
-
|
63
|
-
<p>
|
64
|
-
<strong>Rates:</strong>
|
65
|
-
<%= @object.rates %>
|
66
|
-
</p>
|
67
|
-
|
68
|
-
<p>
|
69
|
-
<strong>Reservation:</strong>
|
70
|
-
<%= @object.reservation %>
|
71
|
-
</p>
|
72
|
-
|
73
|
-
<%= link_to 'Edit', edit_object_path(@object) %> |
|
74
|
-
<%= link_to 'Back', objects_path %>
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Address:</strong>
|
5
|
+
<%= @object.address %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Apidae:</strong>
|
10
|
+
<%= @object.apidae_id %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Apidae type:</strong>
|
15
|
+
<%= @object.apidae_type %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<strong>Apidae subtype:</strong>
|
20
|
+
<%= @object.apidae_subtype %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<p>
|
24
|
+
<strong>Title:</strong>
|
25
|
+
<%= @object.title %>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<strong>Short desc:</strong>
|
30
|
+
<%= @object.short_desc %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<p>
|
34
|
+
<strong>Contact:</strong>
|
35
|
+
<%= @object.contact %>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
<strong>Long desc:</strong>
|
40
|
+
<%= @object.long_desc %>
|
41
|
+
</p>
|
42
|
+
|
43
|
+
<p>
|
44
|
+
<strong>Type data:</strong>
|
45
|
+
<%= @object.type_data %>
|
46
|
+
</p>
|
47
|
+
|
48
|
+
<p>
|
49
|
+
<strong>Latitude:</strong>
|
50
|
+
<%= @object.latitude %>
|
51
|
+
</p>
|
52
|
+
|
53
|
+
<p>
|
54
|
+
<strong>Longitude:</strong>
|
55
|
+
<%= @object.longitude %>
|
56
|
+
</p>
|
57
|
+
|
58
|
+
<p>
|
59
|
+
<strong>Openings:</strong>
|
60
|
+
<%= @object.openings %>
|
61
|
+
</p>
|
62
|
+
|
63
|
+
<p>
|
64
|
+
<strong>Rates:</strong>
|
65
|
+
<%= @object.rates %>
|
66
|
+
</p>
|
67
|
+
|
68
|
+
<p>
|
69
|
+
<strong>Reservation:</strong>
|
70
|
+
<%= @object.reservation %>
|
71
|
+
</p>
|
72
|
+
|
73
|
+
<%= link_to 'Edit', edit_object_path(@object) %> |
|
74
|
+
<%= link_to 'Back', objects_path %>
|