decidim-participatory_documents 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.erb-lint.yml +30 -0
- data/.eslintignore +3 -0
- data/.eslintrc.json +3 -0
- data/.github/workflows/lint.yml +43 -0
- data/.github/workflows/test.yml +60 -0
- data/.gitignore +27 -0
- data/.rspec +3 -0
- data/.rubocop-disabled.yml +11 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_rails.yml +91 -0
- data/.rubocop_ruby.yml +1768 -0
- data/.ruby-version +1 -0
- data/.simplecov +13 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +39 -0
- data/Gemfile.lock +817 -0
- data/LICENSE-AGPLv3.txt +661 -0
- data/README.md +166 -0
- data/Rakefile +44 -0
- data/app/cells/decidim/participatory_documents/edit_suggestion_note_modal/show.erb +20 -0
- data/app/cells/decidim/participatory_documents/edit_suggestion_note_modal_cell.rb +35 -0
- data/app/cells/decidim/participatory_documents/suggestion/admin_answer.erb +7 -0
- data/app/cells/decidim/participatory_documents/suggestion/show.erb +11 -0
- data/app/cells/decidim/participatory_documents/suggestion_author/avatar.erb +3 -0
- data/app/cells/decidim/participatory_documents/suggestion_author/date.erb +1 -0
- data/app/cells/decidim/participatory_documents/suggestion_author/name.erb +3 -0
- data/app/cells/decidim/participatory_documents/suggestion_author/show.erb +9 -0
- data/app/cells/decidim/participatory_documents/suggestion_author_cell.rb +50 -0
- data/app/cells/decidim/participatory_documents/suggestion_cell.rb +41 -0
- data/app/commands/decidim/participatory_documents/admin/answer_suggestion.rb +62 -0
- data/app/commands/decidim/participatory_documents/admin/assign_suggestions_to_valuator.rb +59 -0
- data/app/commands/decidim/participatory_documents/admin/create_document.rb +55 -0
- data/app/commands/decidim/participatory_documents/admin/create_suggestion_note.rb +49 -0
- data/app/commands/decidim/participatory_documents/admin/destroy_annotation.rb +67 -0
- data/app/commands/decidim/participatory_documents/admin/notify_suggestion_answer.rb +52 -0
- data/app/commands/decidim/participatory_documents/admin/publish_answers.rb +59 -0
- data/app/commands/decidim/participatory_documents/admin/publish_document.rb +26 -0
- data/app/commands/decidim/participatory_documents/admin/unassign_suggestions_from_valuator.rb +60 -0
- data/app/commands/decidim/participatory_documents/admin/update_document.rb +85 -0
- data/app/commands/decidim/participatory_documents/admin/update_or_create_annotation.rb +98 -0
- data/app/commands/decidim/participatory_documents/admin/update_section.rb +52 -0
- data/app/commands/decidim/participatory_documents/admin/update_suggestion_note.rb +36 -0
- data/app/commands/decidim/participatory_documents/create_suggestion.rb +65 -0
- data/app/controllers/concerns/decidim/participatory_documents/admin/needs_admin_snippets.rb +25 -0
- data/app/controllers/concerns/decidim/participatory_documents/needs_pdf_document.rb +105 -0
- data/app/controllers/decidim/participatory_documents/admin/annotations_controller.rb +51 -0
- data/app/controllers/decidim/participatory_documents/admin/application_controller.rb +18 -0
- data/app/controllers/decidim/participatory_documents/admin/documents_controller.rb +104 -0
- data/app/controllers/decidim/participatory_documents/admin/sections_controller.rb +39 -0
- data/app/controllers/decidim/participatory_documents/admin/suggestion_notes_controller.rb +59 -0
- data/app/controllers/decidim/participatory_documents/admin/suggestions_controller.rb +160 -0
- data/app/controllers/decidim/participatory_documents/admin/valuation_assignments_controller.rb +58 -0
- data/app/controllers/decidim/participatory_documents/application_controller.rb +14 -0
- data/app/controllers/decidim/participatory_documents/document_suggestions_controller.rb +40 -0
- data/app/controllers/decidim/participatory_documents/documents_controller.rb +18 -0
- data/app/controllers/decidim/participatory_documents/section_suggestions_controller.rb +40 -0
- data/app/events/decidim/participatory_documents/suggestion_answer_event.rb +43 -0
- data/app/forms/decidim/participatory_documents/admin/annotation_form.rb +26 -0
- data/app/forms/decidim/participatory_documents/admin/answer_suggestion_form.rb +21 -0
- data/app/forms/decidim/participatory_documents/admin/document_form.rb +29 -0
- data/app/forms/decidim/participatory_documents/admin/section_form.rb +17 -0
- data/app/forms/decidim/participatory_documents/admin/suggestion_note_form.rb +15 -0
- data/app/forms/decidim/participatory_documents/admin/valuation_assignment_form.rb +38 -0
- data/app/forms/decidim/participatory_documents/suggestion_form.rb +39 -0
- data/app/helpers/decidim/participatory_documents/admin/button_helper.rb +17 -0
- data/app/helpers/decidim/participatory_documents/admin/documents_helper.rb +71 -0
- data/app/helpers/decidim/participatory_documents/admin/suggestion_helper.rb +54 -0
- data/app/helpers/decidim/participatory_documents/documents_helper.rb +41 -0
- data/app/models/concerns/decidim/participatory_documents/participatory_space_user_role_override.rb +19 -0
- data/app/models/concerns/decidim/participatory_documents/valuator_override.rb +18 -0
- data/app/models/decidim/participatory_documents/annotation.rb +28 -0
- data/app/models/decidim/participatory_documents/application_record.rb +10 -0
- data/app/models/decidim/participatory_documents/document.rb +67 -0
- data/app/models/decidim/participatory_documents/section.rb +44 -0
- data/app/models/decidim/participatory_documents/suggestion.rb +167 -0
- data/app/models/decidim/participatory_documents/suggestion_note.rb +18 -0
- data/app/models/decidim/participatory_documents/valuation_assignment.rb +21 -0
- data/app/packs/entrypoints/decidim_participatory_documents.js +6 -0
- data/app/packs/entrypoints/decidim_participatory_documents.scss +18 -0
- data/app/packs/entrypoints/decidim_participatory_documents_admin.js +7 -0
- data/app/packs/entrypoints/decidim_participatory_documents_admin.scss +69 -0
- data/app/packs/entrypoints/decidim_participatory_documents_editor.js +12 -0
- data/app/packs/entrypoints/decidim_participatory_documents_editor.scss +33 -0
- data/app/packs/entrypoints/decidim_participatory_documents_viewer.js +6 -0
- data/app/packs/entrypoints/decidim_participatory_documents_viewer.scss +11 -0
- data/app/packs/images/.keep +0 -0
- data/app/packs/images/badge.svg +6 -0
- data/app/packs/images/fullscreen.svg +6 -0
- data/app/packs/images/fullscreen_exit.svg +14 -0
- data/app/packs/images/group.svg +1 -0
- data/app/packs/images/move.svg +49 -0
- data/app/packs/images/participatory_documents.svg +14 -0
- data/app/packs/src/decidim/participatory_documents/admin/manage_bulk_suggestions.js +133 -0
- data/app/packs/src/decidim/participatory_documents/admin/preview_box_color.js +14 -0
- data/app/packs/src/decidim/participatory_documents/global.js +22 -0
- data/app/packs/src/decidim/participatory_documents/pdf/box.js +234 -0
- data/app/packs/src/decidim/participatory_documents/pdf/box_control_group.js +80 -0
- data/app/packs/src/decidim/participatory_documents/pdf/box_control_move.js +55 -0
- data/app/packs/src/decidim/participatory_documents/pdf/box_controls.js +18 -0
- data/app/packs/src/decidim/participatory_documents/pdf/pdf_modal_manager.js +129 -0
- data/app/packs/src/decidim/participatory_documents/pdf/pdf_state_manager.js +141 -0
- data/app/packs/src/decidim/participatory_documents/pdf/polygon_editor.js +99 -0
- data/app/packs/src/decidim/participatory_documents/pdf/polygon_viewer.js +55 -0
- data/app/packs/src/decidim/participatory_documents/pdf/suggestion_form.js +142 -0
- data/app/packs/src/decidim/participatory_documents/pdf.js +37 -0
- data/app/packs/src/decidim/participatory_documents/pdf_admin.js +60 -0
- data/app/packs/src/decidim/participatory_documents/pdf_notifications.js +20 -0
- data/app/packs/src/decidim/participatory_documents/skip_cookie_warning.js +10 -0
- data/app/packs/stylesheets/decidim/participatory_documents/decidim_admin_classes.scss +13 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/admin_modals.scss +41 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/admin_polygons.scss +131 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/admin_tweaks.scss +44 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/defaults.scss +7 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/document.scss +7 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/modals.scss +152 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/notifications.scss +31 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/polygons.scss +80 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/tweaks.scss +147 -0
- data/app/permissions/decidim/participatory_documents/admin/permissions.rb +118 -0
- data/app/permissions/decidim/participatory_documents/permissions.rb +16 -0
- data/app/presenters/decidim/participatory_documents/admin_log/annotation_presenter.rb +25 -0
- data/app/presenters/decidim/participatory_documents/admin_log/document_presenter.rb +13 -0
- data/app/presenters/decidim/participatory_documents/admin_log/section_presenter.rb +25 -0
- data/app/presenters/decidim/participatory_documents/admin_log/suggestion_note_presenter.rb +49 -0
- data/app/serializers/decidim/participatory_documents/suggestion_serializer.rb +67 -0
- data/app/uploaders/decidim/participatory_documents/pdf_document_uploader.rb +11 -0
- data/app/views/decidim/admin/exports/_dropdown.html.erb +16 -0
- data/app/views/decidim/participatory_documents/admin/documents/_editor_modal.html.erb +3 -0
- data/app/views/decidim/participatory_documents/admin/documents/_form.html.erb +39 -0
- data/app/views/decidim/participatory_documents/admin/documents/_title.html.erb +7 -0
- data/app/views/decidim/participatory_documents/admin/documents/edit.html.erb +18 -0
- data/app/views/decidim/participatory_documents/admin/documents/edit_pdf.html.erb +15 -0
- data/app/views/decidim/participatory_documents/admin/documents/index.html.erb +11 -0
- data/app/views/decidim/participatory_documents/admin/documents/new.html.erb +17 -0
- data/app/views/decidim/participatory_documents/admin/documents/pdf_viewer.html.erb +105 -0
- data/app/views/decidim/participatory_documents/admin/sections/_form.html.erb +24 -0
- data/app/views/decidim/participatory_documents/admin/suggestion_notes/_editing_suggestion_note.html.erb +18 -0
- data/app/views/decidim/participatory_documents/admin/suggestion_notes/_form.html.erb +8 -0
- data/app/views/decidim/participatory_documents/admin/suggestion_notes/_suggestion_notes.html.erb +46 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_add_valuators.html.erb +17 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_bulk-actions.html.erb +7 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_form.html.erb +30 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_js-callout.html.erb +6 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_suggestion.html.erb +33 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/_valuators.html.erb +43 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/bulk_actions/_assign_to_valuator.html.erb +15 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/bulk_actions/_dropdown.html.erb +36 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/bulk_actions/_publish_answers.html.erb +14 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/bulk_actions/_unassign_from_valuator.html.erb +15 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/index.html.erb +45 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/publish_answers.js.erb +17 -0
- data/app/views/decidim/participatory_documents/admin/suggestions/show.html.erb +55 -0
- data/app/views/decidim/participatory_documents/document_suggestions/_form.html.erb +29 -0
- data/app/views/decidim/participatory_documents/document_suggestions/index.html.erb +14 -0
- data/app/views/decidim/participatory_documents/documents/_pdfjs_base.html.erb +428 -0
- data/app/views/decidim/participatory_documents/documents/index.html.erb +27 -0
- data/app/views/decidim/participatory_documents/documents/pdf_viewer.html.erb +63 -0
- data/app/views/decidim/participatory_documents/section_suggestions/_form.html.erb +8 -0
- data/app/views/decidim/participatory_documents/section_suggestions/index.html.erb +14 -0
- data/babel.config.json +25 -0
- data/bin/bundle +62 -0
- data/bin/rails +6 -0
- data/bin/webpack-dev-server +6 -0
- data/codecov.yml +11 -0
- data/config/assets.rb +11 -0
- data/config/i18n-tasks.yml +12 -0
- data/config/locales/en.yml +266 -0
- data/crowdin.yml +45 -0
- data/db/migrate/20221018112720_create_decidim_participatory_documents_document.rb +17 -0
- data/db/migrate/20221115233021_create_decidim_participatory_documents_participation_sections.rb +12 -0
- data/db/migrate/20221115233022_create_decidim_participatory_documents_annotations.rb +13 -0
- data/db/migrate/20221115233023_create_decidim_participatory_documents_suggestions.rb +17 -0
- data/db/migrate/20221115233024_create_decidim_participatory_documents_suggestion_notes.rb +15 -0
- data/db/migrate/20221115233024_create_decidim_participatory_documents_valuation_assignments.rb +12 -0
- data/db/migrate/20230616100340_add_published_at_to_decidim_participatory_documents_documents.rb +8 -0
- data/db/migrate/20230622081831_add_decidim_participatory_documents_box_positions.rb +37 -0
- data/decidim-participatory_documents.gemspec +30 -0
- data/lib/decidim/participatory_documents/admin.rb +8 -0
- data/lib/decidim/participatory_documents/admin_engine.rb +45 -0
- data/lib/decidim/participatory_documents/component.rb +202 -0
- data/lib/decidim/participatory_documents/engine.rb +46 -0
- data/lib/decidim/participatory_documents/seeds/Exampledocument.pdf +0 -0
- data/lib/decidim/participatory_documents/test/factories.rb +144 -0
- data/lib/decidim/participatory_documents/version.rb +9 -0
- data/lib/decidim/participatory_documents.rb +29 -0
- data/lib/tasks/decidim_participatory_documents.rake +27 -0
- data/package-lock.json +12687 -0
- data/package.json +52 -0
- data/pdfjs/LICENSE +177 -0
- data/pdfjs/README.md +12 -0
- data/pdfjs/build/pdf.js +15629 -0
- data/pdfjs/build/pdf.js.map +1 -0
- data/pdfjs/build/pdf.sandbox.js +280 -0
- data/pdfjs/build/pdf.sandbox.js.map +1 -0
- data/pdfjs/build/pdf.worker.js +64496 -0
- data/pdfjs/build/pdf.worker.js.map +1 -0
- data/pdfjs/web/cmaps/78-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/78-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/78-H.bcmap +0 -0
- data/pdfjs/web/cmaps/78-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/78-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/78-V.bcmap +0 -0
- data/pdfjs/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Add-H.bcmap +0 -0
- data/pdfjs/web/cmaps/Add-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/Add-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Add-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-0.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-1.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-3.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-4.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-5.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
- data/pdfjs/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- data/pdfjs/web/cmaps/B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/B5pc-H.bcmap +0 -0
- data/pdfjs/web/cmaps/B5pc-V.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS1-H.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS1-V.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS2-H.bcmap +0 -0
- data/pdfjs/web/cmaps/CNS2-V.bcmap +3 -0
- data/pdfjs/web/cmaps/ETHK-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/ETHK-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/ETen-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/ETen-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/ETenms-B5-H.bcmap +3 -0
- data/pdfjs/web/cmaps/ETenms-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Ext-H.bcmap +0 -0
- data/pdfjs/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Ext-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GB-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GB-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GB-H.bcmap +4 -0
- data/pdfjs/web/cmaps/GB-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBK-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBK-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBK2K-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBK2K-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBKp-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBKp-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBT-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBT-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBT-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBT-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/GBpc-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/GBpc-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKdla-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKdla-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/HKdlb-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKdlb-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/HKgccs-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKgccs-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/HKm314-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKm314-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/HKm471-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKm471-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/HKscs-B5-H.bcmap +0 -0
- data/pdfjs/web/cmaps/HKscs-B5-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Hankaku.bcmap +0 -0
- data/pdfjs/web/cmaps/Hiragana.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-Johab-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-Johab-V.bcmap +0 -0
- data/pdfjs/web/cmaps/KSC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCms-UHC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCms-UHC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
- data/pdfjs/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Katakana.bcmap +0 -0
- data/pdfjs/web/cmaps/LICENSE +36 -0
- data/pdfjs/web/cmaps/NWP-H.bcmap +0 -0
- data/pdfjs/web/cmaps/NWP-V.bcmap +0 -0
- data/pdfjs/web/cmaps/RKSJ-H.bcmap +0 -0
- data/pdfjs/web/cmaps/RKSJ-V.bcmap +0 -0
- data/pdfjs/web/cmaps/Roman.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
- data/pdfjs/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
- data/pdfjs/web/cmaps/V.bcmap +0 -0
- data/pdfjs/web/cmaps/WP-Symbol.bcmap +0 -0
- data/pdfjs/web/compressed.tracemonkey-pldi-09.pdf +0 -0
- data/pdfjs/web/debugger.css +113 -0
- data/pdfjs/web/debugger.js +612 -0
- data/pdfjs/web/images/annotation-check.svg +11 -0
- data/pdfjs/web/images/annotation-comment.svg +16 -0
- data/pdfjs/web/images/annotation-help.svg +26 -0
- data/pdfjs/web/images/annotation-insert.svg +10 -0
- data/pdfjs/web/images/annotation-key.svg +11 -0
- data/pdfjs/web/images/annotation-newparagraph.svg +11 -0
- data/pdfjs/web/images/annotation-noicon.svg +7 -0
- data/pdfjs/web/images/annotation-note.svg +42 -0
- data/pdfjs/web/images/annotation-paperclip.svg +6 -0
- data/pdfjs/web/images/annotation-paragraph.svg +16 -0
- data/pdfjs/web/images/annotation-pushpin.svg +7 -0
- data/pdfjs/web/images/cursor-editorFreeText.svg +3 -0
- data/pdfjs/web/images/cursor-editorInk.svg +4 -0
- data/pdfjs/web/images/findbarButton-next.svg +3 -0
- data/pdfjs/web/images/findbarButton-previous.svg +3 -0
- data/pdfjs/web/images/loading-dark.svg +24 -0
- data/pdfjs/web/images/loading-icon.gif +0 -0
- data/pdfjs/web/images/loading.svg +1 -0
- data/pdfjs/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-firstPage.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-handTool.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-lastPage.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-selectTool.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
- data/pdfjs/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- data/pdfjs/web/images/shadow.png +0 -0
- data/pdfjs/web/images/toolbarButton-bookmark.svg +3 -0
- data/pdfjs/web/images/toolbarButton-currentOutlineItem.svg +3 -0
- data/pdfjs/web/images/toolbarButton-download.svg +4 -0
- data/pdfjs/web/images/toolbarButton-editorFreeText.svg +3 -0
- data/pdfjs/web/images/toolbarButton-editorInk.svg +4 -0
- data/pdfjs/web/images/toolbarButton-menuArrow.svg +3 -0
- data/pdfjs/web/images/toolbarButton-openFile.svg +3 -0
- data/pdfjs/web/images/toolbarButton-pageDown.svg +3 -0
- data/pdfjs/web/images/toolbarButton-pageUp.svg +3 -0
- data/pdfjs/web/images/toolbarButton-presentationMode.svg +3 -0
- data/pdfjs/web/images/toolbarButton-print.svg +3 -0
- data/pdfjs/web/images/toolbarButton-search.svg +3 -0
- data/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- data/pdfjs/web/images/toolbarButton-sidebarToggle.svg +3 -0
- data/pdfjs/web/images/toolbarButton-viewAttachments.svg +3 -0
- data/pdfjs/web/images/toolbarButton-viewLayers.svg +3 -0
- data/pdfjs/web/images/toolbarButton-viewOutline.svg +3 -0
- data/pdfjs/web/images/toolbarButton-viewThumbnail.svg +3 -0
- data/pdfjs/web/images/toolbarButton-zoomIn.svg +3 -0
- data/pdfjs/web/images/toolbarButton-zoomOut.svg +3 -0
- data/pdfjs/web/images/treeitem-collapsed.svg +1 -0
- data/pdfjs/web/images/treeitem-expanded.svg +1 -0
- data/pdfjs/web/locale/ach/viewer.properties +200 -0
- data/pdfjs/web/locale/af/viewer.properties +177 -0
- data/pdfjs/web/locale/an/viewer.properties +243 -0
- data/pdfjs/web/locale/ar/viewer.properties +247 -0
- data/pdfjs/web/locale/ast/viewer.properties +207 -0
- data/pdfjs/web/locale/az/viewer.properties +243 -0
- data/pdfjs/web/locale/be/viewer.properties +274 -0
- data/pdfjs/web/locale/bg/viewer.properties +235 -0
- data/pdfjs/web/locale/bn/viewer.properties +239 -0
- data/pdfjs/web/locale/bo/viewer.properties +238 -0
- data/pdfjs/web/locale/br/viewer.properties +247 -0
- data/pdfjs/web/locale/brx/viewer.properties +205 -0
- data/pdfjs/web/locale/bs/viewer.properties +194 -0
- data/pdfjs/web/locale/ca/viewer.properties +251 -0
- data/pdfjs/web/locale/cak/viewer.properties +249 -0
- data/pdfjs/web/locale/ckb/viewer.properties +234 -0
- data/pdfjs/web/locale/cs/viewer.properties +274 -0
- data/pdfjs/web/locale/cy/viewer.properties +274 -0
- data/pdfjs/web/locale/da/viewer.properties +274 -0
- data/pdfjs/web/locale/de/viewer.properties +274 -0
- data/pdfjs/web/locale/dsb/viewer.properties +274 -0
- data/pdfjs/web/locale/el/viewer.properties +274 -0
- data/pdfjs/web/locale/en-CA/viewer.properties +274 -0
- data/pdfjs/web/locale/en-GB/viewer.properties +274 -0
- data/pdfjs/web/locale/en-US/viewer.properties +253 -0
- data/pdfjs/web/locale/eo/viewer.properties +274 -0
- data/pdfjs/web/locale/es-AR/viewer.properties +274 -0
- data/pdfjs/web/locale/es-CL/viewer.properties +274 -0
- data/pdfjs/web/locale/es-ES/viewer.properties +274 -0
- data/pdfjs/web/locale/es-MX/viewer.properties +274 -0
- data/pdfjs/web/locale/et/viewer.properties +262 -0
- data/pdfjs/web/locale/eu/viewer.properties +272 -0
- data/pdfjs/web/locale/fa/viewer.properties +216 -0
- data/pdfjs/web/locale/ff/viewer.properties +235 -0
- data/pdfjs/web/locale/fi/viewer.properties +274 -0
- data/pdfjs/web/locale/fr/viewer.properties +274 -0
- data/pdfjs/web/locale/fy-NL/viewer.properties +274 -0
- data/pdfjs/web/locale/ga-IE/viewer.properties +202 -0
- data/pdfjs/web/locale/gd/viewer.properties +249 -0
- data/pdfjs/web/locale/gl/viewer.properties +249 -0
- data/pdfjs/web/locale/gn/viewer.properties +274 -0
- data/pdfjs/web/locale/gu-IN/viewer.properties +235 -0
- data/pdfjs/web/locale/he/viewer.properties +274 -0
- data/pdfjs/web/locale/hi-IN/viewer.properties +235 -0
- data/pdfjs/web/locale/hr/viewer.properties +249 -0
- data/pdfjs/web/locale/hsb/viewer.properties +274 -0
- data/pdfjs/web/locale/hu/viewer.properties +274 -0
- data/pdfjs/web/locale/hy-AM/viewer.properties +239 -0
- data/pdfjs/web/locale/hye/viewer.properties +252 -0
- data/pdfjs/web/locale/ia/viewer.properties +274 -0
- data/pdfjs/web/locale/id/viewer.properties +274 -0
- data/pdfjs/web/locale/is/viewer.properties +274 -0
- data/pdfjs/web/locale/it/viewer.properties +215 -0
- data/pdfjs/web/locale/ja/viewer.properties +274 -0
- data/pdfjs/web/locale/ka/viewer.properties +274 -0
- data/pdfjs/web/locale/kab/viewer.properties +274 -0
- data/pdfjs/web/locale/kk/viewer.properties +274 -0
- data/pdfjs/web/locale/km/viewer.properties +210 -0
- data/pdfjs/web/locale/kn/viewer.properties +187 -0
- data/pdfjs/web/locale/ko/viewer.properties +274 -0
- data/pdfjs/web/locale/lij/viewer.properties +235 -0
- data/pdfjs/web/locale/lo/viewer.properties +145 -0
- data/pdfjs/web/locale/locale.properties +327 -0
- data/pdfjs/web/locale/lt/viewer.properties +260 -0
- data/pdfjs/web/locale/ltg/viewer.properties +213 -0
- data/pdfjs/web/locale/lv/viewer.properties +235 -0
- data/pdfjs/web/locale/meh/viewer.properties +111 -0
- data/pdfjs/web/locale/mk/viewer.properties +139 -0
- data/pdfjs/web/locale/mr/viewer.properties +231 -0
- data/pdfjs/web/locale/ms/viewer.properties +235 -0
- data/pdfjs/web/locale/my/viewer.properties +191 -0
- data/pdfjs/web/locale/nb-NO/viewer.properties +274 -0
- data/pdfjs/web/locale/ne-NP/viewer.properties +218 -0
- data/pdfjs/web/locale/nl/viewer.properties +274 -0
- data/pdfjs/web/locale/nn-NO/viewer.properties +274 -0
- data/pdfjs/web/locale/oc/viewer.properties +274 -0
- data/pdfjs/web/locale/pa-IN/viewer.properties +285 -0
- data/pdfjs/web/locale/pl/viewer.properties +274 -0
- data/pdfjs/web/locale/pt-BR/viewer.properties +274 -0
- data/pdfjs/web/locale/pt-PT/viewer.properties +274 -0
- data/pdfjs/web/locale/rm/viewer.properties +274 -0
- data/pdfjs/web/locale/ro/viewer.properties +241 -0
- data/pdfjs/web/locale/ru/viewer.properties +274 -0
- data/pdfjs/web/locale/sat/viewer.properties +198 -0
- data/pdfjs/web/locale/sc/viewer.properties +240 -0
- data/pdfjs/web/locale/scn/viewer.properties +101 -0
- data/pdfjs/web/locale/sco/viewer.properties +249 -0
- data/pdfjs/web/locale/si/viewer.properties +237 -0
- data/pdfjs/web/locale/sk/viewer.properties +274 -0
- data/pdfjs/web/locale/sl/viewer.properties +274 -0
- data/pdfjs/web/locale/son/viewer.properties +173 -0
- data/pdfjs/web/locale/sq/viewer.properties +267 -0
- data/pdfjs/web/locale/sr/viewer.properties +253 -0
- data/pdfjs/web/locale/sv-SE/viewer.properties +274 -0
- data/pdfjs/web/locale/szl/viewer.properties +245 -0
- data/pdfjs/web/locale/ta/viewer.properties +194 -0
- data/pdfjs/web/locale/te/viewer.properties +237 -0
- data/pdfjs/web/locale/tg/viewer.properties +274 -0
- data/pdfjs/web/locale/th/viewer.properties +274 -0
- data/pdfjs/web/locale/tl/viewer.properties +243 -0
- data/pdfjs/web/locale/tr/viewer.properties +274 -0
- data/pdfjs/web/locale/trs/viewer.properties +206 -0
- data/pdfjs/web/locale/uk/viewer.properties +274 -0
- data/pdfjs/web/locale/ur/viewer.properties +239 -0
- data/pdfjs/web/locale/uz/viewer.properties +163 -0
- data/pdfjs/web/locale/vi/viewer.properties +274 -0
- data/pdfjs/web/locale/wo/viewer.properties +123 -0
- data/pdfjs/web/locale/xh/viewer.properties +177 -0
- data/pdfjs/web/locale/zh-CN/viewer.properties +274 -0
- data/pdfjs/web/locale/zh-TW/viewer.properties +274 -0
- data/pdfjs/web/standard_fonts/FoxitDingbats.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitFixed.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitFixedBold.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitFixedItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSans.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSansBold.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSansItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSerif.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSerifBold.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSerifItalic.pfb +0 -0
- data/pdfjs/web/standard_fonts/FoxitSymbol.pfb +0 -0
- data/pdfjs/web/standard_fonts/LICENSE_FOXIT +27 -0
- data/pdfjs/web/standard_fonts/LICENSE_LIBERATION +102 -0
- data/pdfjs/web/standard_fonts/LiberationSans-Bold.ttf +0 -0
- data/pdfjs/web/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- data/pdfjs/web/standard_fonts/LiberationSans-Italic.ttf +0 -0
- data/pdfjs/web/standard_fonts/LiberationSans-Regular.ttf +0 -0
- data/pdfjs/web/viewer.css +3029 -0
- data/pdfjs/web/viewer.html +433 -0
- data/pdfjs/web/viewer.js +13566 -0
- data/pdfjs/web/viewer.js.map +1 -0
- metadata +643 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
<div id="js-unassign-suggestions-from-valuator-actions" class="hide js-bulk-action-form">
|
2
|
+
<%= form_tag(document_valuation_assignment_path(document), method: :delete, id: "js-form-unassign-suggestions-from-valuator", class: "flex--cc flex-gap--1") do %>
|
3
|
+
<div class="checkboxes hide">
|
4
|
+
<% suggestions.each do |suggestion| %>
|
5
|
+
<%= check_box_tag "suggestion_ids[]", suggestion.id, false, class: "js-check-all-suggestion js-suggestion-id-#{suggestion.id}" %>
|
6
|
+
<% end %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<%= bulk_valuators_select(current_participatory_space, t("decidim.participatory_documents.admin.suggestions.index.actions.unassign_from_valuator")) %>
|
10
|
+
|
11
|
+
<%= submit_tag(t("decidim.participatory_documents.admin.suggestions.index.actions.unassign_from_valuator_button"), id: "js-submit-unassign-suggestions-from-valuator", class: "button small button--simple float-left") %>
|
12
|
+
|
13
|
+
<button id="js-cancel-unassign-suggestions-from-valuator" class="button tiny clear compact js-cancel-bulk-action" type="button"><%= t("decidim.participatory_documents.admin.suggestions.index.actions.cancel") %></button>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<div class="card with-overflow">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title flex--sbc">
|
4
|
+
<div>
|
5
|
+
<%= t(".title") %>
|
6
|
+
<span id="js-selected-suggestions-count" class="component-counter component-counter--inline" title="<%= t("decidim.participatory_documents.admin.suggestions.index.selected") %>"></span>
|
7
|
+
</div>
|
8
|
+
<div class="flex--cc flex-gap--1">
|
9
|
+
<%= render "decidim/participatory_documents/admin/suggestions/bulk-actions" %>
|
10
|
+
<% if defined?(button) && button == :back %>
|
11
|
+
<%= back_btn %>
|
12
|
+
<% else %>
|
13
|
+
<%= pdf_manage_buttons(document) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</h2>
|
17
|
+
</div>
|
18
|
+
<%= admin_filter_selector(:suggestions) %>
|
19
|
+
<div class="card-section">
|
20
|
+
<div class="table-scroll">
|
21
|
+
<table class="table-list">
|
22
|
+
<thead>
|
23
|
+
<tr>
|
24
|
+
<th><%= check_box_tag "suggestions_bulk", "all", false, id: "suggestions_bulk", class: "js-check-all" %></th>
|
25
|
+
<th><%= sort_link(query, :id, t(".id"), default_order: :desc ) %></th>
|
26
|
+
<th><%= sort_link(query, :translated_body, t(".suggestion") ) %></th>
|
27
|
+
<th><%= sort_link(query, :author, t(".author")) %></th>
|
28
|
+
<th><%= sort_link(query, :suggestable, t(".section")) %></th>
|
29
|
+
<th><%= sort_link(query, :published, t(".published_answer")) %></th>
|
30
|
+
<th><%= sort_link(query, :state, t(".state")) %></th>
|
31
|
+
<th><%= sort_link(query, :valuation_assignments_count, t("models.suggestion.fields.valuators", scope: "decidim.participatory_documents") ) %></th>
|
32
|
+
<th><%= sort_link(query, :created_at, t(".created_at")) %></th>
|
33
|
+
<th class="actions"><%= t(".actions.title") %></th>
|
34
|
+
</tr>
|
35
|
+
</thead>
|
36
|
+
<% suggestions.each do |suggestion| %>
|
37
|
+
<%= render "decidim/participatory_documents/admin/suggestions/suggestion", suggestion: suggestion %>
|
38
|
+
<% end %>
|
39
|
+
<tbody>
|
40
|
+
</tbody>
|
41
|
+
</table>
|
42
|
+
<%= paginate suggestions, theme: "decidim" %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% locals = flash.key?(:notice) ? { css: %q{success}, text: flash.now[:notice] } : { css: %q{alert}, text: flash.now[:alert] } %>
|
2
|
+
|
3
|
+
$("<%= escape_javascript(render partial: "js-callout", locals: locals) %>").appendTo(".callout-wrapper");
|
4
|
+
|
5
|
+
<% suggestion_ids.each do |id| %>
|
6
|
+
$(".table-list [data-id='<%= id %>']")
|
7
|
+
.replaceWith("<%= escape_javascript(render partial: %q{suggestion}, locals: { suggestion: suggestion_find(id) }) %>");
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
document.getElementById("suggestions_bulk").checked = false;
|
11
|
+
document.querySelectorAll(".js-check-all-suggestion").forEach((suggestion) => {
|
12
|
+
suggestion.checked = false;
|
13
|
+
});
|
14
|
+
|
15
|
+
window.hideBulkActionForms()
|
16
|
+
window.showBulkActionsButton();
|
17
|
+
window.selectedSugestionsCountUpdate();
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
Suggestion for <%= translated_attribute(suggestion.suggestable.title) %>
|
5
|
+
<%#= link_to "#{t ".proposals"} > ", proposals_path %>
|
6
|
+
<%#= decidim_html_escape(present(proposal).title).html_safe %>
|
7
|
+
|
8
|
+
<%# if allowed_to? :edit, :proposal, proposal: proposal %>
|
9
|
+
<%#= icon_link_to "pencil", edit_proposal_path(proposal), t("actions.edit_proposal", scope: "decidim.proposals"), class: "action-icon--edit-proposal" %>
|
10
|
+
<%# end %>
|
11
|
+
</h2>
|
12
|
+
</div>
|
13
|
+
<div class="card-section">
|
14
|
+
|
15
|
+
<div class="row column">
|
16
|
+
<strong><%= t ".authors" %>:</strong>
|
17
|
+
<ul id="proposal-authors-list">
|
18
|
+
<li>
|
19
|
+
<% presented_author = present(suggestion.author) %>
|
20
|
+
<%= link_to_if(
|
21
|
+
presented_author.profile_path.present?,
|
22
|
+
presented_author.name,
|
23
|
+
presented_author.profile_path,
|
24
|
+
target: :blank
|
25
|
+
) %>
|
26
|
+
<% if presented_author.can_be_contacted? && presented_author.nickname != present(current_user).nickname %>
|
27
|
+
<%= icon_link_to "envelope-closed", current_or_new_conversation_path_with(presented_author), t("decidim.contact"), class: "action-icon--new" %>
|
28
|
+
<% end %>
|
29
|
+
</li>
|
30
|
+
<%# end %>
|
31
|
+
</ul>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="row column">
|
35
|
+
<strong><%= t ".body" %>:</strong>
|
36
|
+
<p><%= suggestion_content(suggestion)[:text] %>
|
37
|
+
<% if suggestion_content(suggestion)[:file_link] %>
|
38
|
+
<%= suggestion_content(suggestion)[:file_link] %>
|
39
|
+
<% end %>
|
40
|
+
</p>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="row column">
|
44
|
+
<strong><%= t ".created_at" %>:</strong> <%= l suggestion.created_at, format: :decidim_short %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<%= render "decidim/participatory_documents/admin/suggestions/valuators" %>
|
50
|
+
|
51
|
+
<% if allowed_to?(:create, :suggestion_note, suggestion: suggestion) %>
|
52
|
+
<%= render "decidim/participatory_documents/admin/suggestion_notes/suggestion_notes" %>
|
53
|
+
<% end %>
|
54
|
+
|
55
|
+
<%= render "decidim/participatory_documents/admin/suggestions/form" %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div style="margin-bottom: 15px">
|
2
|
+
<b><%= t("suggestion_form.title", scope: "decidim.participatory_documents.ui_messages") %></b>
|
3
|
+
</div>
|
4
|
+
<div id="formContainer">
|
5
|
+
<%= decidim_form_for(@form, url: document_suggestions_path(document), html: { class: "form", multipart: true }) do |form| %>
|
6
|
+
<div id="messageForm" class="form-section">
|
7
|
+
<div class="column">
|
8
|
+
<%= form.text_area :body %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div id="fileForm" class="form-section">
|
12
|
+
<div class="column">
|
13
|
+
<div id="fileInputContainer">
|
14
|
+
<%= form.file_field :file, id: "file-upload-field", style: "display: none;", label: false %>
|
15
|
+
<p id="fileNameContainer"></p>
|
16
|
+
</div>
|
17
|
+
<p>
|
18
|
+
<%= link_to "#", class: "file-upload", onclick: "document.getElementById('file-upload-field').click(); return false;" do %>
|
19
|
+
<%= icon "paperclip" %>
|
20
|
+
<%= t "upload_file", scope: "decidim.participatory_documents.document" %>
|
21
|
+
<% end %>
|
22
|
+
</p>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="button--double form-general-submit">
|
26
|
+
<%= form.submit t("send_suggestion", scope: "decidim.participatory_documents.document"), id: "editor-modal-save", name: "editor-modal-save" %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div id="suggestions-list">
|
2
|
+
<h3>
|
3
|
+
<%= t "global_suggestions", scope: "decidim.participatory_documents.document" %>
|
4
|
+
<a href="#" class="close" id="close-suggestions" title="<%= t "close", scope: "decidim.participatory_documents.document" %>">×</a>
|
5
|
+
</h3>
|
6
|
+
<% suggestions.each do |suggestion| %>
|
7
|
+
<%= cell("decidim/participatory_documents/suggestion", suggestion) %>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div id="participation-modal-form">
|
12
|
+
<div class="form-error is-visible"><%= error_message if defined?(error_message) %></div>
|
13
|
+
<%= render "decidim/participatory_documents/document_suggestions/form" %>
|
14
|
+
</div>
|
@@ -0,0 +1,428 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2012 Mozilla Foundation
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
|
16
|
+
Adobe CMap resources are covered by their own copyright but the same license:
|
17
|
+
|
18
|
+
Copyright 1990-2015 Adobe Systems Incorporated.
|
19
|
+
|
20
|
+
See https://github.com/adobe-type-tools/cmap-resources
|
21
|
+
-->
|
22
|
+
<div id="outerContainer">
|
23
|
+
|
24
|
+
<div id="sidebarContainer">
|
25
|
+
<div id="toolbarSidebar">
|
26
|
+
<div id="toolbarSidebarLeft">
|
27
|
+
<div id="sidebarViewButtons" class="splitToolbarButton toggled" role="radiogroup">
|
28
|
+
<button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs" role="radio" aria-checked="true" aria-controls="thumbnailView">
|
29
|
+
<span data-l10n-id="thumbs_label">Thumbnails</span>
|
30
|
+
</button>
|
31
|
+
<button id="viewOutline" class="toolbarButton" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline" role="radio" aria-checked="false" aria-controls="outlineView">
|
32
|
+
<span data-l10n-id="document_outline_label">Document Outline</span>
|
33
|
+
</button>
|
34
|
+
<button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4" data-l10n-id="attachments" role="radio" aria-checked="false" aria-controls="attachmentsView">
|
35
|
+
<span data-l10n-id="attachments_label">Attachments</span>
|
36
|
+
</button>
|
37
|
+
<button id="viewLayers" class="toolbarButton" title="Show Layers (double-click to reset all layers to the default state)" tabindex="5" data-l10n-id="layers" role="radio" aria-checked="false" aria-controls="layersView">
|
38
|
+
<span data-l10n-id="layers_label">Layers</span>
|
39
|
+
</button>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="toolbarSidebarRight">
|
44
|
+
<div id="outlineOptionsContainer" class="hidden">
|
45
|
+
<div class="verticalToolbarSeparator"></div>
|
46
|
+
|
47
|
+
<button id="currentOutlineItem" class="toolbarButton" disabled="disabled" title="Find Current Outline Item" tabindex="6" data-l10n-id="current_outline_item">
|
48
|
+
<span data-l10n-id="current_outline_item_label">Current Outline Item</span>
|
49
|
+
</button>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
<div id="sidebarContent">
|
54
|
+
<div id="thumbnailView">
|
55
|
+
</div>
|
56
|
+
<div id="outlineView" class="hidden">
|
57
|
+
</div>
|
58
|
+
<div id="attachmentsView" class="hidden">
|
59
|
+
</div>
|
60
|
+
<div id="layersView" class="hidden">
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<div id="sidebarResizer"></div>
|
64
|
+
</div> <!-- sidebarContainer -->
|
65
|
+
|
66
|
+
<div id="mainContainer">
|
67
|
+
<div class="findbar hidden doorHanger" id="findbar">
|
68
|
+
<div id="findbarInputContainer">
|
69
|
+
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input" aria-invalid="false">
|
70
|
+
<div class="splitToolbarButton">
|
71
|
+
<button id="findPrevious" class="toolbarButton" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous">
|
72
|
+
<span data-l10n-id="find_previous_label">Previous</span>
|
73
|
+
</button>
|
74
|
+
<div class="splitToolbarButtonSeparator"></div>
|
75
|
+
<button id="findNext" class="toolbarButton" title="Find the next occurrence of the phrase" tabindex="93" data-l10n-id="find_next">
|
76
|
+
<span data-l10n-id="find_next_label">Next</span>
|
77
|
+
</button>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div id="findbarOptionsOneContainer">
|
82
|
+
<input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94">
|
83
|
+
<label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight All</label>
|
84
|
+
<input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95">
|
85
|
+
<label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match Case</label>
|
86
|
+
</div>
|
87
|
+
<div id="findbarOptionsTwoContainer">
|
88
|
+
<input type="checkbox" id="findMatchDiacritics" class="toolbarField" tabindex="96">
|
89
|
+
<label for="findMatchDiacritics" class="toolbarLabel" data-l10n-id="find_match_diacritics_label">Match Diacritics</label>
|
90
|
+
<input type="checkbox" id="findEntireWord" class="toolbarField" tabindex="97">
|
91
|
+
<label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div id="findbarMessageContainer" aria-live="polite">
|
95
|
+
<span id="findResultsCount" class="toolbarLabel"></span>
|
96
|
+
<span id="findMsg" class="toolbarLabel"></span>
|
97
|
+
</div>
|
98
|
+
</div> <!-- findbar -->
|
99
|
+
|
100
|
+
<div class="editorParamsToolbar hidden doorHangerRight" id="editorFreeTextParamsToolbar">
|
101
|
+
<div class="editorParamsToolbarContainer">
|
102
|
+
<div class="editorParamsSetter">
|
103
|
+
<label for="editorFreeTextColor" class="editorParamsLabel" data-l10n-id="editor_free_text_color">Color</label>
|
104
|
+
<input type="color" id="editorFreeTextColor" class="editorParamsColor" tabindex="100">
|
105
|
+
</div>
|
106
|
+
<div class="editorParamsSetter">
|
107
|
+
<label for="editorFreeTextFontSize" class="editorParamsLabel" data-l10n-id="editor_free_text_size">Size</label>
|
108
|
+
<input type="range" id="editorFreeTextFontSize" class="editorParamsSlider" value="10" min="5" max="100" step="1" tabindex="101">
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<div class="editorParamsToolbar hidden doorHangerRight" id="editorInkParamsToolbar">
|
114
|
+
<div class="editorParamsToolbarContainer">
|
115
|
+
<div class="editorParamsSetter">
|
116
|
+
<label for="editorInkColor" class="editorParamsLabel" data-l10n-id="editor_ink_color">Color</label>
|
117
|
+
<input type="color" id="editorInkColor" class="editorParamsColor" tabindex="102">
|
118
|
+
</div>
|
119
|
+
<div class="editorParamsSetter">
|
120
|
+
<label for="editorInkThickness" class="editorParamsLabel" data-l10n-id="editor_ink_thickness">Thickness</label>
|
121
|
+
<input type="range" id="editorInkThickness" class="editorParamsSlider" value="1" min="1" max="20" step="1" tabindex="103">
|
122
|
+
</div>
|
123
|
+
<div class="editorParamsSetter">
|
124
|
+
<label for="editorInkOpacity" class="editorParamsLabel" data-l10n-id="editor_ink_opacity">Opacity</label>
|
125
|
+
<input type="range" id="editorInkOpacity" class="editorParamsSlider" value="100" min="1" max="100" step="1" tabindex="104">
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
|
131
|
+
<div id="secondaryToolbarButtonContainer">
|
132
|
+
<button id="secondaryOpenFile" class="secondaryToolbarButton visibleLargeView" title="Open File" tabindex="51" data-l10n-id="open_file">
|
133
|
+
<span data-l10n-id="open_file_label">Open</span>
|
134
|
+
</button>
|
135
|
+
|
136
|
+
<button id="secondaryPrint" class="secondaryToolbarButton visibleMediumView" title="Print" tabindex="52" data-l10n-id="print">
|
137
|
+
<span data-l10n-id="print_label">Print</span>
|
138
|
+
</button>
|
139
|
+
|
140
|
+
<button id="secondaryDownload" class="secondaryToolbarButton visibleMediumView" title="Save" tabindex="53" data-l10n-id="save">
|
141
|
+
<span data-l10n-id="save_label">Save</span>
|
142
|
+
</button>
|
143
|
+
|
144
|
+
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
145
|
+
|
146
|
+
<button id="presentationMode" class="secondaryToolbarButton" title="Switch to Presentation Mode" tabindex="54" data-l10n-id="presentation_mode">
|
147
|
+
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
148
|
+
</button>
|
149
|
+
|
150
|
+
<a href="#" id="viewBookmark" class="secondaryToolbarButton" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
|
151
|
+
<span data-l10n-id="bookmark_label">Current View</span>
|
152
|
+
</a>
|
153
|
+
|
154
|
+
<div class="horizontalToolbarSeparator"></div>
|
155
|
+
|
156
|
+
<button id="firstPage" class="secondaryToolbarButton" title="Go to First Page" tabindex="56" data-l10n-id="first_page">
|
157
|
+
<span data-l10n-id="first_page_label">Go to First Page</span>
|
158
|
+
</button>
|
159
|
+
<button id="lastPage" class="secondaryToolbarButton" title="Go to Last Page" tabindex="57" data-l10n-id="last_page">
|
160
|
+
<span data-l10n-id="last_page_label">Go to Last Page</span>
|
161
|
+
</button>
|
162
|
+
|
163
|
+
<div class="horizontalToolbarSeparator"></div>
|
164
|
+
|
165
|
+
<button id="pageRotateCw" class="secondaryToolbarButton" title="Rotate Clockwise" tabindex="58" data-l10n-id="page_rotate_cw">
|
166
|
+
<span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span>
|
167
|
+
</button>
|
168
|
+
<button id="pageRotateCcw" class="secondaryToolbarButton" title="Rotate Counterclockwise" tabindex="59" data-l10n-id="page_rotate_ccw">
|
169
|
+
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
|
170
|
+
</button>
|
171
|
+
|
172
|
+
<div class="horizontalToolbarSeparator"></div>
|
173
|
+
|
174
|
+
<div id="cursorToolButtons" role="radiogroup">
|
175
|
+
<button id="cursorSelectTool" class="secondaryToolbarButton toggled" title="Enable Text Selection Tool" tabindex="60" data-l10n-id="cursor_text_select_tool" role="radio" aria-checked="true">
|
176
|
+
<span data-l10n-id="cursor_text_select_tool_label">Text Selection Tool</span>
|
177
|
+
</button>
|
178
|
+
<button id="cursorHandTool" class="secondaryToolbarButton" title="Enable Hand Tool" tabindex="61" data-l10n-id="cursor_hand_tool" role="radio" aria-checked="false">
|
179
|
+
<span data-l10n-id="cursor_hand_tool_label">Hand Tool</span>
|
180
|
+
</button>
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div class="horizontalToolbarSeparator"></div>
|
184
|
+
|
185
|
+
<div id="scrollModeButtons" role="radiogroup">
|
186
|
+
<button id="scrollPage" class="secondaryToolbarButton" title="Use Page Scrolling" tabindex="62" data-l10n-id="scroll_page" role="radio" aria-checked="false">
|
187
|
+
<span data-l10n-id="scroll_page_label">Page Scrolling</span>
|
188
|
+
</button>
|
189
|
+
<button id="scrollVertical" class="secondaryToolbarButton toggled" title="Use Vertical Scrolling" tabindex="63" data-l10n-id="scroll_vertical" role="radio" aria-checked="true">
|
190
|
+
<span data-l10n-id="scroll_vertical_label">Vertical Scrolling</span>
|
191
|
+
</button>
|
192
|
+
<button id="scrollHorizontal" class="secondaryToolbarButton" title="Use Horizontal Scrolling" tabindex="64" data-l10n-id="scroll_horizontal" role="radio" aria-checked="false">
|
193
|
+
<span data-l10n-id="scroll_horizontal_label">Horizontal Scrolling</span>
|
194
|
+
</button>
|
195
|
+
<button id="scrollWrapped" class="secondaryToolbarButton" title="Use Wrapped Scrolling" tabindex="65" data-l10n-id="scroll_wrapped" role="radio" aria-checked="false">
|
196
|
+
<span data-l10n-id="scroll_wrapped_label">Wrapped Scrolling</span>
|
197
|
+
</button>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
<div class="horizontalToolbarSeparator"></div>
|
201
|
+
|
202
|
+
<div id="spreadModeButtons" role="radiogroup">
|
203
|
+
<button id="spreadNone" class="secondaryToolbarButton toggled" title="Do not join page spreads" tabindex="66" data-l10n-id="spread_none" role="radio" aria-checked="true">
|
204
|
+
<span data-l10n-id="spread_none_label">No Spreads</span>
|
205
|
+
</button>
|
206
|
+
<button id="spreadOdd" class="secondaryToolbarButton" title="Join page spreads starting with odd-numbered pages" tabindex="67" data-l10n-id="spread_odd" role="radio" aria-checked="false">
|
207
|
+
<span data-l10n-id="spread_odd_label">Odd Spreads</span>
|
208
|
+
</button>
|
209
|
+
<button id="spreadEven" class="secondaryToolbarButton" title="Join page spreads starting with even-numbered pages" tabindex="68" data-l10n-id="spread_even" role="radio" aria-checked="false">
|
210
|
+
<span data-l10n-id="spread_even_label">Even Spreads</span>
|
211
|
+
</button>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
<div class="horizontalToolbarSeparator"></div>
|
215
|
+
|
216
|
+
<button id="documentProperties" class="secondaryToolbarButton" title="Document Properties…" tabindex="69" data-l10n-id="document_properties" aria-controls="documentPropertiesDialog">
|
217
|
+
<span data-l10n-id="document_properties_label">Document Properties…</span>
|
218
|
+
</button>
|
219
|
+
</div>
|
220
|
+
</div> <!-- secondaryToolbar -->
|
221
|
+
|
222
|
+
<div class="toolbar">
|
223
|
+
<div id="toolbarContainer">
|
224
|
+
<div id="toolbarViewer">
|
225
|
+
<div id="toolbarViewerLeft">
|
226
|
+
<button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar" aria-expanded="false" aria-controls="sidebarContainer">
|
227
|
+
<span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
|
228
|
+
</button>
|
229
|
+
<div class="toolbarButtonSpacer"></div>
|
230
|
+
<button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar" aria-expanded="false" aria-controls="findbar">
|
231
|
+
<span data-l10n-id="findbar_label">Find</span>
|
232
|
+
</button>
|
233
|
+
<div class="splitToolbarButton hiddenSmallView">
|
234
|
+
<button class="toolbarButton" title="Previous Page" id="previous" tabindex="13" data-l10n-id="previous">
|
235
|
+
<span data-l10n-id="previous_label">Previous</span>
|
236
|
+
</button>
|
237
|
+
<div class="splitToolbarButtonSeparator"></div>
|
238
|
+
<button class="toolbarButton" title="Next Page" id="next" tabindex="14" data-l10n-id="next">
|
239
|
+
<span data-l10n-id="next_label">Next</span>
|
240
|
+
</button>
|
241
|
+
</div>
|
242
|
+
<input type="number" id="pageNumber" class="toolbarField" title="Page" value="1" min="1" tabindex="15" data-l10n-id="page" autocomplete="off">
|
243
|
+
<span id="numPages" class="toolbarLabel"></span>
|
244
|
+
</div>
|
245
|
+
<div id="toolbarViewerRight">
|
246
|
+
<div class="splitToolbarButton">
|
247
|
+
<button id="zoomOut" class="toolbarButton" title="Zoom Out" tabindex="21" data-l10n-id="zoom_out">
|
248
|
+
<span data-l10n-id="zoom_out_label">Zoom Out</span>
|
249
|
+
</button>
|
250
|
+
<div class="splitToolbarButtonSeparator"></div>
|
251
|
+
<button id="zoomIn" class="toolbarButton" title="Zoom In" tabindex="22" data-l10n-id="zoom_in">
|
252
|
+
<span data-l10n-id="zoom_in_label">Zoom In</span>
|
253
|
+
</button>
|
254
|
+
</div>
|
255
|
+
<span id="scaleSelectContainer" class="dropdownToolbarButton">
|
256
|
+
<select id="scaleSelect" title="Zoom" tabindex="23" data-l10n-id="zoom">
|
257
|
+
<option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option>
|
258
|
+
<option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option>
|
259
|
+
<option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Page Fit</option>
|
260
|
+
<option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Page Width</option>
|
261
|
+
<option id="customScaleOption" title="" value="custom" disabled="disabled" hidden="true"></option>
|
262
|
+
<option title="" value="0.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 50 }'>50%</option>
|
263
|
+
<option title="" value="0.75" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 75 }'>75%</option>
|
264
|
+
<option title="" value="1" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 100 }'>100%</option>
|
265
|
+
<option title="" value="1.25" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 125 }'>125%</option>
|
266
|
+
<option title="" value="1.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 150 }'>150%</option>
|
267
|
+
<option title="" value="2" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 200 }'>200%</option>
|
268
|
+
<option title="" value="3" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 300 }'>300%</option>
|
269
|
+
<option title="" value="4" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 400 }'>400%</option>
|
270
|
+
</select>
|
271
|
+
</span>
|
272
|
+
|
273
|
+
<div class="verticalToolbarSeparator hiddenMediumView"></div>
|
274
|
+
|
275
|
+
<button id="openFile" class="toolbarButton hiddenLargeView" title="Open File" tabindex="31" data-l10n-id="open_file">
|
276
|
+
<span data-l10n-id="open_file_label">Open</span>
|
277
|
+
</button>
|
278
|
+
|
279
|
+
<button id="print" class="toolbarButton hiddenMediumView" title="Print" tabindex="32" data-l10n-id="print">
|
280
|
+
<span data-l10n-id="print_label">Print</span>
|
281
|
+
</button>
|
282
|
+
|
283
|
+
<button id="download" class="toolbarButton hiddenMediumView" title="Save" tabindex="33" data-l10n-id="save">
|
284
|
+
<span data-l10n-id="save_label">Save</span>
|
285
|
+
</button>
|
286
|
+
|
287
|
+
<div class="verticalToolbarSeparator hiddenMediumView"></div>
|
288
|
+
|
289
|
+
<div id="editorModeButtons" class="splitToolbarButton toggled" role="radiogroup">
|
290
|
+
<button id="editorFreeText" class="toolbarButton" disabled="disabled" title="Text" role="radio" aria-checked="false" tabindex="34" data-l10n-id="editor_free_text2">
|
291
|
+
<span data-l10n-id="editor_free_text2_label">Text</span>
|
292
|
+
</button>
|
293
|
+
<button id="editorInk" class="toolbarButton" disabled="disabled" title="Draw" role="radio" aria-checked="false" tabindex="35" data-l10n-id="editor_ink2">
|
294
|
+
<span data-l10n-id="editor_ink2_label">Draw</span>
|
295
|
+
</button>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
<button id="fullscreenButton" onclick="toggleFullscreen()"
|
299
|
+
data-fullscreen="<%= t("decidim.participatory_documents.suggestions.modal.full_screen") %>"
|
300
|
+
data-exit="<%= t("decidim.participatory_documents.suggestions.modal.exit_full_screen") %>">
|
301
|
+
<%= t("decidim.participatory_documents.suggestions.modal.full_screen") %>
|
302
|
+
</button>
|
303
|
+
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="48" data-l10n-id="tools" aria-expanded="false" aria-controls="secondaryToolbar">
|
304
|
+
<span data-l10n-id="tools_label">Tools</span>
|
305
|
+
</button>
|
306
|
+
</div>
|
307
|
+
<div id="toolbarViewerMiddle">
|
308
|
+
<% if defined?(displaySave) && displaySave == true %>
|
309
|
+
<button id="DecidimPDSaveButton" class="decidimButton" title="<%= t "save_changes", scope: "decidim.participatory_documents.document" %>">
|
310
|
+
<%= t "save_changes", scope: "decidim.participatory_documents.document" %>
|
311
|
+
</button>
|
312
|
+
<% end %>
|
313
|
+
<% if defined?(globalSuggestions) && globalSuggestions == true %>
|
314
|
+
<button id="globalSuggestionTrigger" class="decidimButton" title="<%= t "global_suggestions", scope: "decidim.participatory_documents.document" %>">
|
315
|
+
<%= t "global_suggestions", scope: "decidim.participatory_documents.document" %>
|
316
|
+
</button>
|
317
|
+
<% end %>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
<div id="loadingBar">
|
321
|
+
<div class="progress">
|
322
|
+
<div class="glimmer">
|
323
|
+
</div>
|
324
|
+
</div>
|
325
|
+
</div>
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
|
329
|
+
<div id="viewerContainer" tabindex="0">
|
330
|
+
<div id="viewer" class="pdfViewer"></div>
|
331
|
+
</div>
|
332
|
+
</div> <!-- mainContainer -->
|
333
|
+
|
334
|
+
<div id="dialogContainer">
|
335
|
+
<dialog id="passwordDialog">
|
336
|
+
<div class="row">
|
337
|
+
<label for="password" id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</label>
|
338
|
+
</div>
|
339
|
+
<div class="row">
|
340
|
+
<input type="password" id="password" class="toolbarField">
|
341
|
+
</div>
|
342
|
+
<div class="buttonRow">
|
343
|
+
<button id="passwordCancel" class="dialogButton"><span data-l10n-id="password_cancel">Cancel</span></button>
|
344
|
+
<button id="passwordSubmit" class="dialogButton"><span data-l10n-id="password_ok">OK</span></button>
|
345
|
+
</div>
|
346
|
+
</dialog>
|
347
|
+
<dialog id="documentPropertiesDialog">
|
348
|
+
<div class="row">
|
349
|
+
<span id="fileNameLabel" data-l10n-id="document_properties_file_name">File name:</span>
|
350
|
+
<p id="fileNameField" aria-labelledby="fileNameLabel">-</p>
|
351
|
+
</div>
|
352
|
+
<div class="row">
|
353
|
+
<span id="fileSizeLabel" data-l10n-id="document_properties_file_size">File size:</span>
|
354
|
+
<p id="fileSizeField" aria-labelledby="fileSizeLabel">-</p>
|
355
|
+
</div>
|
356
|
+
<div class="separator"></div>
|
357
|
+
<div class="row">
|
358
|
+
<span id="titleLabel" data-l10n-id="document_properties_title">Title:</span>
|
359
|
+
<p id="titleField" aria-labelledby="titleLabel">-</p>
|
360
|
+
</div>
|
361
|
+
<div class="row">
|
362
|
+
<span id="authorLabel" data-l10n-id="document_properties_author">Author:</span>
|
363
|
+
<p id="authorField" aria-labelledby="authorLabel">-</p>
|
364
|
+
</div>
|
365
|
+
<div class="row">
|
366
|
+
<span id="subjectLabel" data-l10n-id="document_properties_subject">Subject:</span>
|
367
|
+
<p id="subjectField" aria-labelledby="subjectLabel">-</p>
|
368
|
+
</div>
|
369
|
+
<div class="row">
|
370
|
+
<span id="keywordsLabel" data-l10n-id="document_properties_keywords">Keywords:</span>
|
371
|
+
<p id="keywordsField" aria-labelledby="keywordsLabel">-</p>
|
372
|
+
</div>
|
373
|
+
<div class="row">
|
374
|
+
<span id="creationDateLabel" data-l10n-id="document_properties_creation_date">Creation Date:</span>
|
375
|
+
<p id="creationDateField" aria-labelledby="creationDateLabel">-</p>
|
376
|
+
</div>
|
377
|
+
<div class="row">
|
378
|
+
<span id="modificationDateLabel" data-l10n-id="document_properties_modification_date">Modification Date:</span>
|
379
|
+
<p id="modificationDateField" aria-labelledby="modificationDateLabel">-</p>
|
380
|
+
</div>
|
381
|
+
<div class="row">
|
382
|
+
<span id="creatorLabel" data-l10n-id="document_properties_creator">Creator:</span>
|
383
|
+
<p id="creatorField" aria-labelledby="creatorLabel">-</p>
|
384
|
+
</div>
|
385
|
+
<div class="separator"></div>
|
386
|
+
<div class="row">
|
387
|
+
<span id="producerLabel" data-l10n-id="document_properties_producer">PDF Producer:</span>
|
388
|
+
<p id="producerField" aria-labelledby="producerLabel">-</p>
|
389
|
+
</div>
|
390
|
+
<div class="row">
|
391
|
+
<span id="versionLabel" data-l10n-id="document_properties_version">PDF Version:</span>
|
392
|
+
<p id="versionField" aria-labelledby="versionLabel">-</p>
|
393
|
+
</div>
|
394
|
+
<div class="row">
|
395
|
+
<span id="pageCountLabel" data-l10n-id="document_properties_page_count">Page Count:</span>
|
396
|
+
<p id="pageCountField" aria-labelledby="pageCountLabel">-</p>
|
397
|
+
</div>
|
398
|
+
<div class="row">
|
399
|
+
<span id="pageSizeLabel" data-l10n-id="document_properties_page_size">Page Size:</span>
|
400
|
+
<p id="pageSizeField" aria-labelledby="pageSizeLabel">-</p>
|
401
|
+
</div>
|
402
|
+
<div class="separator"></div>
|
403
|
+
<div class="row">
|
404
|
+
<span id="linearizedLabel" data-l10n-id="document_properties_linearized">Fast Web View:</span>
|
405
|
+
<p id="linearizedField" aria-labelledby="linearizedLabel">-</p>
|
406
|
+
</div>
|
407
|
+
<div class="buttonRow">
|
408
|
+
<button id="documentPropertiesClose" class="dialogButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
409
|
+
</div>
|
410
|
+
</dialog>
|
411
|
+
<dialog id="printServiceDialog" style="min-width: 200px;">
|
412
|
+
<div class="row">
|
413
|
+
<span data-l10n-id="print_progress_message">Preparing document for printing…</span>
|
414
|
+
</div>
|
415
|
+
<div class="row">
|
416
|
+
<progress value="0" max="100"></progress>
|
417
|
+
<span data-l10n-id="print_progress_percent" data-l10n-args='{ "progress": 0 }' class="relative-progress">0%</span>
|
418
|
+
</div>
|
419
|
+
<div class="buttonRow">
|
420
|
+
<button id="printCancel" class="dialogButton"><span data-l10n-id="print_progress_close">Cancel</span></button>
|
421
|
+
</div>
|
422
|
+
</dialog>
|
423
|
+
</div> <!-- dialogContainer -->
|
424
|
+
|
425
|
+
</div> <!-- outerContainer -->
|
426
|
+
<div id="printContainer"></div>
|
427
|
+
|
428
|
+
<input type="file" id="fileInput" class="hidden">
|