diff --git a/src/views/modals/asset-upload.php b/src/views/modals/asset-upload.php new file mode 100644 index 00000000..11b75218 --- /dev/null +++ b/src/views/modals/asset-upload.php @@ -0,0 +1,35 @@ + + diff --git a/src/views/modals/itemsinline.php b/src/views/modals/items-inline.php similarity index 100% rename from src/views/modals/itemsinline.php rename to src/views/modals/items-inline.php diff --git a/www/authorapi.php b/www/authorapi.php index cab6d6bc..ff343778 100644 --- a/www/authorapi.php +++ b/www/authorapi.php @@ -148,7 +148,7 @@ * packet. The response is the HTML of a modal window with the * Items API initialised to render whatever was found in the content * editor window (if anything). -* See ./src/views/modals/itemsinline.php +* See ./src/views/modals/items-inline.php * ******************************************************************** --> @@ -170,7 +170,7 @@ function signItemsRequest() { var data = { item_references: [], - sign_type: 'itemsinline', + sign_type: 'items-inline', content: editor.getValue() }; $(data.content).each(function() { diff --git a/www/itemsapi_assess.php b/www/itemsapi_assess.php index e24d6eb8..ece1406d 100644 --- a/www/itemsapi_assess.php +++ b/www/itemsapi_assess.php @@ -16,7 +16,7 @@ 'name' => 'Items API demo - assess activity', 'rendering_type' => 'assess', 'state' => 'initial', - 'type' => 'local_practice', + 'type' => 'submit_practice', 'course_id' => $courseid, 'session_id' => UUID::generateUuid(), 'user_id' => $studentid, @@ -41,7 +41,7 @@ 'transition_speed' => 400 ), 'time' => array( - 'max_time' => 120, + 'max_time' => 10, 'limit_type' => 'soft', 'show_pause' => true, 'warning_time' => 60, diff --git a/www/questioneditorapi.php b/www/questioneditorapi.php index 19a83342..4539435d 100644 --- a/www/questioneditorapi.php +++ b/www/questioneditorapi.php @@ -19,25 +19,324 @@ + +
+ + - + -