├── data
├── .gitkeep
├── bin
│ └── .gitkeep
├── jobs
│ └── .gitkeep
├── logs
│ └── .gitkeep
├── media
│ └── .gitkeep
└── sample
│ └── .gitkeep
├── tests
├── jobs
│ └── .gitkeep
├── data
│ ├── jobs
│ │ └── .gitignore
│ ├── sample
│ │ ├── physic_ist
│ │ │ ├── outgroup_ex.txt
│ │ │ ├── runs.json
│ │ │ └── physic_ist_ex.txt
│ │ ├── test_copy.txt
│ │ ├── services
│ │ │ └── hello_world.sh
│ │ ├── maf
│ │ │ ├── out.fasta
│ │ │ ├── in.maf
│ │ │ └── simple.maf
│ │ ├── sample_tree.nhx
│ │ ├── fast_me
│ │ │ └── fastme_matrix.txt
│ │ └── mafft
│ │ │ └── aln.fasta
│ └── test.fasta
└── settings.ini.sample
├── waves
├── wcore
│ ├── api
│ │ ├── v1
│ │ │ ├── __init__.py
│ │ │ ├── views
│ │ │ │ └── __init__.py
│ │ │ ├── serializers
│ │ │ │ ├── __init__.py
│ │ │ │ └── fields.py
│ │ │ └── urls.py
│ │ ├── v2
│ │ │ ├── __init__.py
│ │ │ ├── views
│ │ │ │ └── __init__.py
│ │ │ ├── serializers
│ │ │ │ ├── __init__.py
│ │ │ │ └── fields.py
│ │ │ └── urls.py
│ │ ├── views
│ │ │ ├── __init__.py
│ │ │ ├── base.py
│ │ │ └── service.py
│ │ ├── __init__.py
│ │ ├── permissions.py
│ │ ├── urls.py
│ │ └── share.py
│ ├── exceptions
│ │ ├── runners.py
│ │ ├── __init__.py
│ │ └── jobs.py
│ ├── forms
│ │ ├── __init__.py
│ │ └── helper.py
│ ├── import_export
│ │ ├── jobs.py
│ │ ├── tests.py
│ │ ├── __init__.py
│ │ └── runners.py
│ ├── tests
│ │ ├── __init__.py
│ │ ├── fixtures
│ │ │ ├── users.json
│ │ │ └── test.fasta
│ │ ├── test_runners.py
│ │ └── test_copy_service.py
│ ├── views
│ │ └── __init__.py
│ ├── admin
│ │ ├── forms
│ │ │ ├── __init__.py
│ │ │ ├── jobs.py
│ │ │ └── runners.py
│ │ ├── views
│ │ │ ├── __init__.py
│ │ │ ├── export.py
│ │ │ ├── json_view.py
│ │ │ └── job_tool.py
│ │ ├── __init__.py
│ │ └── binaries.py
│ ├── management
│ │ ├── __init__.py
│ │ ├── commands
│ │ │ ├── __init__.py
│ │ │ ├── wqueue.py
│ │ │ ├── wpurge.py
│ │ │ └── waves.py
│ │ ├── command.py
│ │ └── utils.py
│ ├── migrations
│ │ ├── __init__.py
│ │ └── 0002_auto_20190624_1122.py
│ ├── templatetags
│ │ ├── __init__.py
│ │ └── waves_tags.py
│ ├── templates
│ │ └── waves
│ │ │ ├── services
│ │ │ ├── forms
│ │ │ │ ├── service_inc.html
│ │ │ │ ├── base_form.html
│ │ │ │ ├── uni_form
│ │ │ │ │ ├── inc.css.html
│ │ │ │ │ ├── inc.js.html
│ │ │ │ │ └── submission_form.html
│ │ │ │ ├── test_base.html
│ │ │ │ ├── base_inc_js.html
│ │ │ │ ├── base_inc_css.html
│ │ │ │ ├── materialize
│ │ │ │ │ ├── inc.css.html
│ │ │ │ │ ├── inc.js.html
│ │ │ │ │ └── submission_form.html
│ │ │ │ ├── bootstrap
│ │ │ │ │ ├── inc.js.html
│ │ │ │ │ ├── inc.css.html
│ │ │ │ │ └── submission_form.html
│ │ │ │ ├── bootstrap3
│ │ │ │ │ ├── inc.js.html
│ │ │ │ │ ├── inc.css.html
│ │ │ │ │ └── submission_form.html
│ │ │ │ └── bootstrap4
│ │ │ │ │ ├── inc.css.html
│ │ │ │ │ ├── inc.js.html
│ │ │ │ │ └── submission_form.html
│ │ │ ├── _online_execution.html
│ │ │ ├── _service_head.html
│ │ │ ├── base.html
│ │ │ ├── file.html
│ │ │ └── services_list.html
│ │ │ ├── api
│ │ │ └── service_api_form.html
│ │ │ ├── emails
│ │ │ ├── job_admin_error.tpl
│ │ │ ├── job_cancelled.tpl
│ │ │ ├── job_warning.tpl
│ │ │ ├── job_error.tpl
│ │ │ ├── job_submitted.tpl
│ │ │ ├── job_completed.tpl
│ │ │ └── job_prepared.tpl
│ │ │ ├── admin
│ │ │ ├── service
│ │ │ │ ├── service_modal.html
│ │ │ │ └── service_preview.html
│ │ │ ├── job
│ │ │ │ └── change_form.html
│ │ │ ├── baseparam
│ │ │ │ ├── popup_response.html
│ │ │ │ └── jet_popup_response.html
│ │ │ ├── change_form.html
│ │ │ ├── modal_alert.html
│ │ │ ├── modal_content.html
│ │ │ ├── submit_line.html
│ │ │ ├── submission
│ │ │ │ └── change_form.html
│ │ │ ├── runner
│ │ │ │ └── change_form.html
│ │ │ └── import
│ │ │ │ └── service_modal_form.html
│ │ │ └── jobs
│ │ │ └── parts
│ │ │ └── job_list_element.html
│ ├── static
│ │ └── waves
│ │ │ ├── img
│ │ │ ├── logo.png
│ │ │ ├── ajax-loader.gif
│ │ │ ├── ico
│ │ │ │ ├── favicon.ico
│ │ │ │ └── favicon.png
│ │ │ └── progress-bar.gif
│ │ │ ├── css
│ │ │ └── forms.css
│ │ │ └── admin
│ │ │ └── js
│ │ │ ├── connect.js
│ │ │ ├── submissions.js
│ │ │ ├── services.js
│ │ │ ├── runner.js
│ │ │ └── admin.js
│ ├── __init__.py
│ ├── commands
│ │ ├── __init__.py
│ │ └── command.py
│ ├── models
│ │ ├── binaries.py
│ │ ├── __init__.py
│ │ └── const.py
│ ├── utils
│ │ ├── decorators.py
│ │ ├── __init__.py
│ │ ├── encrypt.py
│ │ ├── logged.py
│ │ └── storage.py
│ ├── adaptors
│ │ ├── utils.py
│ │ ├── loader.py
│ │ ├── cluster.py
│ │ ├── exceptions.py
│ │ ├── mocks.py
│ │ └── api.py
│ ├── cron
│ │ ├── __init__.py
│ │ └── purge_jobs.py
│ ├── urls.py
│ └── compat
│ │ └── __init__.py
├── authentication
│ ├── migrations
│ │ ├── __init__.py
│ │ ├── 0002_auto_20180313_1344.py
│ │ └── 0001_initial.py
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── signals.py
│ ├── views.py
│ ├── serializers.py
│ ├── models.py
│ └── auth.py
└── __init__.py
├── docs
├── authors.rst
├── changelog.rst
├── license.rst
├── readme.rst
├── contributing.rst
├── _static
│ ├── img
│ │ ├── um.png
│ │ ├── cnrs.png
│ │ ├── ifb.png
│ │ └── lirmm.jpg
│ ├── css
│ │ ├── blank.gif
│ │ ├── waves.css
│ │ ├── fancybox_loading.gif
│ │ ├── fancybox_overlay.png
│ │ ├── fancybox_sprite.png
│ │ └── fancybox_loading@2x.gif
│ └── js
│ │ └── waves.js
├── user_doc
│ ├── waves-admin.png
│ ├── job
│ │ ├── backoffice
│ │ │ ├── job-inputs.png
│ │ │ ├── job-list.png
│ │ │ ├── job-general.png
│ │ │ ├── job-history.png
│ │ │ ├── job-outputs.png
│ │ │ └── job-submission.png
│ │ └── jobs.rst
│ ├── runner
│ │ ├── backoffice
│ │ │ ├── runner-list.png
│ │ │ ├── runner-param.png
│ │ │ └── runner-detail.png
│ │ └── runners.rst
│ ├── service
│ │ └── backoffice
│ │ │ ├── service-list.png
│ │ │ ├── service-access.png
│ │ │ ├── service-detail.png
│ │ │ ├── service-general.png
│ │ │ ├── service-runner.png
│ │ │ ├── submission-list.png
│ │ │ ├── submission-run.png
│ │ │ ├── service-submission.png
│ │ │ ├── submission-general.png
│ │ │ ├── submission-output.png
│ │ │ ├── submission-params.png
│ │ │ ├── service-submission-2.png
│ │ │ ├── submission-exitcode.png
│ │ │ ├── submission-params-1.png
│ │ │ ├── submission-params-2.png
│ │ │ ├── submission-params-3.png
│ │ │ ├── submission-params-4.png
│ │ │ ├── submission-params-5.png
│ │ │ ├── submission-params-6.png
│ │ │ ├── submission-params-7.png
│ │ │ ├── service-submission-graph.png
│ │ │ └── service-submission-graph2.png
│ └── user_guide.rst
├── dev_doc
│ ├── images
│ │ ├── adaptors.png
│ │ └── job_workflow.png
│ ├── api_user_doc.rst
│ └── dev_doc.rst
├── modules
│ ├── source.rst
│ ├── managers
│ │ └── managers.rst
│ ├── models
│ │ ├── runners.rst
│ │ ├── base.rst
│ │ ├── jobs.rst
│ │ └── services.rst
│ ├── settings.rst
│ └── adaptors
│ │ └── adaptors.rst
├── templates
│ ├── layout.html
│ └── footer.html
├── index.rst
├── waves_uwsgi.ini
└── extensions.rst
├── static
└── waves
│ ├── img
│ └── banner.png
│ └── css
│ └── site.css
├── waves_core
├── __init__.py
├── celery.py
├── wsgi.py
├── rtd.py
├── urls.py
├── cli.py
└── crontab.py
├── .travis.yml
├── CONTRIBUTING.md
├── MANIFEST.in
├── AUTHORS.md
├── templates
├── _navbar.html
├── waves
│ └── override
│ │ ├── service_simple_cp_form.html
│ │ └── service_simple_cp_details.html
└── admin
│ ├── base_site.html
│ └── login.html
├── requirements.txt
├── manage.py
├── LICENSE.md
├── fixtures_celery_beat.json
├── .gitignore
├── .gitlab-ci.yml
├── setup.py
└── README.md
/data/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/jobs/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/logs/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/media/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/sample/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/jobs/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/data/jobs/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/api/v1/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/api/v2/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/api/views/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/exceptions/runners.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/forms/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/import_export/jobs.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/views/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/admin/forms/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/management/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/migrations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/templatetags/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/authentication/migrations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/waves/wcore/management/commands/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/authors.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../AUTHORS.md
2 |
--------------------------------------------------------------------------------
/docs/changelog.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../CHANGES.md
--------------------------------------------------------------------------------
/docs/license.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../LICENSE.md
2 |
--------------------------------------------------------------------------------
/docs/readme.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../README.md
2 |
--------------------------------------------------------------------------------
/docs/contributing.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../CONTRIBUTING.md
--------------------------------------------------------------------------------
/tests/data/sample/physic_ist/outgroup_ex.txt:
--------------------------------------------------------------------------------
1 | (Lemur)
--------------------------------------------------------------------------------
/tests/data/sample/test_copy.txt:
--------------------------------------------------------------------------------
1 | Sample File to test copy files service
--------------------------------------------------------------------------------
/waves/__init__.py:
--------------------------------------------------------------------------------
1 | __import__('pkg_resources').declare_namespace(__name__)
2 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/service_inc.html:
--------------------------------------------------------------------------------
1 | {% extends template %}
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/base_form.html:
--------------------------------------------------------------------------------
1 | {% extends template_form %}
--------------------------------------------------------------------------------
/docs/_static/img/um.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/img/um.png
--------------------------------------------------------------------------------
/waves/authentication/__init__.py:
--------------------------------------------------------------------------------
1 | default_app_config = 'waves.authentication.apps.ApiKeyConfig'
2 |
--------------------------------------------------------------------------------
/docs/_static/img/cnrs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/img/cnrs.png
--------------------------------------------------------------------------------
/docs/_static/img/ifb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/img/ifb.png
--------------------------------------------------------------------------------
/docs/_static/css/blank.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/css/blank.gif
--------------------------------------------------------------------------------
/docs/_static/img/lirmm.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/img/lirmm.jpg
--------------------------------------------------------------------------------
/static/waves/img/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/static/waves/img/banner.png
--------------------------------------------------------------------------------
/waves/wcore/api/v2/views/__init__.py:
--------------------------------------------------------------------------------
1 | """ WAVES API views """
2 | import jobs
3 | import services
4 |
5 |
--------------------------------------------------------------------------------
/docs/user_doc/waves-admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/waves-admin.png
--------------------------------------------------------------------------------
/docs/_static/css/waves.css:
--------------------------------------------------------------------------------
1 | div[role=contentinfo] > p {
2 | text-align: right;
3 | font-size: x-small;
4 | }
--------------------------------------------------------------------------------
/docs/dev_doc/images/adaptors.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/dev_doc/images/adaptors.png
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/uni_form/inc.css.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_css.html' %}
2 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/uni_form/inc.js.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_js.html' %}
2 |
--------------------------------------------------------------------------------
/docs/_static/css/fancybox_loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/css/fancybox_loading.gif
--------------------------------------------------------------------------------
/docs/_static/css/fancybox_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/css/fancybox_overlay.png
--------------------------------------------------------------------------------
/docs/_static/css/fancybox_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/css/fancybox_sprite.png
--------------------------------------------------------------------------------
/docs/dev_doc/images/job_workflow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/dev_doc/images/job_workflow.png
--------------------------------------------------------------------------------
/waves/wcore/static/waves/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/waves/wcore/static/waves/img/logo.png
--------------------------------------------------------------------------------
/docs/_static/css/fancybox_loading@2x.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/_static/css/fancybox_loading@2x.gif
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-inputs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-inputs.png
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-list.png
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-general.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-general.png
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-history.png
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-outputs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-outputs.png
--------------------------------------------------------------------------------
/waves/wcore/static/waves/img/ajax-loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/waves/wcore/static/waves/img/ajax-loader.gif
--------------------------------------------------------------------------------
/waves/wcore/static/waves/img/ico/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/waves/wcore/static/waves/img/ico/favicon.ico
--------------------------------------------------------------------------------
/waves/wcore/static/waves/img/ico/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/waves/wcore/static/waves/img/ico/favicon.png
--------------------------------------------------------------------------------
/waves/wcore/static/waves/img/progress-bar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/waves/wcore/static/waves/img/progress-bar.gif
--------------------------------------------------------------------------------
/docs/user_doc/job/backoffice/job-submission.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/job/backoffice/job-submission.png
--------------------------------------------------------------------------------
/docs/user_doc/runner/backoffice/runner-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/runner/backoffice/runner-list.png
--------------------------------------------------------------------------------
/docs/user_doc/runner/backoffice/runner-param.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/runner/backoffice/runner-param.png
--------------------------------------------------------------------------------
/docs/user_doc/runner/backoffice/runner-detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/runner/backoffice/runner-detail.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-list.png
--------------------------------------------------------------------------------
/waves/wcore/api/v1/views/__init__.py:
--------------------------------------------------------------------------------
1 | """ WAVES API views """
2 | from __future__ import unicode_literals
3 |
4 | import jobs
5 | import services
6 |
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-access.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-access.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-detail.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-general.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-general.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-runner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-runner.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-list.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-run.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-submission.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-submission.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-general.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-general.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-output.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params.png
--------------------------------------------------------------------------------
/waves_core/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import, unicode_literals
2 | from waves_core.celery import app as celery_app
3 | __all__ = ('celery_app', )
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-submission-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-submission-2.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-exitcode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-exitcode.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-1.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-2.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-3.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-4.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-5.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-6.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/submission-params-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/submission-params-7.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-submission-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-submission-graph.png
--------------------------------------------------------------------------------
/docs/user_doc/service/backoffice/service-submission-graph2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lirmm/waves-core/HEAD/docs/user_doc/service/backoffice/service-submission-graph2.png
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/test_base.html:
--------------------------------------------------------------------------------
1 | {% load static %}
2 | {% block js %}
3 |
4 | {% endblock %}
5 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/base_inc_js.html:
--------------------------------------------------------------------------------
1 | {% load static %}
2 | {% block js %}
3 |
4 | {% endblock %}
5 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/api/service_api_form.html:
--------------------------------------------------------------------------------
1 | {% load staticfiles crispy_forms_tags waves_tags %}
2 |
3 | {% submission_form %}
4 |
5 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/base_inc_css.html:
--------------------------------------------------------------------------------
1 | {% load static %}
2 | {% block css %}
3 |
4 | {% endblock %}
5 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: python
2 | python:
3 | - "2.7"
4 | env:
5 | -DJANGO=1.11
6 | install:
7 | - pip install -r requirements.txt
8 | - pip install coverage==4.5.1
9 | script:
10 | - coverage run --source='.' manage.py test waves
--------------------------------------------------------------------------------
/docs/_static/js/waves.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by marc on 20/09/16.
3 | */
4 | $(document).ready(function() {
5 | $("#sample").click(function(){
6 | $.modal("
");
7 | });
8 | });
--------------------------------------------------------------------------------
/docs/dev_doc/api_user_doc.rst:
--------------------------------------------------------------------------------
1 | .. _api-dev-guide:
2 |
3 | ==================
4 | API Dev user Guide
5 | ==================
6 |
7 |
8 | This documentation intends to help front end developers to integrate WAVES-core form api service.
9 |
10 | ...
--------------------------------------------------------------------------------
/docs/modules/source.rst:
--------------------------------------------------------------------------------
1 | Source Documentation
2 | ====================
3 |
4 | .. toctree::
5 | :maxdepth: 2
6 |
7 | models/services
8 | models/jobs
9 | models/runners
10 | models/base
11 | managers/managers
12 | adaptors/adaptors
13 |
14 |
15 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/_online_execution.html:
--------------------------------------------------------------------------------
1 | {% if available_for_submission %}
2 |
3 | {% if label %}{{ label }}{% else %}Online execution{% endif %}
4 | {% endif %}
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/materialize/inc.css.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_css.html' %}
2 | {% block css %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Contributing
2 | ============
3 |
4 | You can contribute to WAVES project with following repositories:
5 |
6 | - Git source code: https://github.com/lirmm/waves-core
7 | - Issue tracker: https://github.com/lirmm/waves-core/issues
8 | - Mailing list: waves-webapp@googlegroups.com
9 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/bootstrap/inc.js.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_js.html' %}
2 | {% block js %}
3 |
4 |
5 | {{ block.super }}
6 | {% endblock %}
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/bootstrap3/inc.js.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_js.html' %}
2 | {% block js %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
7 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/materialize/inc.js.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_js.html' %}
2 | {% block js %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
7 |
--------------------------------------------------------------------------------
/tests/data/sample/services/hello_world.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | echo "Working dir: $(pwd)"
3 | dir=$(pwd)
4 | sleep 5
5 | echo "Hello world" > ${dir}/hello_world_output.txt
6 | sleep 5
7 | echo "Follow " $1 >> ${dir}/hello_world_output.txt
8 | sleep 5
9 | echo "Last" $2 >> ${dir}/hello_world_output.txt
10 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/bootstrap4/inc.css.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_css.html' %}
2 | {% block css %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/bootstrap/inc.css.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_css.html' %}
2 | {% block css %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
7 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/forms/bootstrap3/inc.css.html:
--------------------------------------------------------------------------------
1 | {% extends 'waves/services/forms/base_inc_css.html' %}
2 | {% block css %}
3 |
4 | {{ block.super }}
5 | {% endblock %}
6 |
7 |
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include LICENSE.md
2 | include README.md
3 | include requirements.txt
4 | recursive-include waves/wcore/static *
5 | recursive-include waves/wcore/templates *
6 | recursive-include waves/front/templates *
7 | recursive-include docs *
8 | recursive-exclude waves_core *
9 | # recursive-exclude waves/wcore/migrations *.
--------------------------------------------------------------------------------
/waves/wcore/static/waves/css/forms.css:
--------------------------------------------------------------------------------
1 | .dis_dep_parameter {
2 | display:block;
3 | }
4 |
5 | .hid_dep_parameter {
6 | display: none;
7 | }
8 |
9 | #panel-form-service{
10 | padding-top: 2%;
11 | padding-left: 7%;
12 | }
13 |
14 | .copypaste > div.form-group > div.controls {
15 | width:100%;
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/waves/wcore/api/v1/serializers/__init__.py:
--------------------------------------------------------------------------------
1 | """ WAVES API serializers package """
2 | from waves.wcore.api.v1.serializers.jobs import JobHistorySerializer, JobInputSerializer, JobSerializer, JobOutputSerializer
3 | from waves.wcore.api.v1.serializers.services import ServiceSubmissionSerializer, ServiceSerializer, ServiceFormSerializer
4 |
5 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/emails/job_admin_error.tpl:
--------------------------------------------------------------------------------
1 | -----------------------------------------------------------------
2 | [ADMIN-NOTIFICATION] - Job '{{ job.service }}' - job failed
3 | -----------------------------------------------------------------
4 |
5 | Sorry but job "{{ job.title }}" execution failed.
6 |
7 | {{ job.link }}
8 |
9 |
--------------------------------------------------------------------------------
/waves/wcore/templates/waves/services/_service_head.html:
--------------------------------------------------------------------------------
1 |
Online since {{ service.created }} / last update {{ service.updated }}
5 |
8 |
');
12 | $('#modal_alert').modal('toggle');
13 | $.getJSON($(this).attr('href'), function (data) {
14 | $('#modal_alert .modal-content .modal-body').html(data['connection_result'])
15 | })
16 | });
17 |
18 | var $loading = $('#loading').hide();
19 | $(document)
20 | .ajaxStart(function () {
21 | $loading.show();
22 | })
23 | .ajaxStop(function () {
24 | $loading.hide();
25 | });
26 | });
27 |
28 | })(jQuery || django.jQuery);
29 |
--------------------------------------------------------------------------------
/waves/authentication/views.py:
--------------------------------------------------------------------------------
1 | from __future__ import unicode_literals
2 |
3 | from rest_framework import parsers, renderers
4 | from rest_framework.response import Response
5 | from rest_framework.views import APIView
6 |
7 | from .models import WavesApiUser
8 | from .serializers import WavesApiUserSerializer
9 |
10 |
11 | class ObtainAuthToken(APIView):
12 | throttle_classes = ()
13 | permission_classes = ()
14 | parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,)
15 | renderer_classes = (renderers.JSONRenderer,)
16 | serializer_class = WavesApiUserSerializer
17 |
18 | def post(self, request, *args, **kwargs):
19 | serializer = self.serializer_class(data=request.data)
20 | serializer.is_valid(raise_exception=True)
21 | user = serializer.validated_data['user']
22 | token, created = WavesApiUser.objects.get_or_create(user=user)
23 | return Response({'auth_api_key': token.key})
24 |
25 |
26 | obtain_auth_token = ObtainAuthToken.as_view()
27 |
--------------------------------------------------------------------------------
/waves/wcore/urls.py:
--------------------------------------------------------------------------------
1 | from __future__ import unicode_literals
2 |
3 | from django.conf.urls import url
4 | from django.contrib.auth.decorators import login_required
5 |
6 | from waves.wcore.views.jobs import JobInputView, JobOutputView, JobSubmissionView, JobView, JobListView
7 | from waves.wcore.views.services import ServiceListView, ServiceDetailView
8 |
9 |
10 | urlpatterns = [
11 | url(r'^services/$', ServiceListView.as_view(), name='services_list'),
12 | url(r'^service/(?P{{ file_content }}
15 | Availability : {{ sub.submission.get_availability_display }}22 | {% endif %} 23 |
Availability : {{ sub.submission.get_availability_display }}22 | {% endif %} 23 |
Availability : {{ sub.submission.get_availability_display }}22 | {% endif %} 23 |
Availability : {{ sub.submission.get_availability_display }}23 | {% endif %} 24 |
Availability : {{ sub.submission.get_availability_display }}25 | {% endif %} 26 |
');
31 | $('#popup_modal_content').load($(this).attr('href'), function () {
32 | console.log('loaded')
33 | });
34 | });
35 | $('#popup_modal').on('toggle', function () {
36 | console.log('show raised');
37 | $(this).find('.modal-body').css({
38 | 'max-height': '100%'
39 | });
40 | });
41 | })
42 | })(jQuery || django.jQuery);
--------------------------------------------------------------------------------
/tests/data/sample/fast_me/fastme_matrix.txt:
--------------------------------------------------------------------------------
1 | 9
2 | Aurora 0.0 0.1 0.13 0.12 0.57 0.22 0.86 0.89 0.97
3 | Boylii 0.1 0.0 0.7 0.7 0.5 0.9 0.65 0.67 0.72
4 | Cascadae 0.13 0.7 0.0 0.7 0.4 0.11 0.54 0.66 0.79
5 | Muscosa 0.12 0.7 0.7 0.0 0.45 0.15 0.48 0.49 0.67
6 | Temporaria 0.57 0.5 0.4 0.45 0.0 0.48 0.85 0.83 1.07
7 | Pretiosa 0.22 0.9 0.11 0.15 0.48 0.0 0.54 0.55 0.6
8 | Catesbaiana 0.86 0.65 0.54 0.48 0.85 0.54 0.0 0.54 0.59
9 | Pipiens 0.89 0.67 0.66 0.49 0.83 0.55 0.54 0.0 0.48
10 | Tarahumarae 0.97 0.72 0.79 0.67 1.07 0.60 0.59 0.48 0.0
11 |
12 |
13 | 9
14 | Aurora 0.0 0.11 0.13 0.1 0.57 0.25 0.86 0.89 0.9
15 | Boylii 0.11 0.0 0.8 0.7 0.52 0.6 0.65 0.67 0.77
16 | Cascadae 0.13 0.8 0.0 0.7 0.42 0.11 0.52 0.66 0.80
17 | Muscosa 0.1 0.7 0.7 0.0 0.45 0.15 0.48 0.49 0.67
18 | Temporaria 0.57 0.52 0.42 0.45 0.0 0.45 0.85 0.83 1.07
19 | Pretiosa 0.25 0.6 0.11 0.15 0.45 0.0 0.54 0.57 0.6
20 | Catesbaiana 0.86 0.65 0.52 0.48 0.85 0.54 0.0 0.54 0.53
21 | Pipiens 0.89 0.67 0.66 0.49 0.83 0.57 0.54 0.0 0.46
22 | Tarahumarae 0.9 0.77 0.8 0.67 1.07 0.6 0.53 0.46 0.0
23 |
24 | 9
25 | Aurora 0.0 0.10 0.15 0.12 0.59 0.22 0.86 0.9 0.97
26 | Boylii 0.1 0.0 0.7 0.6 0.5 0.9 0.65 0.67 0.72
27 | Cascadae 0.15 0.7 0.0 0.7 0.4 0.11 0.54 0.66 0.79
28 | Muscosa 0.12 0.6 0.7 0.0 0.45 0.15 0.48 0.46 0.67
29 | Temporaria 0.59 0.5 0.4 0.45 0.0 0.47 0.85 0.83 1.03
30 | Pretiosa 0.22 0.9 0.11 0.15 0.47 0.0 0.54 0.55 0.6
31 | Catesbaiana 0.86 0.65 0.54 0.48 0.85 0.54 0.0 0.54 0.59
32 | Pipiens 0.90 0.67 0.66 0.46 0.83 0.55 0.54 0.0 0.48
33 | Tarahumarae 0.97 0.72 0.79 0.67 1.03 0.6 0.59 0.48 0.0
34 |
--------------------------------------------------------------------------------
/waves/wcore/admin/views/job_tool.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | """ Job tool WAVES admin dedicated views """
3 | from __future__ import unicode_literals
4 |
5 | from django.views.generic import View
6 | from django.shortcuts import get_object_or_404
7 | from django.shortcuts import redirect
8 | from django.core.urlresolvers import reverse
9 | from django.contrib import messages
10 | from waves.wcore.exceptions import WavesException
11 | from waves.wcore.models import Job
12 | from waves.wcore.adaptors.const import JobStatus
13 |
14 |
15 | class JobCancelView(View):
16 | """ View after cancel a job, if possible """
17 |
18 | def get(self, request):
19 | """ Try to cancel specified job (in kwargs), redirect to current job page """
20 | try:
21 | job = get_object_or_404(Job, id=self.kwargs['job_id'])
22 | runner = job.adaptor
23 | if runner is not None:
24 | runner.cancel_job(job)
25 | else:
26 | job.status = JobStatus.JOB_CANCELLED
27 | job.save()
28 | messages.add_message(request, level=messages.SUCCESS, message="Job cancelled")
29 | except WavesException as e:
30 | messages.add_message(request, level=messages.ERROR, message=e.message)
31 | return redirect(reverse('admin:wcore_job_change', args=[self.kwargs['job_id']]))
32 |
33 |
34 | class JobRerunView(View):
35 | def get(self, request):
36 | job = get_object_or_404(Job, id=self.kwargs['job_id'])
37 | if job.allow_rerun:
38 | try:
39 | job.re_run()
40 | messages.success(request, message="Job '%s' successfully marked for re-run" % job.title)
41 | except WavesException as exc:
42 | messages.error(request, message="Error occured %s " % exc.message)
43 | else:
44 | messages.error(request, message="You can't rerun this job")
45 | return redirect(reverse('admin:wcore_job_changelist'))
46 |
--------------------------------------------------------------------------------
/tests/data/sample/mafft/aln.fasta:
--------------------------------------------------------------------------------
1 | >TestSequence1
2 | ERNECFLKHKDDDPNLPPVVKPEPEALCTAFQENNNKFLENYLYEVARRHPYFYGPELLY
3 | YVKQ--YKAILTECCQAACCQAADKATCLAPKAKVLKEKLLASSAKQRHKCASIQKFGER
4 | AFKAWSIARLSQRFPKADFMDLSKLVTDLSKIHKECCHGDLLECADDREDLAKYV---QD
5 | SFSSKLKECCDKPLLEKSHCISELENDDLPNDLPSITTDFVEDKDVCKLLNYKEAKDVFL
6 | GTFLYEYSRRHPEYAVSLLLRIAKGYEATLERCCATDDAHACYSKVFDELQPLVDEPQ--
7 | KLMKRNCELFENLGAYGFQNALIIRYTKKMPQVSTPTLLVISKELANMGNKCCTLPESKR
8 | >TestSequence2
9 | ERADCFASHRDDNPGFPLMVRPPVDELCASYQADAQMFAGKYLYEVARRYPYFYAPELLY
10 | YAQKLLYKDALAEC-----CSAADKAACLTPKIDDLKESVMTSGAKQRFKCAGIEKFGER
11 | AFKAWAVARLSQKFPNADFAEISKIVTDLTKINKECCHGDLLECADDRVELGKYMCDNKD
12 | SISSKLGKCCEKPLLEKGHCIAELERDDMPADLSPIEADFVEDKEVCK--NYAEAKDVFL
13 | GTFLYELSRRHPEYSVVMLLRLAKGYEAVLEKCCATGDPPACYAKVFDELKPLIDEPQ--
14 | NLVKHNCELYGNLQEYGFQNALLIRYTKKMPQ---PTLVEVSRNLGKVGTKCCSLAEGER
15 | >TestSequence3
16 | ERNECFLSHKDDSPDLPKL-KPDPNTLCDEFKADEKKFWGKYLYEIARRHPYFYAPELLY
17 | YANK--YNGVFQEC-----CQAEDKGACLLPKIETMREKVLTSSARQRLRCASIQKFGER
18 | ALKAWSVARLSQKFPKAEFVEVTKLVTDLTKVHKECCHGDLLECADDRADLAKYICDNQD
19 | TISSKLKECCDKPLLEKSHCIAEVEKDAVPENLPPLTADFAEDKDVCK--NYQEAKDAFL
20 | GSFLYEYSRRHPE-YVLLRLALLKEYEATLEECCAKDDPHACYSTVFDKLKHLVDEPQ--
21 | NLIKQNCDQFEKLGEYGFQNALIVRYTRKVPQVSTPTLVEVSRSLGKVGTRCCTKPESER
22 | >TestSequence4
23 | ERNECFLQHKDDNPNLPRLVRPEVDVMCTAFHDNEETFLKKYLYEIARRHPYFYAPELLF
24 | FAKR--YKAAFTEC-----CQAADKAACLLPKLDELRDEGKASSAKQRLKCASLQKFGER
25 | AFKAWAVARLSQRFPKAEFAEVSKLVTDLTKVHTECCHGDLLECADDRADLAKYICENQD
26 | SISSKLKECCEKPLLEKSHCIAEVENDEMPADLPSLAADFVESKDVCK--NYAEAKDVFL
27 | GMFLYEYARRHPRESVVLLLRLAKTYETTLEKCCAAADPHECYAKVFDEFKPLVEEPQLL
28 | NLIKQNCELFEQLGEYKFQNALLVRYTKKVPQVSTPTLVEVSRNLGKVGSKCCKHPEAKR
29 | >TestSequence5
30 | ERNECFLQHKDDNPGFGQLVTPEADAMCTAFHENEQRFLGKYLYEIARRHPYFYAPELLY
31 | YAEE--YKGVFTEC-----CEAADKAACLTPKVDALREKVLASSAKERLKCASLQKFGER
32 | AFKAWSVARLSQKFPKAEFAEISKLVTDLAKIHKECCHGDLLECADDRADLAKYICENQD
33 | SISTKLKECCGKPVLEKSHCISEVERDELPADLPPLAVDFVEDKEVCK--NYQEAKDVFL
34 | GTFLYEYSRRHPS-SVSLLLRLAKEYEATLEKCCATDDPPACYAHVFDEFKPLVEEPH--
35 | NLVKTNCELFEKLGEYGFQNALLVRYTKKVPQVSTPTLVEVSRSLGKVGSKCCTHPEAER
--------------------------------------------------------------------------------
/waves/wcore/static/waves/admin/js/admin.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Marc Chakiachvili on 23/09/16.
3 | * Standard JQuery library to attache events to Django BO
4 | */
5 | (function ($) {
6 | $(document).ready(function () {
7 | $('#popup_modal').on('shown.bs.modal', function () {
8 | $(this).find('.modal-dialog').css({
9 | width: 'auto',
10 | height: 'auto',
11 | 'max-height': '80%'
12 | });
13 | });
14 |
15 | $('.js-popup-link').click(function (e) {
16 | e.preventDefault();
17 | // language=JQuery-CSS
18 | var modalContent = $('#popup_modal_content');
19 | console.log('Js-pop-up-modal called ' + $('#popup_modal'));
20 | if ($(this).attr('js-modal-title') !== null) {
21 | modalContent.find('.modal-header').html("
28 | Created
29 | by: {{ service.created_by }}
30 | Current Status: {{ service.get_status_display }}
31 |
33 | {{ service.short_description|default:service.description|truncatechars:200 }}
34 |
35 | Released {{ service.created }}
36 | Last update {{ service.updated }}
37 |