decidim 0.0.7 → 0.0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.circleci/config.yml +67 -0
- data/.eslintignore +1 -1
- data/.eslintrc.json +1 -0
- data/.travis.yml +4 -1
- data/Gemfile.lock +49 -48
- data/README.md +44 -118
- data/Rakefile +9 -13
- data/decidim-admin/README.md +2 -2
- data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +13 -0
- data/decidim-admin/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +17 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_datepicker.scss +224 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +1 -0
- data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +9 -0
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +6 -0
- data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +2 -3
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +2 -2
- data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +2 -1
- data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +1 -1
- data/decidim-admin/config/i18n-tasks.yml +2 -0
- data/decidim-admin/config/locales/ca.yml +22 -17
- data/decidim-admin/config/locales/en.yml +22 -17
- data/decidim-admin/config/locales/es.yml +23 -18
- data/decidim-admin/config/locales/eu.yml +0 -19
- data/decidim-admin/config/locales/fi.yml +0 -14
- data/decidim-admin/config/locales/fr.yml +141 -0
- data/decidim-admin/config/locales/nl.yml +5 -0
- data/decidim-admin/spec/features/admin_invite_spec.rb +7 -1
- data/decidim-admin/spec/features/admin_manages_organization_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
- data/decidim-admin/spec/features/static_pages_spec.rb +0 -5
- data/decidim-admin/spec/forms/organization_form_spec.rb +6 -1
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +21 -17
- data/decidim-admin/spec/shared/manage_processes_examples.rb +13 -10
- data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +3 -3
- data/decidim-admin/vendor/assets/javascripts/moment.min.js +7 -0
- data/decidim-api/README.md +2 -2
- data/decidim-budgets/README.md +2 -2
- data/decidim-budgets/config/locales/ca.yml +3 -3
- data/decidim-budgets/config/locales/en.yml +3 -3
- data/decidim-budgets/config/locales/es.yml +3 -3
- data/decidim-budgets/config/locales/eu.yml +0 -3
- data/decidim-budgets/config/locales/fi.yml +0 -3
- data/decidim-budgets/config/locales/fr.yml +97 -0
- data/decidim-budgets/config/locales/nl.yml +5 -0
- data/decidim-budgets/db/migrate/20170410074214_remove_not_null_reference_budgets.rb +5 -0
- data/decidim-budgets/spec/shared/manage_projects_examples.rb +1 -1
- data/decidim-comments/README.md +2 -2
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/config/locales/fr.yml +5 -0
- data/decidim-comments/config/locales/nl.yml +5 -0
- data/decidim-dev/README.md +2 -2
- data/decidim-dev/config/locales/fr.yml +5 -0
- data/decidim-dev/config/locales/nl.yml +5 -0
- data/decidim-dev/lib/decidim/dev.rb +8 -5
- data/decidim-dev/lib/decidim/dev/common_rake.rb +1 -23
- data/decidim-dev/lib/decidim/dev/railtie.rb +13 -0
- data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +6 -5
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +13 -16
- data/decidim-dev/lib/tasks/test_app.rake +18 -0
- data/decidim-meetings/README.md +2 -2
- data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +21 -0
- data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +2 -0
- data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb +16 -0
- data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +18 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +1 -0
- data/decidim-meetings/config/locales/ca.yml +5 -5
- data/decidim-meetings/config/locales/en.yml +5 -5
- data/decidim-meetings/config/locales/es.yml +5 -5
- data/decidim-meetings/config/locales/eu.yml +0 -7
- data/decidim-meetings/config/locales/fi.yml +0 -7
- data/decidim-meetings/config/locales/fr.yml +5 -0
- data/decidim-meetings/config/locales/nl.yml +5 -0
- data/decidim-meetings/db/migrate/20170410074252_remove_not_null_reference_meetings.rb +5 -0
- data/decidim-meetings/lib/decidim/meetings/list_engine.rb +3 -1
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +87 -72
- data/decidim-pages/README.md +2 -2
- data/decidim-pages/config/locales/ca.yml +1 -1
- data/decidim-pages/config/locales/en.yml +1 -1
- data/decidim-pages/config/locales/es.yml +1 -1
- data/decidim-pages/config/locales/eu.yml +0 -1
- data/decidim-pages/config/locales/fi.yml +0 -1
- data/decidim-pages/config/locales/fr.yml +5 -0
- data/decidim-pages/config/locales/nl.yml +5 -0
- data/decidim-proposals/README.md +2 -2
- data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +24 -0
- data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +13 -4
- data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +15 -0
- data/decidim-proposals/app/helpers/decidim/proposals/proposal_order_helper.rb +1 -1
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +6 -9
- data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +25 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +9 -3
- data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_count.html.erb +8 -7
- data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +3 -6
- data/decidim-proposals/config/locales/ca.yml +5 -5
- data/decidim-proposals/config/locales/en.yml +6 -5
- data/decidim-proposals/config/locales/es.yml +5 -5
- data/decidim-proposals/config/locales/eu.yml +0 -6
- data/decidim-proposals/config/locales/fi.yml +0 -5
- data/decidim-proposals/config/locales/fr.yml +5 -0
- data/decidim-proposals/config/locales/nl.yml +5 -0
- data/decidim-proposals/db/migrate/20170410073742_remove_not_null_reference_proposals.rb +5 -0
- data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -0
- data/decidim-proposals/lib/decidim/proposals/feature.rb +1 -0
- data/decidim-proposals/spec/features/proposals_spec.rb +1 -6
- data/decidim-proposals/spec/features/vote_proposal_spec.rb +15 -0
- data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +13 -3
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +43 -9
- data/decidim-results/README.md +2 -2
- data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +17 -0
- data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -0
- data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +10 -0
- data/decidim-results/app/views/decidim/results/results/show.html.erb +1 -0
- data/decidim-results/config/locales/ca.yml +3 -3
- data/decidim-results/config/locales/en.yml +3 -3
- data/decidim-results/config/locales/es.yml +3 -3
- data/decidim-results/config/locales/eu.yml +0 -3
- data/decidim-results/config/locales/fi.yml +0 -3
- data/decidim-results/config/locales/fr.yml +5 -0
- data/decidim-results/config/locales/nl.yml +5 -0
- data/decidim-results/db/migrate/20170410074358_remove_not_null_reference_results.rb +5 -0
- data/decidim-results/lib/decidim/results/list_engine.rb +3 -1
- data/decidim-results/spec/shared/manage_results_examples.rb +1 -1
- data/decidim-system/config/locales/ca.yml +3 -3
- data/decidim-system/config/locales/en.yml +3 -3
- data/decidim-system/config/locales/es.yml +3 -3
- data/decidim-system/config/locales/eu.yml +0 -3
- data/decidim-system/config/locales/fi.yml +0 -3
- data/decidim-system/config/locales/fr.yml +5 -0
- data/decidim-system/config/locales/nl.yml +5 -0
- data/docs/features_and_components.md +1 -1
- data/docs/geocoding.md +34 -0
- data/docs/getting_started.md +135 -0
- data/docs/testing.md +17 -0
- data/lib/generators/decidim/app_generator.rb +7 -0
- data/lib/generators/decidim/templates/Gemfile.erb +4 -4
- data/lib/generators/decidim/templates/README.md.erb +1 -1
- data/lib/generators/decidim/templates/authorization_handler.rb +5 -1
- data/package.json +1 -1
- data/run_ci.sh +6 -6
- metadata +61 -23
@@ -0,0 +1,18 @@
|
|
1
|
+
require "generators/decidim/dummy_generator"
|
2
|
+
|
3
|
+
namespace :decidim do
|
4
|
+
desc "Generates a dummy app for testing"
|
5
|
+
task :generate_test_app do
|
6
|
+
dummy_app_path = File.expand_path(File.join(Dir.pwd, "spec", "decidim_dummy_app"))
|
7
|
+
|
8
|
+
Decidim::Generators::DummyGenerator.start(
|
9
|
+
[
|
10
|
+
"--dummy_app_path=#{dummy_app_path}",
|
11
|
+
"--migrate=true",
|
12
|
+
"--quiet"
|
13
|
+
]
|
14
|
+
)
|
15
|
+
|
16
|
+
sh "cd #{dummy_app_path} && bundle exec rake assets:precompile"
|
17
|
+
end
|
18
|
+
end
|
data/decidim-meetings/README.md
CHANGED
@@ -17,7 +17,7 @@ $ bundle
|
|
17
17
|
```
|
18
18
|
|
19
19
|
## Contributing
|
20
|
-
See [Decidim](https://github.com/
|
20
|
+
See [Decidim](https://github.com/decidim/decidim).
|
21
21
|
|
22
22
|
## License
|
23
|
-
See [Decidim](https://github.com/
|
23
|
+
See [Decidim](https://github.com/decidim/decidim).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Decidim
|
2
|
+
module Meetings
|
3
|
+
class MeetingWidgetsController < Decidim::WidgetsController
|
4
|
+
helper_method :model, :current_participatory_process
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
def model
|
9
|
+
@model ||= Meeting.where(feature: params[:feature_id]).find(params[:meeting_id])
|
10
|
+
end
|
11
|
+
|
12
|
+
def current_participatory_process
|
13
|
+
@current_participatory_process ||= model.feature.participatory_process
|
14
|
+
end
|
15
|
+
|
16
|
+
def iframe_url
|
17
|
+
@iframe_url ||= meeting_meeting_widget_url(model)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="column">
|
2
|
+
<article class="card card--meeting">
|
3
|
+
<div class="card__content">
|
4
|
+
<%= link_to model, class: "card__link" do %>
|
5
|
+
<h5 class="card__title"><%= translated_attribute model.title %></h5>
|
6
|
+
<% end %>
|
7
|
+
<%== translated_attribute model.description %>
|
8
|
+
<div class="address card__extra">
|
9
|
+
<div class="address__icon">
|
10
|
+
<%= icon "meetings", remove_icon_class: true, width: 40, height: 70 %>
|
11
|
+
</div>
|
12
|
+
<%= render partial: "decidim/shared/address_details", locals: { icon_name: "meetings", geolocalizable: model } %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</article>
|
16
|
+
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="column">
|
2
|
+
<article class="card card--meeting">
|
3
|
+
<div class="card__content">
|
4
|
+
<%= link_to model, class: "card__link" do %>
|
5
|
+
<h5 class="card__title"><%= translated_attribute model.title %></h5>
|
6
|
+
<% end %>
|
7
|
+
<%= render partial: "decidim/meetings/meetings/datetime", locals: { meeting: model } %>
|
8
|
+
<%== translated_attribute model.description %>
|
9
|
+
<%= render partial: "decidim/meetings/meetings/tags", locals: { meeting: model } %>
|
10
|
+
<div class="address card__extra">
|
11
|
+
<div class="address__icon">
|
12
|
+
<%= icon "meetings", remove_icon_class: true, width: 40, height: 70 %>
|
13
|
+
</div>
|
14
|
+
<%= render partial: "decidim/shared/address_details", locals: { icon_name: "meetings", geolocalizable: model } %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</article>
|
18
|
+
</div>
|
@@ -47,6 +47,7 @@
|
|
47
47
|
<% end %>
|
48
48
|
<%= feature_reference(meeting) %>
|
49
49
|
<%= render partial: "decidim/shared/share_modal" %>
|
50
|
+
<%= embed_modal_for meeting_meeting_widget_url(meeting, format: :js) %>
|
50
51
|
</div>
|
51
52
|
<div class="columns mediumlarge-8 mediumlarge-pull-4">
|
52
53
|
<div class="section">
|
@@ -8,7 +8,7 @@ ca:
|
|
8
8
|
contributions_count: Nombre de contribucions
|
9
9
|
proposal_ids: Propostes creades en una trobada
|
10
10
|
meeting:
|
11
|
-
|
11
|
+
address: Adreça
|
12
12
|
decidim_category_id: Categoria
|
13
13
|
decidim_scope_id: Àmbit
|
14
14
|
description: Descripció
|
@@ -28,7 +28,7 @@ ca:
|
|
28
28
|
confirm_destroy: Esteu segur de que voleu suprimir aquesta trobada?
|
29
29
|
destroy: Esborra
|
30
30
|
edit: Edita
|
31
|
-
new:
|
31
|
+
new: Nova
|
32
32
|
preview: Previsualitzar
|
33
33
|
title: Accions
|
34
34
|
admin:
|
@@ -46,12 +46,12 @@ ca:
|
|
46
46
|
destroy:
|
47
47
|
success: La trobada s'ha eliminat correctament
|
48
48
|
edit:
|
49
|
-
update: Actualitzar
|
49
|
+
update: Actualitzar
|
50
50
|
index:
|
51
51
|
title: Trobades
|
52
52
|
new:
|
53
|
-
create: Crear
|
54
|
-
title:
|
53
|
+
create: Crear
|
54
|
+
title: Crear trobada
|
55
55
|
update:
|
56
56
|
invalid: Hi ha hagut un problema en actualitzar aquesta trobada
|
57
57
|
success: Trobada actualitzada correctament
|
@@ -9,7 +9,7 @@ en:
|
|
9
9
|
contributions_count: Number of contributions
|
10
10
|
proposal_ids: Proposals created in the meeting
|
11
11
|
meeting:
|
12
|
-
|
12
|
+
address: Address
|
13
13
|
decidim_category_id: Category
|
14
14
|
decidim_scope_id: Scope
|
15
15
|
description: Description
|
@@ -29,7 +29,7 @@ en:
|
|
29
29
|
confirm_destroy: Are you sure you want to delete this meeting?
|
30
30
|
destroy: Delete
|
31
31
|
edit: Edit
|
32
|
-
new: New
|
32
|
+
new: New
|
33
33
|
preview: Preview
|
34
34
|
title: Actions
|
35
35
|
admin:
|
@@ -47,12 +47,12 @@ en:
|
|
47
47
|
destroy:
|
48
48
|
success: Meeting successfully deleted
|
49
49
|
edit:
|
50
|
-
update: Update
|
50
|
+
update: Update
|
51
51
|
index:
|
52
52
|
title: Meetings
|
53
53
|
new:
|
54
|
-
create: Create
|
55
|
-
title:
|
54
|
+
create: Create
|
55
|
+
title: Create meeting
|
56
56
|
update:
|
57
57
|
invalid: There's been a problem updating this meeting
|
58
58
|
success: Meeting successfully updated
|
@@ -8,7 +8,7 @@ es:
|
|
8
8
|
contributions_count: Número de contribuciones
|
9
9
|
proposal_ids: Propuestas creadas en el encuentro
|
10
10
|
meeting:
|
11
|
-
|
11
|
+
address: Dirección
|
12
12
|
decidim_category_id: Categoría
|
13
13
|
decidim_scope_id: Ámbito
|
14
14
|
description: Descripción
|
@@ -28,7 +28,7 @@ es:
|
|
28
28
|
confirm_destroy: '¿Está seguro de que quiere eliminar este encuentro?'
|
29
29
|
destroy: Borrar
|
30
30
|
edit: Editar
|
31
|
-
new: Nuevo
|
31
|
+
new: Nuevo
|
32
32
|
preview: Previsualizar
|
33
33
|
title: Acciones
|
34
34
|
admin:
|
@@ -46,12 +46,12 @@ es:
|
|
46
46
|
destroy:
|
47
47
|
success: El encuentro se ha eliminado correctamente
|
48
48
|
edit:
|
49
|
-
update: Actualizar
|
49
|
+
update: Actualizar
|
50
50
|
index:
|
51
51
|
title: Lista de encuentros
|
52
52
|
new:
|
53
|
-
create: Crear
|
54
|
-
title:
|
53
|
+
create: Crear
|
54
|
+
title: Crear encuentro
|
55
55
|
update:
|
56
56
|
invalid: Ha habido un problema al actualizar este encuentro
|
57
57
|
success: Encuentro actualizado correctamente
|
@@ -8,7 +8,6 @@ eu:
|
|
8
8
|
contributions_count: Ekarpen-kopurua
|
9
9
|
proposal_ids: Topaketan sortutako proposamenak
|
10
10
|
meeting:
|
11
|
-
adress: Helbidea
|
12
11
|
decidim_category_id: Kategoria
|
13
12
|
decidim_scope_id: Esparrua
|
14
13
|
description: Deskribapena
|
@@ -28,7 +27,6 @@ eu:
|
|
28
27
|
confirm_destroy: Ziur zaude topaketa hau ezabatu nahi duzula?
|
29
28
|
destroy: Ezabatu
|
30
29
|
edit: Editatu
|
31
|
-
new: '%{name} berria'
|
32
30
|
preview: Aurreikusi
|
33
31
|
title: Ekintzak
|
34
32
|
admin:
|
@@ -45,13 +43,8 @@ eu:
|
|
45
43
|
success: Topaketa ongi sortu da
|
46
44
|
destroy:
|
47
45
|
success: Topaketa zuzen ezabatu da.
|
48
|
-
edit:
|
49
|
-
update: Eguneratu topaketa
|
50
46
|
index:
|
51
47
|
title: Topaketa-zerrenda
|
52
|
-
new:
|
53
|
-
create: Sortu topaketa
|
54
|
-
title: Topaketa berria
|
55
48
|
update:
|
56
49
|
invalid: Arazo bat izan da topaketa hau eguneratzean.
|
57
50
|
success: Topaketa zuzen eguneratu da.
|
@@ -8,7 +8,6 @@ fi:
|
|
8
8
|
contributions_count: Kontribuutioiden määrä
|
9
9
|
proposal_ids: Ehdotusta luotu tapaamisessa
|
10
10
|
meeting:
|
11
|
-
adress: Adressi
|
12
11
|
decidim_category_id: Kategoria
|
13
12
|
decidim_scope_id: Konteksti
|
14
13
|
description: Kuvaus
|
@@ -28,7 +27,6 @@ fi:
|
|
28
27
|
confirm_destroy: Haluatko varmasti poistaa tämän tapaamisen?
|
29
28
|
destroy: Poista
|
30
29
|
edit: Muokkaa
|
31
|
-
new: Uusi %{name}
|
32
30
|
title: Toiminnot
|
33
31
|
admin:
|
34
32
|
meeting_closes:
|
@@ -44,13 +42,8 @@ fi:
|
|
44
42
|
success: Tapaaminen onnistuneesti luotu
|
45
43
|
destroy:
|
46
44
|
success: Tapaaminen onnistuneesti poistettu
|
47
|
-
edit:
|
48
|
-
update: Päivitä tapaaminen
|
49
45
|
index:
|
50
46
|
title: Tapaamiset
|
51
|
-
new:
|
52
|
-
create: Luo tapaaminen
|
53
|
-
title: Uusi tapaaminen
|
54
47
|
update:
|
55
48
|
invalid: Tapaamisen luonnissa tapahtui virhe
|
56
49
|
success: Tapaaminen luotu onnistuneesti
|
@@ -12,7 +12,9 @@ module Decidim
|
|
12
12
|
isolate_namespace Decidim::Meetings
|
13
13
|
|
14
14
|
routes do
|
15
|
-
resources :meetings, only: [:index, :show]
|
15
|
+
resources :meetings, only: [:index, :show] do
|
16
|
+
resource :meeting_widget, only: :show, path: "embed"
|
17
|
+
end
|
16
18
|
root to: "meetings#index"
|
17
19
|
end
|
18
20
|
end
|
@@ -52,45 +52,53 @@ RSpec.shared_examples "manage meetings" do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
it "creates a new meeting" do
|
55
|
-
|
55
|
+
find(".card-title a.button").click
|
56
|
+
|
57
|
+
fill_in_i18n(
|
58
|
+
:meeting_title,
|
59
|
+
"#title-tabs",
|
60
|
+
en: "My meeting",
|
61
|
+
es: "Mi meeting",
|
62
|
+
ca: "El meu meeting"
|
63
|
+
)
|
64
|
+
fill_in_i18n(
|
65
|
+
:meeting_location,
|
66
|
+
"#location-tabs",
|
67
|
+
en: "Location",
|
68
|
+
es: "Location",
|
69
|
+
ca: "Location"
|
70
|
+
)
|
71
|
+
fill_in_i18n(
|
72
|
+
:meeting_location_hints,
|
73
|
+
"#location_hints-tabs",
|
74
|
+
en: "Location hints",
|
75
|
+
es: "Location hints",
|
76
|
+
ca: "Location hints"
|
77
|
+
)
|
78
|
+
fill_in_i18n_editor(
|
79
|
+
:meeting_description,
|
80
|
+
"#description-tabs",
|
81
|
+
en: "A longer description",
|
82
|
+
es: "Descripción más larga",
|
83
|
+
ca: "Descripció més llarga"
|
84
|
+
)
|
85
|
+
|
86
|
+
fill_in :meeting_address, with: address
|
87
|
+
|
88
|
+
page.execute_script("$('#datetime_field_meeting_start_time').focus()")
|
89
|
+
page.find('.datepicker-dropdown .day', text: '12').click
|
90
|
+
page.find('.datepicker-dropdown .hour', text: '10:00').click
|
91
|
+
page.find('.datepicker-dropdown .minute', text: '10:50').click
|
92
|
+
|
93
|
+
page.execute_script("$('#datetime_field_meeting_end_time').focus()")
|
94
|
+
page.find('.datepicker-dropdown .day', text: '12').click
|
95
|
+
page.find('.datepicker-dropdown .hour', text: '12:00').click
|
96
|
+
page.find('.datepicker-dropdown .minute', text: '12:50').click
|
97
|
+
|
98
|
+
select scope.name, from: :meeting_decidim_scope_id
|
99
|
+
select translated(category.name), from: :meeting_decidim_category_id
|
56
100
|
|
57
101
|
within ".new_meeting" do
|
58
|
-
fill_in_i18n(
|
59
|
-
:meeting_title,
|
60
|
-
"#title-tabs",
|
61
|
-
en: "My meeting",
|
62
|
-
es: "Mi meeting",
|
63
|
-
ca: "El meu meeting"
|
64
|
-
)
|
65
|
-
fill_in_i18n(
|
66
|
-
:meeting_location,
|
67
|
-
"#location-tabs",
|
68
|
-
en: "Location",
|
69
|
-
es: "Location",
|
70
|
-
ca: "Location"
|
71
|
-
)
|
72
|
-
fill_in_i18n(
|
73
|
-
:meeting_location_hints,
|
74
|
-
"#location_hints-tabs",
|
75
|
-
en: "Location hints",
|
76
|
-
es: "Location hints",
|
77
|
-
ca: "Location hints"
|
78
|
-
)
|
79
|
-
fill_in_i18n_editor(
|
80
|
-
:meeting_description,
|
81
|
-
"#description-tabs",
|
82
|
-
en: "A longer description",
|
83
|
-
es: "Descripción más larga",
|
84
|
-
ca: "Descripció més llarga"
|
85
|
-
)
|
86
|
-
|
87
|
-
fill_in :meeting_address, with: address
|
88
|
-
fill_in :meeting_start_time, with: 1.day.from_now
|
89
|
-
fill_in :meeting_end_time, with: 1.day.from_now + 2.hours
|
90
|
-
|
91
|
-
select scope.name, from: :meeting_decidim_scope_id
|
92
|
-
select translated(category.name), from: :meeting_decidim_category_id
|
93
|
-
|
94
102
|
find("*[type=submit]").click
|
95
103
|
end
|
96
104
|
|
@@ -158,45 +166,52 @@ RSpec.shared_examples "manage meetings" do
|
|
158
166
|
end
|
159
167
|
|
160
168
|
it "creates a new meeting" do
|
161
|
-
|
169
|
+
find(".card-title a.button").click
|
162
170
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
)
|
171
|
+
fill_in_i18n(
|
172
|
+
:meeting_title,
|
173
|
+
"#title-tabs",
|
174
|
+
en: "My meeting",
|
175
|
+
es: "Mi meeting",
|
176
|
+
ca: "El meu meeting"
|
177
|
+
)
|
178
|
+
fill_in_i18n(
|
179
|
+
:meeting_location,
|
180
|
+
"#location-tabs",
|
181
|
+
en: "Location",
|
182
|
+
es: "Location",
|
183
|
+
ca: "Location"
|
184
|
+
)
|
185
|
+
fill_in_i18n(
|
186
|
+
:meeting_location_hints,
|
187
|
+
"#location_hints-tabs",
|
188
|
+
en: "Location hints",
|
189
|
+
es: "Location hints",
|
190
|
+
ca: "Location hints"
|
191
|
+
)
|
192
|
+
fill_in_i18n_editor(
|
193
|
+
:meeting_description,
|
194
|
+
"#description-tabs",
|
195
|
+
en: "A longer description",
|
196
|
+
es: "Descripción más larga",
|
197
|
+
ca: "Descripció més llarga"
|
198
|
+
)
|
192
199
|
|
193
|
-
|
194
|
-
|
195
|
-
|
200
|
+
fill_in :meeting_address, with: address
|
201
|
+
page.execute_script("$('#datetime_field_meeting_start_time').focus()")
|
202
|
+
page.find('.datepicker-dropdown .day', text: '12').click
|
203
|
+
page.find('.datepicker-dropdown .hour', text: '10:00').click
|
204
|
+
page.find('.datepicker-dropdown .minute', text: '10:50').click
|
196
205
|
|
197
|
-
|
198
|
-
|
206
|
+
page.execute_script("$('#datetime_field_meeting_end_time').focus()")
|
207
|
+
page.find('.datepicker-dropdown .day', text: '12').click
|
208
|
+
page.find('.datepicker-dropdown .hour', text: '12:00').click
|
209
|
+
page.find('.datepicker-dropdown .minute', text: '12:50').click
|
199
210
|
|
211
|
+
select scope.name, from: :meeting_decidim_scope_id
|
212
|
+
select translated(category.name), from: :meeting_decidim_category_id
|
213
|
+
|
214
|
+
within ".new_meeting" do
|
200
215
|
find("*[type=submit]").click
|
201
216
|
end
|
202
217
|
|