igs-slm 0.1.0b0__py3-none-any.whl
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.
- igs_slm-0.1.0b0.dist-info/LICENSE +21 -0
- igs_slm-0.1.0b0.dist-info/METADATA +151 -0
- igs_slm-0.1.0b0.dist-info/RECORD +447 -0
- igs_slm-0.1.0b0.dist-info/WHEEL +4 -0
- igs_slm-0.1.0b0.dist-info/entry_points.txt +3 -0
- igs_tools/__init__.py +0 -0
- igs_tools/connection.py +88 -0
- igs_tools/defines/__init__.py +8 -0
- igs_tools/defines/constellation.py +21 -0
- igs_tools/defines/data_center.py +75 -0
- igs_tools/defines/rinex.py +49 -0
- igs_tools/directory.py +247 -0
- igs_tools/utils.py +66 -0
- slm/__init__.py +21 -0
- slm/admin.py +674 -0
- slm/api/edit/__init__.py +0 -0
- slm/api/edit/serializers.py +316 -0
- slm/api/edit/views.py +1632 -0
- slm/api/fields.py +89 -0
- slm/api/filter.py +504 -0
- slm/api/pagination.py +55 -0
- slm/api/permissions.py +65 -0
- slm/api/public/__init__.py +0 -0
- slm/api/public/serializers.py +249 -0
- slm/api/public/views.py +606 -0
- slm/api/serializers.py +132 -0
- slm/api/views.py +148 -0
- slm/apps.py +323 -0
- slm/authentication.py +198 -0
- slm/bin/__init__.py +0 -0
- slm/bin/startproject.py +262 -0
- slm/bin/templates/{{ project_dir }}/pyproject.toml +35 -0
- slm/bin/templates/{{ project_dir }}/sites/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/base.py +15 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/__init__.py +56 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/local.py +4 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/wsgi.py +16 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/manage.py +34 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/production/__init__.py +61 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/production/wsgi.py +16 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/urls.py +7 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/validation.py +11 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/admin.py +5 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/apps.py +14 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/commands/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/commands/import_archive.py +64 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/migrations/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/models.py +6 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/templates/slm/base.html +8 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/urls.py +10 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/views.py +5 -0
- slm/defines/AlertLevel.py +24 -0
- slm/defines/AntennaCalibration.py +25 -0
- slm/defines/AntennaFeatures.py +27 -0
- slm/defines/AntennaReferencePoint.py +22 -0
- slm/defines/Aspiration.py +13 -0
- slm/defines/CardinalDirection.py +19 -0
- slm/defines/CollocationStatus.py +12 -0
- slm/defines/EquipmentState.py +22 -0
- slm/defines/FlagSeverity.py +14 -0
- slm/defines/FractureSpacing.py +15 -0
- slm/defines/FrequencyStandardType.py +15 -0
- slm/defines/GeodesyMLVersion.py +48 -0
- slm/defines/ISOCountry.py +1194 -0
- slm/defines/Instrumentation.py +19 -0
- slm/defines/LogEntryType.py +30 -0
- slm/defines/SLMFileType.py +18 -0
- slm/defines/SiteFileUploadStatus.py +61 -0
- slm/defines/SiteLogFormat.py +49 -0
- slm/defines/SiteLogStatus.py +78 -0
- slm/defines/TectonicPlates.py +28 -0
- slm/defines/__init__.py +46 -0
- slm/forms.py +1126 -0
- slm/jinja2/slm/sitelog/ascii_9char.log +346 -0
- slm/jinja2/slm/sitelog/legacy.log +346 -0
- slm/jinja2/slm/sitelog/xsd/0.4/collocationInformation.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/condition.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/contact.xml +52 -0
- slm/jinja2/slm/sitelog/xsd/0.4/formInformation.xml +5 -0
- slm/jinja2/slm/sitelog/xsd/0.4/frequencyStandard.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/gnssAntenna.xml +16 -0
- slm/jinja2/slm/sitelog/xsd/0.4/gnssReceiver.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.4/humiditySensor.xml +13 -0
- slm/jinja2/slm/sitelog/xsd/0.4/localEpisodicEffect.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/moreInformation.xml +22 -0
- slm/jinja2/slm/sitelog/xsd/0.4/multipathSource.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/otherInstrumentation.xml +5 -0
- slm/jinja2/slm/sitelog/xsd/0.4/pressureSensor.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/radioInterference.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.4/sensor.xml +16 -0
- slm/jinja2/slm/sitelog/xsd/0.4/signalObstruction.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/siteIdentification.xml +22 -0
- slm/jinja2/slm/sitelog/xsd/0.4/siteLocation.xml +21 -0
- slm/jinja2/slm/sitelog/xsd/0.4/surveyedLocalTie.xml +20 -0
- slm/jinja2/slm/sitelog/xsd/0.4/temperatureSensor.xml +13 -0
- slm/jinja2/slm/sitelog/xsd/0.4/waterVaporSensor.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.5/document.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/geodesyml_0.4.xml +99 -0
- slm/jinja2/slm/sitelog/xsd/geodesyml_0.5.xml +112 -0
- slm/management/__init__.py +0 -0
- slm/management/commands/__init__.py +53 -0
- slm/management/commands/build_index.py +96 -0
- slm/management/commands/generate_sinex.py +675 -0
- slm/management/commands/head_from_index.py +541 -0
- slm/management/commands/import_archive.py +908 -0
- slm/management/commands/import_equipment.py +351 -0
- slm/management/commands/set_site.py +56 -0
- slm/management/commands/sitelog.py +144 -0
- slm/management/commands/synchronize.py +60 -0
- slm/management/commands/update_data_availability.py +167 -0
- slm/management/commands/validate_db.py +186 -0
- slm/management/commands/validate_gml.py +73 -0
- slm/map/__init__.py +1 -0
- slm/map/admin.py +5 -0
- slm/map/api/__init__.py +0 -0
- slm/map/api/edit/__init__.py +0 -0
- slm/map/api/edit/serializers.py +28 -0
- slm/map/api/edit/views.py +46 -0
- slm/map/api/public/__init__.py +0 -0
- slm/map/api/public/serializers.py +29 -0
- slm/map/api/public/views.py +64 -0
- slm/map/apps.py +7 -0
- slm/map/defines.py +53 -0
- slm/map/migrations/0001_initial.py +115 -0
- slm/map/migrations/__init__.py +0 -0
- slm/map/models.py +63 -0
- slm/map/static/slm/css/map.css +86 -0
- slm/map/static/slm/js/map.js +159 -0
- slm/map/templates/slm/map.html +374 -0
- slm/map/templates/slm/station/base.html +11 -0
- slm/map/templates/slm/station/edit.html +10 -0
- slm/map/templates/slm/top_nav.html +17 -0
- slm/map/templatetags/__init__.py +0 -0
- slm/map/templatetags/slm_map.py +18 -0
- slm/map/urls.py +25 -0
- slm/map/views.py +36 -0
- slm/middleware.py +29 -0
- slm/migrations/0001_alter_siteantenna_marker_enu_alter_sitelocation_llh_and_more.py +47 -0
- slm/migrations/0001_initial.py +4826 -0
- slm/migrations/0002_alter_dataavailability_site.py +22 -0
- slm/migrations/0003_remove_logentry_slm_logentr_site_lo_7a2af7_idx_and_more.py +80 -0
- slm/migrations/0004_alter_logentry_timestamp_and_more.py +25 -0
- slm/migrations/0005_alter_logentry_options_alter_logentry_section_and_more.py +46 -0
- slm/migrations/0006_alter_logentry_options_alter_logentry_index_together.py +24 -0
- slm/migrations/0007_alter_dataavailability_rate.py +23 -0
- slm/migrations/0008_alter_archiveindex_options_and_more.py +64 -0
- slm/migrations/0009_alter_archiveindex_end.py +21 -0
- slm/migrations/0010_alter_dataavailability_rinex_version_and_more.py +844 -0
- slm/migrations/0011_alter_siteidentification_fracture_spacing.py +33 -0
- slm/migrations/0012_alter_logentry_type.py +36 -0
- slm/migrations/0013_unpublishedfilesalert.py +48 -0
- slm/migrations/0014_sitelogpublished.py +48 -0
- slm/migrations/0015_alter_siteantenna_options_and_more.py +181 -0
- slm/migrations/0016_alter_antenna_description_alter_radome_description_and_more.py +42 -0
- slm/migrations/0017_alter_logentry_unique_together_and_more.py +54 -0
- slm/migrations/0018_afix_deleted.py +34 -0
- slm/migrations/0018_alter_siteantenna_options_and_more.py +244 -0
- slm/migrations/0019_remove_siteantenna_marker_enu_siteantenna_marker_une_and_more.py +101 -0
- slm/migrations/0020_alter_manufacturer_options.py +16 -0
- slm/migrations/0021_alter_siteform_report_type.py +23 -0
- slm/migrations/0022_rename_antcal_antenna_radome_slm_antcal_antenna_20827a_idx_and_more.py +297 -0
- slm/migrations/0023_archivedsitelog_gml_version_and_more.py +55 -0
- slm/migrations/0024_alter_agency_name_alter_agency_shortname.py +24 -0
- slm/migrations/0025_alter_archivedsitelog_log_format_and_more.py +61 -0
- slm/migrations/0026_alter_archivedsitelog_log_format_and_more.py +61 -0
- slm/migrations/0027_importalert_file_contents_importalert_findings_and_more.py +41 -0
- slm/migrations/0028_antenna_replaced_manufacturer_url_radome_replaced_and_more.py +46 -0
- slm/migrations/0029_manufacturer_full_name.py +17 -0
- slm/migrations/0030_alter_antenna_state_alter_radome_state_and_more.py +43 -0
- slm/migrations/__init__.py +0 -0
- slm/migrations/load_satellitesystems.py +27 -0
- slm/models/__init__.py +118 -0
- slm/models/about.py +14 -0
- slm/models/alerts.py +1204 -0
- slm/models/data.py +58 -0
- slm/models/equipment.py +229 -0
- slm/models/help.py +14 -0
- slm/models/index.py +428 -0
- slm/models/sitelog.py +4279 -0
- slm/models/system.py +723 -0
- slm/models/user.py +304 -0
- slm/parsing/__init__.py +786 -0
- slm/parsing/legacy/__init__.py +4 -0
- slm/parsing/legacy/binding.py +817 -0
- slm/parsing/legacy/parser.py +377 -0
- slm/parsing/xsd/__init__.py +34 -0
- slm/parsing/xsd/binding.py +86 -0
- slm/parsing/xsd/geodesyml/0.4/commonTypes.xsd +133 -0
- slm/parsing/xsd/geodesyml/0.4/contact.xsd +29 -0
- slm/parsing/xsd/geodesyml/0.4/dataStreams.xsd +129 -0
- slm/parsing/xsd/geodesyml/0.4/document.xsd +64 -0
- slm/parsing/xsd/geodesyml/0.4/equipment.xsd +427 -0
- slm/parsing/xsd/geodesyml/0.4/fieldMeasurement.xsd +170 -0
- slm/parsing/xsd/geodesyml/0.4/geodesyML.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.4/geodeticEquipment.xsd +343 -0
- slm/parsing/xsd/geodesyml/0.4/geodeticMonument.xsd +147 -0
- slm/parsing/xsd/geodesyml/0.4/lineage.xsd +614 -0
- slm/parsing/xsd/geodesyml/0.4/localInterferences.xsd +131 -0
- slm/parsing/xsd/geodesyml/0.4/measurement.xsd +473 -0
- slm/parsing/xsd/geodesyml/0.4/monumentInfo.xsd +251 -0
- slm/parsing/xsd/geodesyml/0.4/observationSystem.xsd +429 -0
- slm/parsing/xsd/geodesyml/0.4/project.xsd +38 -0
- slm/parsing/xsd/geodesyml/0.4/quality.xsd +176 -0
- slm/parsing/xsd/geodesyml/0.4/referenceFrame.xsd +194 -0
- slm/parsing/xsd/geodesyml/0.4/siteLog.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.5/commonTypes.xsd +133 -0
- slm/parsing/xsd/geodesyml/0.5/contact.xsd +29 -0
- slm/parsing/xsd/geodesyml/0.5/dataStreams.xsd +129 -0
- slm/parsing/xsd/geodesyml/0.5/document.xsd +64 -0
- slm/parsing/xsd/geodesyml/0.5/equipment.xsd +427 -0
- slm/parsing/xsd/geodesyml/0.5/fieldMeasurement.xsd +170 -0
- slm/parsing/xsd/geodesyml/0.5/geodesyML.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.5/geodeticEquipment.xsd +343 -0
- slm/parsing/xsd/geodesyml/0.5/geodeticMonument.xsd +147 -0
- slm/parsing/xsd/geodesyml/0.5/lineage.xsd +614 -0
- slm/parsing/xsd/geodesyml/0.5/localInterferences.xsd +131 -0
- slm/parsing/xsd/geodesyml/0.5/measurement.xsd +473 -0
- slm/parsing/xsd/geodesyml/0.5/monumentInfo.xsd +306 -0
- slm/parsing/xsd/geodesyml/0.5/observationSystem.xsd +429 -0
- slm/parsing/xsd/geodesyml/0.5/project.xsd +38 -0
- slm/parsing/xsd/geodesyml/0.5/quality.xsd +176 -0
- slm/parsing/xsd/geodesyml/0.5/referenceFrame.xsd +194 -0
- slm/parsing/xsd/geodesyml/0.5/siteLog.xsd +73 -0
- slm/parsing/xsd/parser.py +116 -0
- slm/parsing/xsd/resolver.py +28 -0
- slm/receivers/__init__.py +11 -0
- slm/receivers/alerts.py +87 -0
- slm/receivers/cleanup.py +41 -0
- slm/receivers/event_loggers.py +175 -0
- slm/receivers/index.py +67 -0
- slm/settings/__init__.py +55 -0
- slm/settings/auth.py +15 -0
- slm/settings/ckeditor.py +14 -0
- slm/settings/debug.py +47 -0
- slm/settings/internationalization.py +12 -0
- slm/settings/logging.py +113 -0
- slm/settings/platform/__init__.py +0 -0
- slm/settings/platform/darwin.py +10 -0
- slm/settings/rest.py +21 -0
- slm/settings/root.py +152 -0
- slm/settings/routines.py +43 -0
- slm/settings/secrets.py +37 -0
- slm/settings/security.py +5 -0
- slm/settings/slm.py +188 -0
- slm/settings/static_templates.py +53 -0
- slm/settings/templates.py +29 -0
- slm/settings/uploads.py +8 -0
- slm/settings/urls.py +126 -0
- slm/settings/validation.py +196 -0
- slm/signals.py +250 -0
- slm/singleton.py +49 -0
- slm/static/rest_framework/css/bootstrap-tweaks.css +204 -0
- slm/static/rest_framework/css/bootstrap.min.css +7 -0
- slm/static/rest_framework/css/bootstrap.min.css.map +1 -0
- slm/static/rest_framework/css/default.css +82 -0
- slm/static/rest_framework/css/prettify.css +30 -0
- slm/static/rest_framework/docs/css/base.css +344 -0
- slm/static/rest_framework/docs/css/highlight.css +125 -0
- slm/static/rest_framework/docs/css/jquery.json-view.min.css +11 -0
- slm/static/rest_framework/docs/img/favicon.ico +0 -0
- slm/static/rest_framework/docs/img/grid.png +0 -0
- slm/static/rest_framework/docs/js/api.js +321 -0
- slm/static/rest_framework/docs/js/highlight.pack.js +2 -0
- slm/static/rest_framework/docs/js/jquery.json-view.min.js +7 -0
- slm/static/rest_framework/img/grid.png +0 -0
- slm/static/rest_framework/js/ajax-form.js +127 -0
- slm/static/rest_framework/js/bootstrap.bundle.min.js +7 -0
- slm/static/rest_framework/js/bootstrap.bundle.min.js.map +1 -0
- slm/static/rest_framework/js/bootstrap.min.js.map +1 -0
- slm/static/rest_framework/js/coreapi-0.1.1.js +2043 -0
- slm/static/rest_framework/js/csrf.js +52 -0
- slm/static/rest_framework/js/default.js +47 -0
- slm/static/rest_framework/js/jquery-3.5.1.min.js +2 -0
- slm/static/rest_framework/js/prettify-min.js +28 -0
- slm/static/slm/css/admin.css +3 -0
- slm/static/slm/css/defines.css +82 -0
- slm/static/slm/css/forms.css +1 -0
- slm/static/slm/css/style.css +1004 -0
- slm/static/slm/img/email-branding.png +0 -0
- slm/static/slm/img/favicon.ico +0 -0
- slm/static/slm/img/login-bg.jpg +0 -0
- slm/static/slm/img/slm-logo.svg +4 -0
- slm/static/slm/js/autocomplete.js +341 -0
- slm/static/slm/js/enums.js +322 -0
- slm/static/slm/js/fileIcons.js +30 -0
- slm/static/slm/js/form.js +404 -0
- slm/static/slm/js/formWidget.js +23 -0
- slm/static/slm/js/persistable.js +33 -0
- slm/static/slm/js/slm.js +1028 -0
- slm/static/slm/js/time24.js +212 -0
- slm/static_templates/slm/css/defines.css +26 -0
- slm/static_templates/slm/js/enums.js +28 -0
- slm/static_templates/slm/js/fileIcons.js +16 -0
- slm/static_templates/slm/js/urls.js +5 -0
- slm/templates/account/base.html +20 -0
- slm/templates/account/email/base.html +43 -0
- slm/templates/account/email/base_message.txt +7 -0
- slm/templates/account/email/email_confirmation_message.html +16 -0
- slm/templates/account/email/email_confirmation_message.txt +7 -0
- slm/templates/account/email/email_confirmation_signup_message.html +1 -0
- slm/templates/account/email/email_confirmation_signup_message.txt +1 -0
- slm/templates/account/email/email_confirmation_signup_subject.txt +1 -0
- slm/templates/account/email/email_confirmation_subject.txt +4 -0
- slm/templates/account/email/password_reset_key_message.html +28 -0
- slm/templates/account/email/password_reset_key_message.txt +9 -0
- slm/templates/account/email/password_reset_key_subject.txt +4 -0
- slm/templates/account/email/unknown_account_message.html +25 -0
- slm/templates/account/email/unknown_account_message.txt +12 -0
- slm/templates/account/email/unknown_account_subject.txt +4 -0
- slm/templates/account/login.html +67 -0
- slm/templates/account/logout.html +38 -0
- slm/templates/account/password_change.html +48 -0
- slm/templates/account/password_reset.html +51 -0
- slm/templates/account/password_reset_done.html +20 -0
- slm/templates/account/password_reset_from_key.html +52 -0
- slm/templates/account/password_reset_from_key_done.html +17 -0
- slm/templates/admin/base.html +7 -0
- slm/templates/messages.html +8 -0
- slm/templates/rest_framework/README +16 -0
- slm/templates/rest_framework/admin/detail.html +10 -0
- slm/templates/rest_framework/admin/dict_value.html +11 -0
- slm/templates/rest_framework/admin/list.html +32 -0
- slm/templates/rest_framework/admin/list_value.html +11 -0
- slm/templates/rest_framework/admin/simple_list_value.html +2 -0
- slm/templates/rest_framework/admin.html +282 -0
- slm/templates/rest_framework/api.html +3 -0
- slm/templates/rest_framework/base.html +334 -0
- slm/templates/rest_framework/docs/auth/basic.html +42 -0
- slm/templates/rest_framework/docs/auth/session.html +40 -0
- slm/templates/rest_framework/docs/auth/token.html +41 -0
- slm/templates/rest_framework/docs/document.html +37 -0
- slm/templates/rest_framework/docs/error.html +71 -0
- slm/templates/rest_framework/docs/index.html +55 -0
- slm/templates/rest_framework/docs/interact.html +57 -0
- slm/templates/rest_framework/docs/langs/javascript-intro.html +5 -0
- slm/templates/rest_framework/docs/langs/javascript.html +15 -0
- slm/templates/rest_framework/docs/langs/python-intro.html +3 -0
- slm/templates/rest_framework/docs/langs/python.html +13 -0
- slm/templates/rest_framework/docs/langs/shell-intro.html +3 -0
- slm/templates/rest_framework/docs/langs/shell.html +6 -0
- slm/templates/rest_framework/docs/link.html +113 -0
- slm/templates/rest_framework/docs/sidebar.html +78 -0
- slm/templates/rest_framework/filters/base.html +16 -0
- slm/templates/rest_framework/filters/ordering.html +17 -0
- slm/templates/rest_framework/filters/search.html +13 -0
- slm/templates/rest_framework/horizontal/checkbox.html +23 -0
- slm/templates/rest_framework/horizontal/checkbox_multiple.html +32 -0
- slm/templates/rest_framework/horizontal/dict_field.html +11 -0
- slm/templates/rest_framework/horizontal/fieldset.html +16 -0
- slm/templates/rest_framework/horizontal/form.html +6 -0
- slm/templates/rest_framework/horizontal/input.html +21 -0
- slm/templates/rest_framework/horizontal/list_field.html +11 -0
- slm/templates/rest_framework/horizontal/list_fieldset.html +13 -0
- slm/templates/rest_framework/horizontal/radio.html +42 -0
- slm/templates/rest_framework/horizontal/select.html +36 -0
- slm/templates/rest_framework/horizontal/select_multiple.html +38 -0
- slm/templates/rest_framework/horizontal/textarea.html +21 -0
- slm/templates/rest_framework/inline/checkbox.html +8 -0
- slm/templates/rest_framework/inline/checkbox_multiple.html +14 -0
- slm/templates/rest_framework/inline/dict_field.html +9 -0
- slm/templates/rest_framework/inline/fieldset.html +6 -0
- slm/templates/rest_framework/inline/form.html +8 -0
- slm/templates/rest_framework/inline/input.html +9 -0
- slm/templates/rest_framework/inline/list_field.html +9 -0
- slm/templates/rest_framework/inline/list_fieldset.html +3 -0
- slm/templates/rest_framework/inline/radio.html +25 -0
- slm/templates/rest_framework/inline/select.html +24 -0
- slm/templates/rest_framework/inline/select_multiple.html +25 -0
- slm/templates/rest_framework/inline/textarea.html +9 -0
- slm/templates/rest_framework/login.html +3 -0
- slm/templates/rest_framework/login_base.html +65 -0
- slm/templates/rest_framework/pagination/numbers.html +47 -0
- slm/templates/rest_framework/pagination/previous_and_next.html +21 -0
- slm/templates/rest_framework/raw_data_form.html +11 -0
- slm/templates/rest_framework/schema.js +3 -0
- slm/templates/rest_framework/vertical/checkbox.html +16 -0
- slm/templates/rest_framework/vertical/checkbox_multiple.html +30 -0
- slm/templates/rest_framework/vertical/dict_field.html +7 -0
- slm/templates/rest_framework/vertical/fieldset.html +13 -0
- slm/templates/rest_framework/vertical/form.html +6 -0
- slm/templates/rest_framework/vertical/input.html +17 -0
- slm/templates/rest_framework/vertical/list_field.html +7 -0
- slm/templates/rest_framework/vertical/list_fieldset.html +7 -0
- slm/templates/rest_framework/vertical/radio.html +40 -0
- slm/templates/rest_framework/vertical/select.html +34 -0
- slm/templates/rest_framework/vertical/select_multiple.html +31 -0
- slm/templates/rest_framework/vertical/textarea.html +17 -0
- slm/templates/slm/about.html +21 -0
- slm/templates/slm/alerts/alert.html +15 -0
- slm/templates/slm/alerts/geodesymlinvalid.html +8 -0
- slm/templates/slm/alerts/importalert.html +10 -0
- slm/templates/slm/alerts.html +18 -0
- slm/templates/slm/auth_menu.html +41 -0
- slm/templates/slm/base.html +195 -0
- slm/templates/slm/emails/alert_issued.html +31 -0
- slm/templates/slm/emails/alert_issued.txt +9 -0
- slm/templates/slm/emails/base.html +6 -0
- slm/templates/slm/emails/changes_rejected.txt +7 -0
- slm/templates/slm/emails/review_requested.txt +7 -0
- slm/templates/slm/forms/widgets/auto_complete.html +21 -0
- slm/templates/slm/forms/widgets/auto_complete_multiple.html +18 -0
- slm/templates/slm/forms/widgets/checkbox_multiple.html +6 -0
- slm/templates/slm/forms/widgets/inline_multi.html +1 -0
- slm/templates/slm/forms/widgets/splitdatetime.html +14 -0
- slm/templates/slm/forms/widgets/time24.html +37 -0
- slm/templates/slm/help.html +54 -0
- slm/templates/slm/messages.html +13 -0
- slm/templates/slm/new_site.html +88 -0
- slm/templates/slm/profile.html +57 -0
- slm/templates/slm/register.html +40 -0
- slm/templates/slm/reports/file_log.html +43 -0
- slm/templates/slm/reports/head_log.html +23 -0
- slm/templates/slm/reports/head_report.html +55 -0
- slm/templates/slm/reports/index_log.html +23 -0
- slm/templates/slm/reports/index_report.html +71 -0
- slm/templates/slm/station/alert.html +8 -0
- slm/templates/slm/station/alerts.html +19 -0
- slm/templates/slm/station/base.html +104 -0
- slm/templates/slm/station/download.html +87 -0
- slm/templates/slm/station/edit.html +283 -0
- slm/templates/slm/station/form.html +110 -0
- slm/templates/slm/station/log.html +18 -0
- slm/templates/slm/station/review.html +461 -0
- slm/templates/slm/station/upload.html +295 -0
- slm/templates/slm/station/uploads/attachment.html +20 -0
- slm/templates/slm/station/uploads/geodesyml.html +1 -0
- slm/templates/slm/station/uploads/image.html +27 -0
- slm/templates/slm/station/uploads/json.html +0 -0
- slm/templates/slm/station/uploads/legacy.html +77 -0
- slm/templates/slm/top_nav.html +14 -0
- slm/templates/slm/user_activity.html +16 -0
- slm/templates/slm/widgets/alert_scroll.html +135 -0
- slm/templates/slm/widgets/filelist.html +258 -0
- slm/templates/slm/widgets/legend.html +12 -0
- slm/templates/slm/widgets/log_scroll.html +88 -0
- slm/templates/slm/widgets/stationlist.html +233 -0
- slm/templatetags/__init__.py +0 -0
- slm/templatetags/jinja2.py +9 -0
- slm/templatetags/slm.py +459 -0
- slm/urls.py +148 -0
- slm/utils.py +299 -0
- slm/validators.py +297 -0
- slm/views.py +654 -0
- slm/widgets.py +134 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
|
|
3
|
+
Template for alerts page.
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
{% extends "slm/base.html" %}
|
|
7
|
+
{% load widget_tweaks slm i18n compress %}
|
|
8
|
+
|
|
9
|
+
{% block page_content %}
|
|
10
|
+
<div class="container">
|
|
11
|
+
|
|
12
|
+
<div class="d-flex flex-column justify-content-left align-items-left mt-5 my-4">
|
|
13
|
+
<h2>{% trans "Alerts" %}</h2>
|
|
14
|
+
<hr>
|
|
15
|
+
</div>
|
|
16
|
+
{% include 'slm/widgets/alert_scroll.html' %}
|
|
17
|
+
</div>
|
|
18
|
+
{% endblock %}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% block top_menu %}
|
|
2
|
+
<!--
|
|
3
|
+
Template for top menu bar
|
|
4
|
+
-->
|
|
5
|
+
<div class="navbar-collapse collapse w-100" id="collapsingNavbar">
|
|
6
|
+
<ul class="navbar-nav w-100 justify-content-evenly">
|
|
7
|
+
{% include 'slm/top_nav.html' with url_name=request.resolver_match.url_name %}
|
|
8
|
+
</ul>
|
|
9
|
+
<ul class="nav navbar-nav ms-auto w-100 justify-content-end">
|
|
10
|
+
<li class="nav-item dropdown">
|
|
11
|
+
<a class="nav-link" href="{% url 'slm:notifications' %}" aria-label="notifications"><i class="bi bi-bell"></i></a>
|
|
12
|
+
</li>
|
|
13
|
+
<li class="nav-item dropdown">
|
|
14
|
+
<a id="user-dropdown" class="nav-link dropdown-toggle" href="#" id="navbarScrollingDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> {% if user.name %}{{ user.name }}{% else %}{{ user.email }}{% endif %} </a>
|
|
15
|
+
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarScrollingDropdown">
|
|
16
|
+
<!-- User Drop Down -->
|
|
17
|
+
{% if request.user.is_superuser %}
|
|
18
|
+
<li><a class="dropdown-item" href="{% url "admin:index" %}">Admin</a></li>
|
|
19
|
+
<li>
|
|
20
|
+
<hr class="dropdown-divider">
|
|
21
|
+
</li>
|
|
22
|
+
{% endif %}
|
|
23
|
+
<li><a class="dropdown-item" href="{% url "slm:profile" %}">Profile</a></li>
|
|
24
|
+
<li><a class="dropdown-item" href="{% url "account_change_password" %}">Change Password</a></li>
|
|
25
|
+
<li><a class="dropdown-item" href="/changelog">Change Log</a></li>
|
|
26
|
+
<li>
|
|
27
|
+
<hr class="dropdown-divider">
|
|
28
|
+
</li>
|
|
29
|
+
<li><a class="dropdown-item" href="{% url "account_logout" %}">Logout</a></li>
|
|
30
|
+
<!-- Admin only (unfinished)-->
|
|
31
|
+
{% if user.is_admin > 0 %}
|
|
32
|
+
<li>
|
|
33
|
+
<hr class="dropdown-divider">
|
|
34
|
+
</li>
|
|
35
|
+
<li><a class="dropdown-item" href="/#/">Admin Controls</a></li>
|
|
36
|
+
{% endif %}
|
|
37
|
+
</ul>
|
|
38
|
+
</li>
|
|
39
|
+
</ul>
|
|
40
|
+
</div>
|
|
41
|
+
{% endblock %}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
|
|
3
|
+
Base Template
|
|
4
|
+
|
|
5
|
+
NOTES:
|
|
6
|
+
Base template extended into all other templates.
|
|
7
|
+
Allows for efficient preservation of key components.
|
|
8
|
+
|
|
9
|
+
More info:
|
|
10
|
+
https://docs.djangoproject.com/en/3.2/topics/templates/
|
|
11
|
+
|
|
12
|
+
{% endcomment %}
|
|
13
|
+
|
|
14
|
+
{% load static compress %}
|
|
15
|
+
|
|
16
|
+
<!DOCTYPE html>
|
|
17
|
+
<html lang="en">
|
|
18
|
+
<head>
|
|
19
|
+
{% block analytics_head %}
|
|
20
|
+
{% endblock analytics_head %}
|
|
21
|
+
{% block head %}
|
|
22
|
+
<meta charset="UTF-8">
|
|
23
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
24
|
+
<title>SLM 2.0</title>
|
|
25
|
+
|
|
26
|
+
<link rel="shortcut icon" type="image/png" href="{% static 'slm/img/favicon.ico' %}"/>
|
|
27
|
+
|
|
28
|
+
{% block stylesheets %}
|
|
29
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
30
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.3/font/bootstrap-icons.min.css" integrity="sha512-YzwGgFdO1NQw1CZkPoGyRkEnUTxPSbGWXvGiXrWk8IeSqdyci0dEDYdLLjMxq1zCoU0QBa4kHAFiRhUL3z2bow==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
31
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
32
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
33
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">
|
|
34
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/base/jquery-ui.min.css" integrity="sha512-ELV+xyi8IhEApPS/pSj66+Jiw+sOT1Mqkzlh8ExXihe4zfqbWkxPRi8wptXIO9g73FSlhmquFlUOuMSoXz5IRw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
35
|
+
|
|
36
|
+
<!-- https://github.com/lipis/flag-icons -->
|
|
37
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/css/flag-icons.min.css"/>
|
|
38
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" integrity="sha512-H9jrZiiopUdsLpg94A333EfumgUBpO9MdbxStdeITo+KEIMaNfHNvwyjjDJb+ERPaRS6DpyRlKbvPUasNItRyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
39
|
+
|
|
40
|
+
{% compress css %}
|
|
41
|
+
<link rel='stylesheet' type='text/css' media='screen' href='{% static "slm/css/style.css" %}'>
|
|
42
|
+
<link rel='stylesheet' type='text/css' media='screen' href='{% static "slm/css/defines.css" %}'>
|
|
43
|
+
{% endcompress %}
|
|
44
|
+
{% endblock stylesheets %}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
{% block javascript %}
|
|
48
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
|
|
50
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" integrity="sha512-57oZ/vW8ANMjR/KQ6Be9v/+/h6bq9/l3f0Oc7vn6qMqyhvPd1cvKBRWWpzu0QoneImqr2SkmO4MSqU+RpHom3Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
51
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" integrity="sha512-uURl+ZXMBrF4AwGaWmEetzrd+J5/8NRkWAvJx5sbPSSuOb0bZLqf+tOzniObO00BjHa/dD7gub9oCGMLPQHtQA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
52
|
+
|
|
53
|
+
{% compress js %}
|
|
54
|
+
<script src="{% static 'slm/js/enums.js' %}"></script>
|
|
55
|
+
<script src="{% static 'slm/js/slm.js' %}"></script>
|
|
56
|
+
<script src="{% static 'slm/js/fileIcons.js' %}"></script>
|
|
57
|
+
<script src="{% static 'urls.js' %}"></script>
|
|
58
|
+
<script src="{% static 'slm/js/time24.js' %}"></script>
|
|
59
|
+
<script>
|
|
60
|
+
slm.isModerator = {% if is_moderator %}true{% else %}false{% endif %};
|
|
61
|
+
slm.canPublish = {% if can_publish %}true{% else %}false{% endif %};
|
|
62
|
+
$.ajaxSetup({
|
|
63
|
+
beforeSend: function (xhr)
|
|
64
|
+
{
|
|
65
|
+
xhr.setRequestHeader(
|
|
66
|
+
'X-CSRFToken', '{{ csrf_token }}');
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
</script>
|
|
70
|
+
{% endcompress %}
|
|
71
|
+
{% endblock javascript %}
|
|
72
|
+
{% endblock head %}
|
|
73
|
+
</head>
|
|
74
|
+
|
|
75
|
+
<body>
|
|
76
|
+
|
|
77
|
+
{% block analytics_body %}
|
|
78
|
+
{% endblock analytics_body %}
|
|
79
|
+
|
|
80
|
+
<!-- Django message alert icons, these are referenced from message divs -->
|
|
81
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
82
|
+
<symbol id="debug-msg" fill="currentColor" viewBox="0 0 16 16">
|
|
83
|
+
<path d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"/>
|
|
84
|
+
<path d="M9.653 5.496A2.986 2.986 0 0 0 8 5c-.61 0-1.179.183-1.653.496L4.694 2.992A5.972 5.972 0 0 1 8 2c1.222 0 2.358.365 3.306.992L9.653 5.496Zm1.342 2.324a2.986 2.986 0 0 1-.884 2.312 3.01 3.01 0 0 1-.769.552l1.342 2.683c.57-.286 1.09-.66 1.538-1.103a5.986 5.986 0 0 0 1.767-4.624l-2.994.18Zm-5.679 5.548 1.342-2.684A3 3 0 0 1 5.005 7.82l-2.994-.18a6 6 0 0 0 3.306 5.728ZM10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/>
|
|
85
|
+
</symbol>
|
|
86
|
+
<symbol id="success-msg" fill="currentColor" viewBox="0 0 16 16">
|
|
87
|
+
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
|
|
88
|
+
</symbol>
|
|
89
|
+
<symbol id="info-msg" fill="currentColor" viewBox="0 0 16 16">
|
|
90
|
+
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/>
|
|
91
|
+
</symbol>
|
|
92
|
+
<symbol id="warning-msg" fill="currentColor" viewBox="0 0 16 16">
|
|
93
|
+
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
|
|
94
|
+
</symbol>
|
|
95
|
+
<symbol id="error-msg" fill="currentColor" viewBox="0 0 16 16">
|
|
96
|
+
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
|
|
97
|
+
</symbol>
|
|
98
|
+
</svg>
|
|
99
|
+
<!------->
|
|
100
|
+
|
|
101
|
+
<!-- Top Navigation Menu -->
|
|
102
|
+
<div id="top-bar">
|
|
103
|
+
<nav class="navbar navbar-dark bg-igs-blue border-bottom border-dark navbar-expand-xl bg-faded justify-content-between">
|
|
104
|
+
<div class="container-fluid mx-4">
|
|
105
|
+
{% block branding %}
|
|
106
|
+
<div class="d-flex align-items-center w-50">
|
|
107
|
+
<a href="{% url "slm:home" %}" class="navbar-brand"><img id="logo" class="me-4" src="{% static 'slm/img/slm-logo.svg' %}" alt="SLM"> Site Log Manager 2.0</a>
|
|
108
|
+
</div>
|
|
109
|
+
{% endblock branding %}
|
|
110
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsingNavbar3" title="Navigation">
|
|
111
|
+
<span class="navbar-toggler-icon"></span>
|
|
112
|
+
</button>
|
|
113
|
+
{% if user.is_authenticated %}
|
|
114
|
+
{% block top_menu %}
|
|
115
|
+
<!--
|
|
116
|
+
Template for top menu bar
|
|
117
|
+
-->
|
|
118
|
+
<div class="navbar-collapse collapse w-100" id="collapsingNavbar">
|
|
119
|
+
<ul class="navbar-nav w-100 justify-content-evenly">
|
|
120
|
+
{% include "slm/top_nav.html" with url_name=request.resolver_match.url_name %}
|
|
121
|
+
</ul>
|
|
122
|
+
<ul class="nav navbar-nav ms-auto w-100 justify-content-end">
|
|
123
|
+
<li class="nav-item dropdown">
|
|
124
|
+
<a id="quick-help" class="nav-link help-popover" role="button" tabindex="0" title="Legend">
|
|
125
|
+
Legend <i class="bi bi-info-circle ms-1"></i>
|
|
126
|
+
</a>
|
|
127
|
+
{% include "slm/widgets/legend.html" with url_name=request.resolver_match.url_name %}
|
|
128
|
+
</li>
|
|
129
|
+
<li class="nav-item dropdown">
|
|
130
|
+
<a class="nav-link" href="{% url 'slm:alerts' %}" aria-label="notifications">Alerts <i class="bi bi-bell{% if alert_level %}-fill {{ alert_level.css }}{% endif %} ms-1"></i></a>
|
|
131
|
+
</li>
|
|
132
|
+
<li class="nav-item dropdown">
|
|
133
|
+
<a id="user-dropdown" class="nav-link dropdown-toggle" href="#" id="navbarScrollingDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> {% if user.name %}{{ user.name }}{% else %}{{ user.email }}{% endif %} </a>
|
|
134
|
+
<ul class="dropdown-menu dropdown-menu-end">
|
|
135
|
+
<!-- User Drop Down -->
|
|
136
|
+
{% if request.user.is_superuser %}
|
|
137
|
+
<li><a class="dropdown-item" href="{% url "admin:index" %}">Admin</a></li>
|
|
138
|
+
<li>
|
|
139
|
+
<hr class="dropdown-divider">
|
|
140
|
+
</li>
|
|
141
|
+
{% endif %}
|
|
142
|
+
<li><a class="dropdown-item" href="{% url "slm:profile" %}">Profile</a></li>
|
|
143
|
+
<li><a class="dropdown-item" href="{% url "account_change_password" %}">Change Password</a></li>
|
|
144
|
+
<li><a class="dropdown-item" href="{% url "slm:user_activity" %}">Activity Log</a></li>
|
|
145
|
+
<li>
|
|
146
|
+
<hr class="dropdown-divider">
|
|
147
|
+
</li>
|
|
148
|
+
<li><a class="dropdown-item" href="{% url "account_logout" %}">Logout</a></li>
|
|
149
|
+
</ul>
|
|
150
|
+
</li>
|
|
151
|
+
</ul>
|
|
152
|
+
</div>
|
|
153
|
+
{% endblock %}
|
|
154
|
+
{% endif %}
|
|
155
|
+
</div>
|
|
156
|
+
</nav>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
{% block login_content %}{% endblock %}
|
|
160
|
+
|
|
161
|
+
{% block page_content %}{% endblock %}
|
|
162
|
+
|
|
163
|
+
<div id="footer" class="container-fluid bg-igs-blue mt-auto ps-4">
|
|
164
|
+
<footer class="d-flex flex-wrap justify-content-between align-items-center py-2 border-top">
|
|
165
|
+
<div class="col-md-4 d-flex align-items-center pe-4">
|
|
166
|
+
<a href="{% url "slm:home" %}" class="navbar-brand mb-3 me-2 mb-md-0"><img id="footer-logo" src="{% static 'slm/img/slm-logo.svg' %}" alt="SLM">
|
|
167
|
+
<span class="mb-3 mb-md-0 text-light"><a href="https://igs.org" target="_blank" style="color: whitesmoke; text-decoration: none">Powered by International GNSS Service</a></span>
|
|
168
|
+
</div>
|
|
169
|
+
<div id="footer-links" class="d-flex flex-row justify-content-end">
|
|
170
|
+
<a href="https://igs.org/contact-us" class="footer-link me-4">Contact Us</a>
|
|
171
|
+
<a href="https://igs.org/privacy-policy" class="footer-link me-4">Privacy Policy</a>
|
|
172
|
+
<a href="{% url 'slm:help' %}" class="footer-link me-4">Help</a>
|
|
173
|
+
</div>
|
|
174
|
+
</footer>
|
|
175
|
+
</div>
|
|
176
|
+
</body>
|
|
177
|
+
|
|
178
|
+
{% compress js %}
|
|
179
|
+
<script type='text/javascript'>
|
|
180
|
+
$(document).ready(function() {
|
|
181
|
+
var options = {
|
|
182
|
+
html: true,
|
|
183
|
+
content: $('[data-name="quick-help-info"]')
|
|
184
|
+
}
|
|
185
|
+
var helpPopover = document.getElementById('quick-help')
|
|
186
|
+
var popover = new bootstrap.Popover(
|
|
187
|
+
document.querySelector('.help-popover'), {
|
|
188
|
+
container: 'body',
|
|
189
|
+
html: true,
|
|
190
|
+
content: document.getElementById('quick-help-info'),
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
</script>
|
|
194
|
+
{% endcompress %}
|
|
195
|
+
</html>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% extends "slm/emails/base.html" %}
|
|
2
|
+
{% load slm i18n %}
|
|
3
|
+
|
|
4
|
+
{% block title %}
|
|
5
|
+
{% comment %}
|
|
6
|
+
<div style="color: {{ alert.level.color }}">
|
|
7
|
+
{% if alert.target %}{{ alert.target.name }} | {% endif %}<a href="{{ alert_link|absolute_url:request }}">{{ alert.header }}</a>
|
|
8
|
+
</div>
|
|
9
|
+
{% endcomment %}
|
|
10
|
+
{% endblock %}
|
|
11
|
+
|
|
12
|
+
{% block greeting %}
|
|
13
|
+
{% endblock greeting %}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
{% block content %}
|
|
17
|
+
<div style="position: relative; padding: 0.25rem 1rem 1rem 1rem; color: #212529; text-decoration: none; background-color: #fff; border-left: 1px solid {{ alert.level.color }}; border-left-width: 0.5rem; border-radius: 0.5rem; display: flex; gap: 1rem;" aria-current="true">
|
|
18
|
+
<div style="display: flex; width: 100%; justify-content: space-between;">
|
|
19
|
+
<div>
|
|
20
|
+
<p style="font-size: x-large; margin-top: 0; margin-bottom: 0.5rem;"><a href="{{ ''|absolute_url:request|rstrip:'/' }}{% url 'slm:alert' alert=alert.id %}">{{ alert.header }}</a></p>
|
|
21
|
+
<div style="opacity: .75; margin: 15px;">{{ alert.detail|safe }}</div>
|
|
22
|
+
{% if alert.target %}
|
|
23
|
+
<div style="cursor: pointer; display: inline-block; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none; vertical-align: middle; user-select: none; background-color: transparent; border: 1px solid {{ alert.level.color }}; padding: .375rem .75rem; font-size: 1rem; border-radius: .25rem; color: {{ alert.level.color }};" tabindex= "0" type="button"><a href="{{ alert.target_link|absolute_url:request }}" style="color: {{ alert.level.color }}">{{ alert.target.name }}</a></div>
|
|
24
|
+
{% endif %}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="opacity-75" style="opacity: .75; position: absolute; bottom: 8px; right: 16px; font-size: 14px;">
|
|
28
|
+
<p style="font-size: .875em; white-space: nowrap">{{ timestamp }}</p>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
{% endblock %}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{% extends "account/email/base.html" %}
|
|
2
|
+
{% load slm i18n %}
|
|
3
|
+
|
|
4
|
+
{% block email_preferences %}
|
|
5
|
+
<p style="font-size: .75em;">{% trans 'You are receiving this email because your account is configured to be notified. You may adjust your email preferences in your' %} <a href="{{ ''|absolute_url|rstrip:'/' }}{% url 'slm:profile' %}">{% trans 'account profile.' %}</a></p>
|
|
6
|
+
{% endblock %}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{% load static slm %}
|
|
2
|
+
<fieldset id="{{ widget.attrs.id }}-container" class="autocomplete" name="{{ widget.name }}">
|
|
3
|
+
<legend style="display: none">"{{ field.help_text }}"</legend>
|
|
4
|
+
<div {% include "django/forms/widgets/attrs.html" %} {% if not widget.attrs|has_key:'disabled' %}contenteditable="true"{% endif %}>{{ widget.value|default_if_none:'' }}</div>
|
|
5
|
+
|
|
6
|
+
<label for="{{ widget.attrs.id }}-input" style="display: none">{{ label }}</label>
|
|
7
|
+
<input id="{{ widget.attrs.id }}-input" name="{{ widget.name }}" {% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %} type="text" style="display: none">
|
|
8
|
+
|
|
9
|
+
<script type="module">
|
|
10
|
+
import { AutoComplete } from "{% static 'slm/js/autocomplete.js' %}";
|
|
11
|
+
let widget = new AutoComplete({container: $('fieldset#{{ widget.attrs.id }}-container')});
|
|
12
|
+
let ipt = $('fieldset#{{ widget.attrs.id }}-container input');
|
|
13
|
+
ipt.data('widget', widget);
|
|
14
|
+
if (ipt.val() && !widget.textInput.html()) {
|
|
15
|
+
widget.add(widget.getSuggestion(ipt.val()));
|
|
16
|
+
}
|
|
17
|
+
{% for value in widget|autocomplete_values %}
|
|
18
|
+
widget.add(widget.makeSuggestion(JSON.parse('{{ value|safe }}')));
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</script>
|
|
21
|
+
</fieldset>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{% load static slm %}
|
|
2
|
+
<fieldset id="{{ widget.attrs.id }}-container" class="autocompleteselectmultiple" name="{{ widget.name }}">
|
|
3
|
+
<legend style="display: none">"{{ field.help_text }}"</legend>
|
|
4
|
+
<div {% include "django/forms/widgets/attrs.html" %} {% if not widget.attrs|has_key:'disabled' %}contenteditable="true"{% endif %}></div>
|
|
5
|
+
<div style="display: none">
|
|
6
|
+
<label for="{{widget.attrs.id}}-select"></label>
|
|
7
|
+
<select id='{{widget.attrs.id}}-select' name="{{ widget.name }}" multiple></select>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="select-display"></div>
|
|
10
|
+
<script type="module">
|
|
11
|
+
import { AutoCompleteMultiple } from "{% static 'slm/js/autocomplete.js' %}";
|
|
12
|
+
let widget = new AutoCompleteMultiple({container: $('fieldset#{{ widget.attrs.id }}-container')});
|
|
13
|
+
$('fieldset#{{ widget.attrs.id }}-container select').data('widget', widget);
|
|
14
|
+
{% for value in widget|autocomplete_values %}
|
|
15
|
+
widget.add(widget.makeSuggestion(JSON.parse('{{ value|safe }}')));
|
|
16
|
+
{% endfor %}
|
|
17
|
+
</script>
|
|
18
|
+
</fieldset>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{% load slm %}
|
|
2
|
+
{% with id=widget.attrs.id %}{% with per_col=widget.optgroups|length|div:widget.columns %}<div{% if id %} id="{{ id }}"{% endif %} class="row slm-widget-container{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}">{% for group, options, index in widget.optgroups %}{% if forloop.counter0|divisibleby:per_col %}{% if not forloop.first %}</div>{% endif %}<div class="col">{% endif %}{% if group %}
|
|
3
|
+
<label>{{ group }}</label>{% endif %}{% for option in options %}<div class="form-check form-switch">
|
|
4
|
+
{% include option.template_name with widget=option %}{% endfor %}
|
|
5
|
+
</div>{% endfor %}</div>
|
|
6
|
+
</div>{% endwith %}{% endwith %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% spaceless %}<div id="{{ widget.attrs.id }}" class="row">{% for widget in widget.subwidgets %}<div class="col">{% include widget.template_name %}</div>{% endfor %}</div>{% endspaceless %}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% spaceless %}<div id="{{ widget.attrs.id }}" class="row {% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}">
|
|
2
|
+
<div class="col">
|
|
3
|
+
<label for="{{ widget.subwidgets.0.attrs.id }}" style="display: none">Date</label>
|
|
4
|
+
{% with widget=widget.subwidgets.0 %}
|
|
5
|
+
{% include widget.template_name %}
|
|
6
|
+
{% endwith %}
|
|
7
|
+
</div>
|
|
8
|
+
<div class="col">
|
|
9
|
+
{% with widget=widget.subwidgets.1 %}
|
|
10
|
+
{% include widget.template_name %}
|
|
11
|
+
{% endwith %}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
{% endspaceless %}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<fieldset {% include "django/forms/widgets/attrs.html" %} tabindex=0 style="display: flex; justify-content: space-between; align-items: center" name="{{ widget.name }}" class="time24-hr form-control">
|
|
2
|
+
<legend style="display: none">24 Hour Time</legend>
|
|
3
|
+
<span class="time"><span style="cursor: default; user-select: all;" class="hours">--</span>:<span style="cursor: default; user-select: all;" class="minutes">--</span></span>
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-clock clock-icon" viewBox="-2 -2 20 20">
|
|
5
|
+
<path stroke="black" stroke-width="3%" d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/>
|
|
6
|
+
<path stroke="black" stroke-width="3%" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"/>
|
|
7
|
+
</svg>
|
|
8
|
+
<label for="{{ widget.attrs.id }}-input" style="display: none">time</label>
|
|
9
|
+
<input id="{{ widget.attrs.id }}-input" name="{{ widget.name }}" {% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %} type="time" style="display: none">
|
|
10
|
+
<div class="time-select" tabindex="0" style="width: 130px; height: 250px; overflow-y: hidden; display: none; justify-content: space-evenly;">
|
|
11
|
+
<div class="hour-scroll time-scroll" tabindex="0" style="width: 65px; overflow-y: scroll;">
|
|
12
|
+
<span class="time-set">00</span><span>01</span><span>02</span><span>03</span>
|
|
13
|
+
<span>04</span><span>05</span><span>06</span><span>07</span>
|
|
14
|
+
<span>08</span><span>09</span><span>10</span><span>11</span>
|
|
15
|
+
<span>12</span><span>13</span><span>14</span><span>15</span>
|
|
16
|
+
<span>16</span><span>17</span><span>18</span><span>19</span>
|
|
17
|
+
<span>20</span><span>21</span><span>22</span><span>23</span>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="minute-scroll time-scroll" tabindex="0" style="width: 65px; overflow-y: scroll;">
|
|
20
|
+
<span class="time-set">00</span><span>01</span><span>02</span><span>03</span>
|
|
21
|
+
<span>04</span><span>05</span><span>06</span><span>07</span>
|
|
22
|
+
<span>08</span><span>09</span><span>10</span><span>11</span>
|
|
23
|
+
<span>12</span><span>13</span><span>14</span><span>15</span>
|
|
24
|
+
<span>16</span><span>17</span><span>18</span><span>19</span>
|
|
25
|
+
<span>20</span><span>21</span><span>22</span><span>23</span>
|
|
26
|
+
<span>24</span><span>25</span><span>26</span><span>27</span>
|
|
27
|
+
<span>28</span><span>29</span><span>30</span><span>31</span>
|
|
28
|
+
<span>32</span><span>33</span><span>34</span><span>35</span>
|
|
29
|
+
<span>36</span><span>37</span><span>38</span><span>39</span>
|
|
30
|
+
<span>40</span><span>41</span><span>42</span><span>43</span>
|
|
31
|
+
<span>44</span><span>45</span><span>46</span><span>47</span>
|
|
32
|
+
<span>48</span><span>49</span><span>50</span><span>51</span>
|
|
33
|
+
<span>52</span><span>53</span><span>54</span><span>55</span>
|
|
34
|
+
<span>56</span><span>57</span><span>58</span><span>59</span>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</fieldset>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
|
|
3
|
+
Template for help/documentation page.
|
|
4
|
+
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
{% extends "slm/base.html" %}
|
|
8
|
+
|
|
9
|
+
{% block page_content %}
|
|
10
|
+
<div class="container">
|
|
11
|
+
<div class="row">
|
|
12
|
+
<!-- Documentation Navigation -->
|
|
13
|
+
<div class="col-3 mt-5">
|
|
14
|
+
<div id="doc-list" class="list-group">
|
|
15
|
+
<a class="list-group-item list-group-item-action active" href="#overview" tabindex="0">Overview</a>
|
|
16
|
+
<a class="list-group-item list-group-item-action" href="#process" tabindex="0"><span class="ms-3">4 Step Process</span></a>
|
|
17
|
+
<a class="list-group-item list-group-item-action" href="#about-slm" tabindex="0"><span class="ms-3">About SLM 2.0</span></a>
|
|
18
|
+
<a class="list-group-item list-group-item-action" href="#changes" tabindex="0"><span class="ms-3">What Changed?</span></a>
|
|
19
|
+
<a class="list-group-item list-group-item-action" href="#phases" tabindex="0"><span class="ms-3">Development Phases</span></a>
|
|
20
|
+
<a class="list-group-item list-group-item-action" href="#open-source" tabindex="0"><span class="ms-3">Open Source</span></a>
|
|
21
|
+
<a class="list-group-item list-group-item-action" href="#gdpr" tabindex="0"><span class="ms-3">GDPR Compliance</span></a>
|
|
22
|
+
<a class="list-group-item list-group-item-action" href="#register-login" tabindex="0">Register/Login</a>
|
|
23
|
+
<a class="list-group-item list-group-item-action" href="#new-users" tabindex="0"><span class="ms-3">New Users</span></a>
|
|
24
|
+
<a class="list-group-item list-group-item-action" href="#existing-users" tabindex="0"><span class="ms-3">Existing Users</span></a>
|
|
25
|
+
<a class="list-group-item list-group-item-action" href="#login" tabindex="0"><span class="ms-3">Login</span></a>
|
|
26
|
+
<a class="list-group-item list-group-item-action" href="#forgot-pw" tabindex="0"><span class="ms-3">Forgot Password</span></a>
|
|
27
|
+
<a class="list-group-item list-group-item-action" href="#layout-menus" tabindex="0">Layout and Menus</a>
|
|
28
|
+
<a class="list-group-item list-group-item-action" href="#managing-data" tabindex="0">Managing Station Data</a>
|
|
29
|
+
<a class="list-group-item list-group-item-action" href="#making-changes" tabindex="0"><span class="ms-3">Making Changes</span></a>
|
|
30
|
+
<a class="list-group-item list-group-item-action" href="#upload-file" tabindex="0"><span class="ms-3">Upload (optional)</span></a>
|
|
31
|
+
<a class="list-group-item list-group-item-action" href="#edit-sections" tabindex="0"><span class="ms-3">Edit Sections</span></a>
|
|
32
|
+
<a class="list-group-item list-group-item-action" href="#upload-images" tabindex="0"><span class="ms-3">Upload Images</span></a>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- End of Documentation Navigation -->
|
|
36
|
+
|
|
37
|
+
<!-- Documentation Content -->
|
|
38
|
+
<div class="col-8">
|
|
39
|
+
<!-- Title -->
|
|
40
|
+
<div class="mt-5 mb-3 border-bottom">
|
|
41
|
+
<h1>SLM Documentation</h1>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<!-- Content -->
|
|
45
|
+
<div id="help" class="position-relative overflow-auto" data-bs-spy="scroll" data-bs-target="#doc-list" data-bs-smooth-scroll="true" tabindex="0" style="max-height: 750px;">
|
|
46
|
+
{% autoescape off %}
|
|
47
|
+
{{ help.content }}
|
|
48
|
+
{% endautoescape %}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<!-- End of Documentation Content -->
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
{% endblock %}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% load slm %}
|
|
2
|
+
{% if messages %}
|
|
3
|
+
<div class="messages my-3">
|
|
4
|
+
{% for message in messages %}
|
|
5
|
+
<div class="alert alert-{{ message|alert_class }} d-flex align-items-center" role="alert">
|
|
6
|
+
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="{{ message.level_tag }}:"><use xlink:href="#{{ message.level_tag }}-msg"/></svg>
|
|
7
|
+
<div>
|
|
8
|
+
{{ message }}
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</div>
|
|
13
|
+
{% endif %}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{% extends "slm/base.html" %}
|
|
2
|
+
{% load slm i18n compress crispy_forms_tags %}
|
|
3
|
+
|
|
4
|
+
{% block page_content %}
|
|
5
|
+
<div class="row g-0">
|
|
6
|
+
<div class="col-2">
|
|
7
|
+
{% block station_list %}
|
|
8
|
+
{% include 'slm/widgets/stationlist.html' %}
|
|
9
|
+
{% endblock %}
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div class="col-10">
|
|
13
|
+
<div class="m-5">
|
|
14
|
+
|
|
15
|
+
<div class="d-flex flex-column justify-content-left align-items-left my-4">
|
|
16
|
+
<h2>New Site</h2>
|
|
17
|
+
<hr/>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="p-5">
|
|
21
|
+
{% crispy form %}
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div id="update" class="d-grid gap-2 d-flex justify-content-between">
|
|
25
|
+
<button onclick="newSite()" type='submit' name='update' class="btn btn-success">
|
|
26
|
+
{% trans "Submit" %}
|
|
27
|
+
</button>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
|
|
35
|
+
const newSite = function() {
|
|
36
|
+
let form = $('#slm-new-site-form');
|
|
37
|
+
let data = slm.formToObject(form);
|
|
38
|
+
let agencies = [];
|
|
39
|
+
for (const agency of (data.agencies || [])) {
|
|
40
|
+
agencies.push({id: agency});
|
|
41
|
+
}
|
|
42
|
+
data.agencies = agencies;
|
|
43
|
+
$.ajax({
|
|
44
|
+
url: "{% url 'slm_edit_api:stations-list' %}",
|
|
45
|
+
method: 'POST',
|
|
46
|
+
data: JSON.stringify(data),
|
|
47
|
+
contentType: "application/json; charset=utf-8",
|
|
48
|
+
dataType: "json"
|
|
49
|
+
}).done(
|
|
50
|
+
function(data, status, jqXHR) {
|
|
51
|
+
window.location = slm.urls.reverse(
|
|
52
|
+
'slm:edit', {kwargs: {station: data.name}}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
).fail(
|
|
56
|
+
function(jqXHR, textStatus, errorThrown) {
|
|
57
|
+
if (jqXHR.hasOwnProperty('responseJSON')) {
|
|
58
|
+
const error = jqXHR.responseJSON;
|
|
59
|
+
if (Array.isArray(data)) {
|
|
60
|
+
for (const error of data) {
|
|
61
|
+
form.prepend(
|
|
62
|
+
`<div class="alert alert-danger slm-form-fail">` +
|
|
63
|
+
`<strong>${error}</strong>` +
|
|
64
|
+
`</div>`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
for (const [key, value] of Object.entries(error)) {
|
|
69
|
+
let errorElem = form.find(`#id_${key}`);
|
|
70
|
+
errorElem.addClass('is-invalid');
|
|
71
|
+
errorElem.after(`<div class="invalid-feedback">${value}</div>`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
} else if (jqXHR.hasOwnProperty('responseText')) {
|
|
75
|
+
form.prepend(
|
|
76
|
+
`<div class="alert alert-danger slm-form-fail">` +
|
|
77
|
+
`<strong>${jqXHR.responseText}</strong>` +
|
|
78
|
+
`</div>`
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
console.log(jqXHR);
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
{% endblock %}
|