chili-epfl / orchestration-graphs

Workflow engine for orchestration graphs
http://classroom.ai/
6 stars 2 forks source link

Add graph editor #5

Closed thibaultcalvayrac closed 8 years ago

thibaultcalvayrac commented 8 years ago

After this merge, the teacher will have access to the following features:

List of additions/deletions by files:

graphs/graphs/...

templates/graph-editor.html: delete the template urls.py: add new patterns: scenario-creator, scenario-editor, activity-creator, activity-editor, activity-delete, activity-list views.py: add new views: ScenarioCreateView, ScenarioUpdateView, ActivityCreateView and ActivityDeleteView models.py: add raphaelJson text field to Scenario model

graphs/graphs/grapheditor/...

init.js: main script for graph-editor.html, global variables and functions modeAdd.js: functions called when adding activity modeMove.js: functions called when moving activity modeConnect.js: functions called when adding connection modeEdit.js: functions called when editing activity modeErase.js: functions called when deleting activity/connections modeLoad.js: functions called for loading a scenario modeSave.js: functions called before saving a scenario in database

graphs/templates/...

teacher-base.html: add link to activity-list, delete link to scenario-creator activity-list.html: template for activity-list (table) activity-editor.html: template for activity-creator (form) activity-delete.html: template for activity-delete (confirmation page) scenario-list.html: links to scenario-creator and scenario-editor graph-editor.html: html template for scenario-creator and scenario-editor

graphs/static/js/

graphs/static/js/raphael.json.js: script needed to serialize the graph in json