Changeset 34
- Timestamp:
- 05.10.2010 16:50:24 (3 years ago)
- Location:
- dippler/trunk
- Files:
-
- 5 added
- 9 modified
-
actions/action_forwarder.php (modified) (1 diff)
-
actions/delete_assignment.php (added)
-
actions/delete_course.php (modified) (1 diff)
-
actions/edit_assignment.php (added)
-
api.php (modified) (1 diff)
-
indexes/edit_assignment.php (added)
-
indexes/view_course.php (modified) (1 diff)
-
languages/en.php (modified) (31 diffs)
-
languages/et.php (modified) (31 diffs)
-
start.php (modified) (2 diffs)
-
views/default/dippler/course_assignments.php (modified) (1 diff)
-
views/default/dippler/forms/edit_assignment.php (modified) (1 diff)
-
views/default/object/assignment.php (added)
-
views/default/object/assignment_listing.php (added)
Legend:
- Unmodified
- Added
- Removed
-
dippler/trunk/actions/action_forwarder.php
r33 r34 66 66 unset($_SESSION['assignment_title']); unset($_SESSION['assignment_start']); unset($_SESSION['assignment_end']); unset($_SESSION['assignment_task']); 67 67 } 68 $course_guid = get_input('course_guid');69 68 if ($action_type == 'add') { 69 $course_guid = get_input('course_guid'); 70 70 forward($CONFIG->wwwroot . 'pg/dippler/add_assignment/' . $course_guid); 71 71 } else if ($action_type == 'edit') { 72 forward($CONFIG->wwwroot . 'pg/dippler/edit_assignment/' . $ course_guid . '/' . $entity_guid);72 forward($CONFIG->wwwroot . 'pg/dippler/edit_assignment/' . $entity_guid); 73 73 } 74 74 } -
dippler/trunk/actions/delete_course.php
r7 r34 21 21 $rowsaffected = $course->delete(); 22 22 if ($rowsaffected > 0) { 23 // TODO DELETE ASSIGNMENTS 24 // TODO DELETE PARTICIPANTS 25 // TODO DELETE ANSWERS 23 26 /*translation:Course deleted.*/ 24 27 system_message(elgg_echo('dippler:message:course_deleted')); -
dippler/trunk/api.php
r33 r34 223 223 */ 224 224 225 // returns all assignments of course 225 226 function dipplerGetCourseAssignments($course_guid) { 226 227 return elgg_get_entities_from_relationship(array('relationship' => 'isAssignmentOf', 'relationship_guid' => $course_guid, 'inverse_relationship' => true, 'type' => 'object', 'subtype' => 'assignment', 'limit' => 0)); 227 228 } 229 230 // Returns course object for assignment 231 function dipplerGetCourseOfAssignment($assignment_guid) { 232 $related = elgg_get_entities_from_relationship(array('relationship' => 'isAssignmentOf', 'relationship_guid' => $assignment_guid, 'inverse_relationship' => false, 'type' => 'object', 'subtype' => 'course', 'limit' => 0)); 233 if ($related && is_array($related) && sizeof($related) > 0) { 234 return $related[0]; 235 } 236 return false; 237 } 228 238 ?> -
dippler/trunk/indexes/view_course.php
r33 r34 78 78 79 79 $body .= '</div>'; // dippler_wrapper end 80 80 global $autofeed; 81 $autofeed = false; 81 82 $content = elgg_view_layout('two_column_left_sidebar', '', $body); 82 83 page_draw(null, $content); -
dippler/trunk/languages/en.php
r17 r34 23 23 24 24 /* 25 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 26 Lines: 47 27 Text: Title 28 _missing_translation_ 29 */ 30 "dippler:assignment:label:title" => "Title", 31 32 /* 25 33 File: /dippler/mod/dippler/actions/handle_invitation.php 26 34 Lines: 51 … … 40 48 /* 41 49 File: /dippler/mod/dippler/actions/add_participant.php 42 Lines: 6 550 Lines: 64 43 51 Text: User has been invited to the course, please wait until he or she confirms the invitation. 44 52 _missing_translation_ … … 47 55 48 56 /* 49 File: /dippler/mod/dippler/actions/add_participant.php 50 Lines: 68 57 File: /dippler/mod/dippler/views/default/object/assignment_listing.php 58 Lines: 23 59 Text: Available for answer 60 _missing_translation_ 61 */ 62 "dippler:assignment:label:duration" => "Available for answer", 63 64 /* 65 File: /dippler/mod/dippler/actions/add_participant.php 66 Lines: 67 51 67 Text: You have been invited to the course 52 68 _missing_translation_ … … 88 104 /* 89 105 File: /dippler/mod/dippler/actions/add_participant.php 90 Lines: 70106 Lines: 69 91 107 Text: You have been invited to the course %s. To confirm or decline the registration please go to the course page. 92 108 _missing_translation_ … … 104 120 /* 105 121 File: /dippler/mod/dippler/actions/delete_course.php 106 Lines: 27122 Lines: 30 107 123 Text: Course could not be deleted. 108 124 _missing_translation_ … … 138 154 File: /dippler/mod/dippler/actions/add_participant.php 139 155 File: /dippler/mod/dippler/actions/handle_invitation.php 140 Lines: 30, 5 8, 35156 Lines: 30, 57, 35 141 157 Text: You have been enrolled to the course 142 158 _missing_translation_ … … 146 162 /* 147 163 File: /dippler/mod/dippler/actions/add_participant.php 148 Lines: 7 8164 Lines: 77 149 165 Text: You application was submitted 150 166 _missing_translation_ … … 162 178 /* 163 179 File: /dippler/mod/dippler/actions/add_participant.php 164 Lines: 3 8180 Lines: 37 165 181 Text: Same user can not be enrolled to the course twice. 166 182 _missing_translation_ 167 183 */ 168 184 "dippler:error:can_not_enroll_twice" => "Same user can not be enrolled to the course twice.", 185 186 /* 187 File: /dippler/mod/dippler/views/default/object/assignment.php 188 Lines: 30 189 Text: Task 190 _missing_translation_ 191 */ 192 "dippler:assignment:label:task" => "Task", 169 193 170 194 /* … … 175 199 */ 176 200 "dippler:tab:course:course" => "Course", 201 202 /* 203 File: /dippler/mod/dippler/actions/delete_assignment.php 204 Lines: 24 205 Text: Assignment deleted. 206 _missing_translation_ 207 */ 208 "dippler:message:assignment_deleted" => "Assignment deleted.", 177 209 178 210 /* … … 211 243 212 244 /* 245 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 246 File: /dippler/mod/dippler/views/default/object/assignment.php 247 Lines: 53, 40 248 Text: End 249 _missing_translation_ 250 */ 251 "dippler:assignment:label:end" => "End", 252 253 /* 213 254 File: /dippler/mod/dippler/api.php 214 255 Lines: 85 … … 228 269 /* 229 270 File: /dippler/mod/dippler/actions/action_forwarder.php 230 Lines: 67271 Lines: 77 231 272 Text: Entity guid or action type not provided. 232 273 _missing_translation_ … … 244 285 /* 245 286 File: /dippler/mod/dippler/actions/add_participant.php 246 Lines: 5 5287 Lines: 54 247 288 Text: You have been enrolled to the course %s 248 289 _missing_translation_ … … 252 293 /* 253 294 File: /dippler/mod/dippler/actions/add_participant.php 254 Lines: 7 5295 Lines: 74 255 296 Text: Your application was submitted, you will need to wait until your application is processed. 256 297 _missing_translation_ … … 259 300 260 301 /* 302 File: /dippler/mod/dippler/indexes/add_assignment.php 303 Lines: 28 304 Text: Add assignment 305 _missing_translation_ 306 */ 307 "dippler:title:add_assignment" => "Add assignment", 308 309 /* 310 File: /dippler/mod/dippler/actions/add_assignment.php 261 311 File: /dippler/mod/dippler/actions/add_course.php 312 File: /dippler/mod/dippler/actions/edit_assignment.php 262 313 File: /dippler/mod/dippler/actions/edit_course.php 263 Lines: 59, 60314 Lines: 47, 59, 44, 60 264 315 Text: Error occured, object could not be saved. 265 316 _missing_translation_ … … 311 362 312 363 /* 364 File: /dippler/mod/dippler/views/default/object/assignment.php 365 Lines: 25 366 Text: Back to course <a href=\"%s\">%s</a> 367 _missing_translation_ 368 */ 369 "dippler:assignment:back_to_course" => "Back to course <a href=\"%s\">%s</a>", 370 371 /* 313 372 File: /dippler/mod/dippler/actions/edit_participant.php 314 373 Lines: 45 … … 336 395 337 396 /* 397 File: /dippler/mod/dippler/indexes/add_assignment.php 338 398 File: /dippler/mod/dippler/indexes/add_participant.php 399 File: /dippler/mod/dippler/indexes/edit_assignment.php 339 400 File: /dippler/mod/dippler/indexes/edit_course.php 340 401 File: /dippler/mod/dippler/indexes/edit_participant.php 402 File: /dippler/mod/dippler/indexes/view_assignment.php 341 403 File: /dippler/mod/dippler/indexes/view_course.php 342 Lines: 34, 41, 36, 73404 Lines: 34, 34, 42, 41, 36, 37, 76 343 405 Text: For some reason the object you are trying to view can not be shown (you either have no rights for that, such object does not exist or it has a wrong subtype). 344 406 _missing_translation_ … … 355 417 356 418 /* 419 File: /dippler/mod/dippler/views/default/helpers/dippler_course_participants.php 420 Lines: 101 421 Text: Invited users (still not confirmed invitations) 422 _missing_translation_ 423 */ 424 "dippler:course:invited_awaiting_confirmation" => "Invited users (still not confirmed invitations)", 425 426 /* 357 427 File: /dippler/mod/dippler/views/default/helpers/dippler_course_enroll.php 358 428 Lines: 19 … … 371 441 372 442 /* 443 File: /dippler/mod/dippler/actions/add_assignment.php 444 Lines: 56 445 Text: Assignment added 446 _missing_translation_ 447 */ 448 "dippler:message:assignment_added" => "Assignment added", 449 450 /* 373 451 File: /dippler/mod/dippler/views/default/input/dippler_userselect.php 374 452 Lines: 66 … … 379 457 380 458 /* 459 File: /dippler/mod/dippler/indexes/edit_assignment.php 460 Lines: 37 461 Text: Edit assignment 462 _missing_translation_ 463 */ 464 "dippler:title:edit_assignment" => "Edit assignment", 465 466 /* 381 467 File: /dippler/mod/dippler/actions/activate_participant.php 382 468 Lines: 37 … … 403 489 404 490 /* 491 File: /dippler/mod/dippler/indexes/view_course.php 492 Lines: 46 493 Text: Assignments 494 _missing_translation_ 495 */ 496 "dippler:tab:course:assignments" => "Assignments", 497 498 /* 405 499 File: /dippler/mod/dippler/start.php 406 Lines: 5 0500 Lines: 54 407 501 Text: Add course 408 502 _missing_translation_ … … 428 522 429 523 /* 524 File: /dippler/mod/dippler/actions/add_assignment.php 430 525 File: /dippler/mod/dippler/actions/add_course.php 431 526 File: /dippler/mod/dippler/actions/add_participant.php 527 File: /dippler/mod/dippler/actions/edit_assignment.php 432 528 File: /dippler/mod/dippler/actions/edit_course.php 433 529 File: /dippler/mod/dippler/actions/edit_participant.php 434 Lines: 47, 44, 52, 38530 Lines: 35, 47, 43, 36, 52, 38 435 531 Text: Please fill all required fields. 436 532 _missing_translation_ … … 442 538 File: /dippler/mod/dippler/actions/add_participant.php 443 539 File: /dippler/mod/dippler/actions/handle_invitation.php 444 Lines: 32, 60, 37540 Lines: 32, 59, 37 445 541 Text: You have successfully been enrolled to the course %s 446 542 _missing_translation_ … … 481 577 482 578 /* 579 File: /dippler/mod/dippler/views/default/object/assignment.php 483 580 File: /dippler/mod/dippler/views/default/object/course.php 484 Lines: 62581 Lines: 47, 62 485 582 Text: Edit 486 583 _missing_translation_ … … 505 602 506 603 /* 507 File: /dippler/mod/dippler/views/default/helpers/dippler_course_participants.php 508 Lines: 101 509 Text: Invited users (still not confirmed invitations) 510 _missing_translation_ 511 */ 512 "dippler:course:invited_awaiting_confirmation" => "Invited users (still not confirmed invitations)", 604 File: /dippler/mod/dippler/views/default/object/assignment.php 605 File: /dippler/mod/dippler/views/default/object/course.php 606 Lines: 51, 66 607 Text: Delete 608 _missing_translation_ 609 */ 610 "dippler:action:link:delete" => "Delete", 611 612 /* 613 File: /dippler/mod/dippler/actions/edit_assignment.php 614 Lines: 53 615 Text: Assignment modified 616 _missing_translation_ 617 */ 618 "dippler:message:assignment_modified" => "Assignment modified", 513 619 514 620 /* … … 521 627 522 628 /* 523 File: /dippler/mod/dippler/actions/add_participant.php 524 Lines: 86 629 File: /dippler/mod/dippler/views/default/dippler/course_assignments.php 630 Lines: 18 631 Text: Add assignment 632 _missing_translation_ 633 */ 634 "dippler:action:link:add_assignment" => "Add assignment", 635 636 /* 637 File: /dippler/mod/dippler/actions/add_participant.php 638 Lines: 85 525 639 Text: Participant could not be enrolled to the course %s 526 640 _missing_translation_ … … 538 652 539 653 /* 654 File: /dippler/mod/dippler/indexes/add_course.php 655 Lines: 31 656 Text: Add course 657 _missing_translation_ 658 */ 659 "dippler:title:add_course" => "Add course", 660 661 /* 540 662 File: /dippler/mod/dippler/actions/delete_course.php 541 Lines: 2 4663 Lines: 27 542 664 Text: Course deleted. 543 665 _missing_translation_ … … 580 702 581 703 /* 582 File: /dippler/mod/dippler/ views/default/object/course.php583 Lines: 66584 Text: Delete585 _missing_translation_ 586 */ 587 "dippler: action:link:delete" => "Delete",704 File: /dippler/mod/dippler/indexes/edit_course.php 705 Lines: 36 706 Text: Edit course 707 _missing_translation_ 708 */ 709 "dippler:title:edit_course" => "Edit course", 588 710 589 711 /* … … 597 719 /* 598 720 File: /dippler/mod/dippler/start.php 599 Lines: 47721 Lines: 51 600 722 Text: Dippler 601 723 _missing_translation_ … … 621 743 622 744 /* 745 File: /dippler/mod/dippler/views/default/dippler/course_assignments.php 746 Lines: 24 747 Text: Assignments 748 _missing_translation_ 749 */ 750 "dippler:course:assignments" => "Assignments", 751 752 /* 753 File: /dippler/mod/dippler/indexes/add_participant.php 754 Lines: 28 755 Text: Enroll to the course 756 _missing_translation_ 757 */ 758 "dippler:title:course_enroll" => "Enroll to the course", 759 760 /* 761 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 762 File: /dippler/mod/dippler/views/default/object/course.php 763 Lines: 97, 43 764 Text: Cost 765 _missing_translation_ 766 */ 767 "dippler:course:label:cost" => "Cost", 768 769 /* 770 File: /dippler/mod/dippler/actions/add_course.php 771 Lines: 74 772 Text: Course added 773 _missing_translation_ 774 */ 775 "dippler:message:course_added" => "Course added", 776 777 /* 778 File: /dippler/mod/dippler/actions/handle_invitation.php 779 Lines: 48 780 Text: Invitation declined. 781 _missing_translation_ 782 */ 783 "dippler:message:invitation_declined" => "Invitation declined.", 784 785 /* 786 File: /dippler/mod/dippler/actions/delete_participant.php 787 Lines: 30 788 Text: You have been removed from the course 789 _missing_translation_ 790 */ 791 "dippler:system:message:subject:participant_deleted" => "You have been removed from the course", 792 793 /* 794 File: /dippler/mod/dippler/actions/add_participant.php 795 Lines: 79 796 Text: Your application to course %s was submitted. Please wait until your application is processed. 797 _missing_translation_ 798 */ 799 "dippler:system:message:body:course_application_submitted" => "Your application to course %s was submitted. Please wait until your application is processed.", 800 801 /* 802 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 803 File: /dippler/mod/dippler/views/default/object/assignment.php 804 Lines: 50, 35 805 Text: Start 806 _missing_translation_ 807 */ 808 "dippler:assignment:label:start" => "Start", 809 810 /* 811 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 812 Lines: 85 813 Text: Title 814 _missing_translation_ 815 */ 816 "dippler:course:label:title" => "Title", 817 818 /* 819 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 820 Lines: 112 821 Text: Credits 822 _missing_translation_ 823 */ 824 "dippler:course:label:credits" => "Credits", 825 826 /* 623 827 File: /dippler/mod/dippler/api.php 624 828 Lines: 81 … … 629 833 630 834 /* 631 File: /dippler/mod/dippler/indexes/add_participant.php632 Lines: 28633 Text: Enroll to the course634 _missing_translation_635 */636 "dippler:title:course_enroll" => "Enroll to the course",637 638 /*639 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php640 File: /dippler/mod/dippler/views/default/object/course.php641 Lines: 97, 43642 Text: Cost643 _missing_translation_644 */645 "dippler:course:label:cost" => "Cost",646 647 /*648 File: /dippler/mod/dippler/actions/add_course.php649 Lines: 74650 Text: Course added651 _missing_translation_652 */653 "dippler:message:course_added" => "Course added",654 655 /*656 File: /dippler/mod/dippler/actions/handle_invitation.php657 Lines: 48658 Text: Invitation declined.659 _missing_translation_660 */661 "dippler:message:invitation_declined" => "Invitation declined.",662 663 /*664 File: /dippler/mod/dippler/actions/delete_participant.php665 Lines: 30666 Text: You have been removed from the course667 _missing_translation_668 */669 "dippler:system:message:subject:participant_deleted" => "You have been removed from the course",670 671 /*672 File: /dippler/mod/dippler/actions/add_participant.php673 Lines: 80674 Text: Your application to course %s was submitted. Please wait until your application is processed.675 _missing_translation_676 */677 "dippler:system:message:body:course_application_submitted" => "Your application to course %s was submitted. Please wait until your application is processed.",678 679 /*680 File: /dippler/mod/dippler/indexes/add_course.php681 Lines: 31682 Text: Add course683 _missing_translation_684 */685 "dippler:title:add_course" => "Add course",686 687 /*688 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php689 Lines: 85690 Text: Title691 _missing_translation_692 */693 "dippler:course:label:title" => "Title",694 695 /*696 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php697 Lines: 112698 Text: Credits699 _missing_translation_700 */701 "dippler:course:label:credits" => "Credits",702 703 /*704 File: /dippler/mod/dippler/indexes/edit_course.php705 Lines: 36706 Text: Edit course707 _missing_translation_708 */709 "dippler:title:edit_course" => "Edit course",710 711 /*712 835 File: /dippler/mod/dippler/views/default/object/course_listing.php 713 836 Lines: 23 … … 724 847 */ 725 848 "dippler:title:dippler" => "Dippler", 849 850 /* 851 File: /dippler/mod/dippler/actions/delete_assignment.php 852 Lines: 27 853 Text: Assignment could not be deleted. 854 _missing_translation_ 855 */ 856 "dippler:error:assignment_not_deleted" => "Assignment could not be deleted.", 726 857 727 858 ); -
dippler/trunk/languages/et.php
r17 r34 23 23 24 24 /* 25 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 26 Lines: 47 27 Text: Title 28 _missing_translation_ 29 */ 30 "dippler:assignment:label:title" => "Title", 31 32 /* 25 33 File: /dippler/mod/dippler/actions/handle_invitation.php 26 34 Lines: 51 … … 40 48 /* 41 49 File: /dippler/mod/dippler/actions/add_participant.php 42 Lines: 6 550 Lines: 64 43 51 Text: User has been invited to the course, please wait until he or she confirms the invitation. 44 52 _missing_translation_ … … 47 55 48 56 /* 49 File: /dippler/mod/dippler/actions/add_participant.php 50 Lines: 68 57 File: /dippler/mod/dippler/views/default/object/assignment_listing.php 58 Lines: 23 59 Text: Available for answer 60 _missing_translation_ 61 */ 62 "dippler:assignment:label:duration" => "Available for answer", 63 64 /* 65 File: /dippler/mod/dippler/actions/add_participant.php 66 Lines: 67 51 67 Text: You have been invited to the course 52 68 _missing_translation_ … … 88 104 /* 89 105 File: /dippler/mod/dippler/actions/add_participant.php 90 Lines: 70106 Lines: 69 91 107 Text: You have been invited to the course %s. To confirm or decline the registration please go to the course page. 92 108 _missing_translation_ … … 104 120 /* 105 121 File: /dippler/mod/dippler/actions/delete_course.php 106 Lines: 27122 Lines: 30 107 123 Text: Course could not be deleted. 108 124 _missing_translation_ … … 138 154 File: /dippler/mod/dippler/actions/add_participant.php 139 155 File: /dippler/mod/dippler/actions/handle_invitation.php 140 Lines: 30, 5 8, 35156 Lines: 30, 57, 35 141 157 Text: You have been enrolled to the course 142 158 _missing_translation_ … … 146 162 /* 147 163 File: /dippler/mod/dippler/actions/add_participant.php 148 Lines: 7 8164 Lines: 77 149 165 Text: You application was submitted 150 166 _missing_translation_ … … 162 178 /* 163 179 File: /dippler/mod/dippler/actions/add_participant.php 164 Lines: 3 8180 Lines: 37 165 181 Text: Same user can not be enrolled to the course twice. 166 182 _missing_translation_ 167 183 */ 168 184 "dippler:error:can_not_enroll_twice" => "Same user can not be enrolled to the course twice.", 185 186 /* 187 File: /dippler/mod/dippler/views/default/object/assignment.php 188 Lines: 30 189 Text: Task 190 _missing_translation_ 191 */ 192 "dippler:assignment:label:task" => "Task", 169 193 170 194 /* … … 175 199 */ 176 200 "dippler:tab:course:course" => "Course", 201 202 /* 203 File: /dippler/mod/dippler/actions/delete_assignment.php 204 Lines: 24 205 Text: Assignment deleted. 206 _missing_translation_ 207 */ 208 "dippler:message:assignment_deleted" => "Assignment deleted.", 177 209 178 210 /* … … 211 243 212 244 /* 245 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 246 File: /dippler/mod/dippler/views/default/object/assignment.php 247 Lines: 53, 40 248 Text: End 249 _missing_translation_ 250 */ 251 "dippler:assignment:label:end" => "End", 252 253 /* 213 254 File: /dippler/mod/dippler/api.php 214 255 Lines: 85 … … 228 269 /* 229 270 File: /dippler/mod/dippler/actions/action_forwarder.php 230 Lines: 67271 Lines: 77 231 272 Text: Entity guid or action type not provided. 232 273 _missing_translation_ … … 244 285 /* 245 286 File: /dippler/mod/dippler/actions/add_participant.php 246 Lines: 5 5287 Lines: 54 247 288 Text: You have been enrolled to the course %s 248 289 _missing_translation_ … … 252 293 /* 253 294 File: /dippler/mod/dippler/actions/add_participant.php 254 Lines: 7 5295 Lines: 74 255 296 Text: Your application was submitted, you will need to wait until your application is processed. 256 297 _missing_translation_ … … 259 300 260 301 /* 302 File: /dippler/mod/dippler/indexes/add_assignment.php 303 Lines: 28 304 Text: Add assignment 305 _missing_translation_ 306 */ 307 "dippler:title:add_assignment" => "Add assignment", 308 309 /* 310 File: /dippler/mod/dippler/actions/add_assignment.php 261 311 File: /dippler/mod/dippler/actions/add_course.php 312 File: /dippler/mod/dippler/actions/edit_assignment.php 262 313 File: /dippler/mod/dippler/actions/edit_course.php 263 Lines: 59, 60314 Lines: 47, 59, 44, 60 264 315 Text: Error occured, object could not be saved. 265 316 _missing_translation_ … … 311 362 312 363 /* 364 File: /dippler/mod/dippler/views/default/object/assignment.php 365 Lines: 25 366 Text: Back to course <a href=\"%s\">%s</a> 367 _missing_translation_ 368 */ 369 "dippler:assignment:back_to_course" => "Back to course <a href=\"%s\">%s</a>", 370 371 /* 313 372 File: /dippler/mod/dippler/actions/edit_participant.php 314 373 Lines: 45 … … 336 395 337 396 /* 397 File: /dippler/mod/dippler/indexes/add_assignment.php 338 398 File: /dippler/mod/dippler/indexes/add_participant.php 399 File: /dippler/mod/dippler/indexes/edit_assignment.php 339 400 File: /dippler/mod/dippler/indexes/edit_course.php 340 401 File: /dippler/mod/dippler/indexes/edit_participant.php 402 File: /dippler/mod/dippler/indexes/view_assignment.php 341 403 File: /dippler/mod/dippler/indexes/view_course.php 342 Lines: 34, 41, 36, 73404 Lines: 34, 34, 42, 41, 36, 37, 76 343 405 Text: For some reason the object you are trying to view can not be shown (you either have no rights for that, such object does not exist or it has a wrong subtype). 344 406 _missing_translation_ … … 355 417 356 418 /* 419 File: /dippler/mod/dippler/views/default/helpers/dippler_course_participants.php 420 Lines: 101 421 Text: Invited users (still not confirmed invitations) 422 _missing_translation_ 423 */ 424 "dippler:course:invited_awaiting_confirmation" => "Invited users (still not confirmed invitations)", 425 426 /* 357 427 File: /dippler/mod/dippler/views/default/helpers/dippler_course_enroll.php 358 428 Lines: 19 … … 371 441 372 442 /* 443 File: /dippler/mod/dippler/actions/add_assignment.php 444 Lines: 56 445 Text: Assignment added 446 _missing_translation_ 447 */ 448 "dippler:message:assignment_added" => "Assignment added", 449 450 /* 373 451 File: /dippler/mod/dippler/views/default/input/dippler_userselect.php 374 452 Lines: 66 … … 379 457 380 458 /* 459 File: /dippler/mod/dippler/indexes/edit_assignment.php 460 Lines: 37 461 Text: Edit assignment 462 _missing_translation_ 463 */ 464 "dippler:title:edit_assignment" => "Edit assignment", 465 466 /* 381 467 File: /dippler/mod/dippler/actions/activate_participant.php 382 468 Lines: 37 … … 403 489 404 490 /* 491 File: /dippler/mod/dippler/indexes/view_course.php 492 Lines: 46 493 Text: Assignments 494 _missing_translation_ 495 */ 496 "dippler:tab:course:assignments" => "Assignments", 497 498 /* 405 499 File: /dippler/mod/dippler/start.php 406 Lines: 5 0500 Lines: 54 407 501 Text: Add course 408 502 _missing_translation_ … … 428 522 429 523 /* 524 File: /dippler/mod/dippler/actions/add_assignment.php 430 525 File: /dippler/mod/dippler/actions/add_course.php 431 526 File: /dippler/mod/dippler/actions/add_participant.php 527 File: /dippler/mod/dippler/actions/edit_assignment.php 432 528 File: /dippler/mod/dippler/actions/edit_course.php 433 529 File: /dippler/mod/dippler/actions/edit_participant.php 434 Lines: 47, 44, 52, 38530 Lines: 35, 47, 43, 36, 52, 38 435 531 Text: Please fill all required fields. 436 532 _missing_translation_ … … 442 538 File: /dippler/mod/dippler/actions/add_participant.php 443 539 File: /dippler/mod/dippler/actions/handle_invitation.php 444 Lines: 32, 60, 37540 Lines: 32, 59, 37 445 541 Text: You have successfully been enrolled to the course %s 446 542 _missing_translation_ … … 481 577 482 578 /* 579 File: /dippler/mod/dippler/views/default/object/assignment.php 483 580 File: /dippler/mod/dippler/views/default/object/course.php 484 Lines: 62581 Lines: 47, 62 485 582 Text: Edit 486 583 _missing_translation_ … … 505 602 506 603 /* 507 File: /dippler/mod/dippler/views/default/helpers/dippler_course_participants.php 508 Lines: 101 509 Text: Invited users (still not confirmed invitations) 510 _missing_translation_ 511 */ 512 "dippler:course:invited_awaiting_confirmation" => "Invited users (still not confirmed invitations)", 604 File: /dippler/mod/dippler/views/default/object/assignment.php 605 File: /dippler/mod/dippler/views/default/object/course.php 606 Lines: 51, 66 607 Text: Delete 608 _missing_translation_ 609 */ 610 "dippler:action:link:delete" => "Delete", 611 612 /* 613 File: /dippler/mod/dippler/actions/edit_assignment.php 614 Lines: 53 615 Text: Assignment modified 616 _missing_translation_ 617 */ 618 "dippler:message:assignment_modified" => "Assignment modified", 513 619 514 620 /* … … 521 627 522 628 /* 523 File: /dippler/mod/dippler/actions/add_participant.php 524 Lines: 86 629 File: /dippler/mod/dippler/views/default/dippler/course_assignments.php 630 Lines: 18 631 Text: Add assignment 632 _missing_translation_ 633 */ 634 "dippler:action:link:add_assignment" => "Add assignment", 635 636 /* 637 File: /dippler/mod/dippler/actions/add_participant.php 638 Lines: 85 525 639 Text: Participant could not be enrolled to the course %s 526 640 _missing_translation_ … … 538 652 539 653 /* 654 File: /dippler/mod/dippler/indexes/add_course.php 655 Lines: 31 656 Text: Add course 657 _missing_translation_ 658 */ 659 "dippler:title:add_course" => "Add course", 660 661 /* 540 662 File: /dippler/mod/dippler/actions/delete_course.php 541 Lines: 2 4663 Lines: 27 542 664 Text: Course deleted. 543 665 _missing_translation_ … … 580 702 581 703 /* 582 File: /dippler/mod/dippler/ views/default/object/course.php583 Lines: 66584 Text: Delete585 _missing_translation_ 586 */ 587 "dippler: action:link:delete" => "Delete",704 File: /dippler/mod/dippler/indexes/edit_course.php 705 Lines: 36 706 Text: Edit course 707 _missing_translation_ 708 */ 709 "dippler:title:edit_course" => "Edit course", 588 710 589 711 /* … … 597 719 /* 598 720 File: /dippler/mod/dippler/start.php 599 Lines: 47721 Lines: 51 600 722 Text: Dippler 601 723 _missing_translation_ … … 621 743 622 744 /* 745 File: /dippler/mod/dippler/views/default/dippler/course_assignments.php 746 Lines: 24 747 Text: Assignments 748 _missing_translation_ 749 */ 750 "dippler:course:assignments" => "Assignments", 751 752 /* 753 File: /dippler/mod/dippler/indexes/add_participant.php 754 Lines: 28 755 Text: Enroll to the course 756 _missing_translation_ 757 */ 758 "dippler:title:course_enroll" => "Enroll to the course", 759 760 /* 761 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 762 File: /dippler/mod/dippler/views/default/object/course.php 763 Lines: 97, 43 764 Text: Cost 765 _missing_translation_ 766 */ 767 "dippler:course:label:cost" => "Cost", 768 769 /* 770 File: /dippler/mod/dippler/actions/add_course.php 771 Lines: 74 772 Text: Course added 773 _missing_translation_ 774 */ 775 "dippler:message:course_added" => "Course added", 776 777 /* 778 File: /dippler/mod/dippler/actions/handle_invitation.php 779 Lines: 48 780 Text: Invitation declined. 781 _missing_translation_ 782 */ 783 "dippler:message:invitation_declined" => "Invitation declined.", 784 785 /* 786 File: /dippler/mod/dippler/actions/delete_participant.php 787 Lines: 30 788 Text: You have been removed from the course 789 _missing_translation_ 790 */ 791 "dippler:system:message:subject:participant_deleted" => "You have been removed from the course", 792 793 /* 794 File: /dippler/mod/dippler/actions/add_participant.php 795 Lines: 79 796 Text: Your application to course %s was submitted. Please wait until your application is processed. 797 _missing_translation_ 798 */ 799 "dippler:system:message:body:course_application_submitted" => "Your application to course %s was submitted. Please wait until your application is processed.", 800 801 /* 802 File: /dippler/mod/dippler/views/default/dippler/forms/edit_assignment.php 803 File: /dippler/mod/dippler/views/default/object/assignment.php 804 Lines: 50, 35 805 Text: Start 806 _missing_translation_ 807 */ 808 "dippler:assignment:label:start" => "Start", 809 810 /* 811 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 812 Lines: 85 813 Text: Title 814 _missing_translation_ 815 */ 816 "dippler:course:label:title" => "Title", 817 818 /* 819 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 820 Lines: 112 821 Text: Credits 822 _missing_translation_ 823 */ 824 "dippler:course:label:credits" => "Credits", 825 826 /* 623 827 File: /dippler/mod/dippler/api.php 624 828 Lines: 81 … … 629 833 630 834 /* 631 File: /dippler/mod/dippler/indexes/add_participant.php632 Lines: 28633 Text: Enroll to the course634 _missing_translation_635 */636 "dippler:title:course_enroll" => "Enroll to the course",637 638 /*639 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php640 File: /dippler/mod/dippler/views/default/object/course.php641 Lines: 97, 43642 Text: Cost643 _missing_translation_644 */645 "dippler:course:label:cost" => "Cost",646 647 /*648 File: /dippler/mod/dippler/actions/add_course.php649 Lines: 74650 Text: Course added651 _missing_translation_652 */653 "dippler:message:course_added" => "Course added",654 655 /*656 File: /dippler/mod/dippler/actions/handle_invitation.php657 Lines: 48658 Text: Invitation declined.659 _missing_translation_660 */661 "dippler:message:invitation_declined" => "Invitation declined.",662 663 /*664 File: /dippler/mod/dippler/actions/delete_participant.php665 Lines: 30666 Text: You have been removed from the course667 _missing_translation_668 */669 "dippler:system:message:subject:participant_deleted" => "You have been removed from the course",670 671 /*672 File: /dippler/mod/dippler/actions/add_participant.php673 Lines: 80674 Text: Your application to course %s was submitted. Please wait until your application is processed.675 _missing_translation_676 */677 "dippler:system:message:body:course_application_submitted" => "Your application to course %s was submitted. Please wait until your application is processed.",678 679 /*680 File: /dippler/mod/dippler/indexes/add_course.php681 Lines: 31682 Text: Add course683 _missing_translation_684 */685 "dippler:title:add_course" => "Add course",686 687 /*688 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php689 Lines: 85690 Text: Title691 _missing_translation_692 */693 "dippler:course:label:title" => "Title",694 695 /*696 File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php697 Lines: 112698 Text: Credits699 _missing_translation_700 */701 "dippler:course:label:credits" => "Credits",702 703 /*704 File: /dippler/mod/dippler/indexes/edit_course.php705 Lines: 36706 Text: Edit course707 _missing_translation_708 */709 "dippler:title:edit_course" => "Edit course",710 711 /*712 835 File: /dippler/mod/dippler/views/default/object/course_listing.php 713 836 Lines: 23 … … 724 847 */ 725 848 "dippler:title:dippler" => "Dippler", 849 850 /* 851 File: /dippler/mod/dippler/actions/delete_assignment.php 852 Lines: 27 853 Text: Assignment could not be deleted. 854 _missing_translation_ 855 */ 856 "dippler:error:assignment_not_deleted" => "Assignment could not be deleted.", 726 857 727 858 ); -
dippler/trunk/start.php
r33 r34 109 109 break; 110 110 case "edit_assignment": 111 set_input('course_guid', $page[1]); 112 set_input('assignment_guid', $page[2]); 111 set_input('assignment_guid', $page[1]); 113 112 include($CONFIG->pluginspath . 'dippler/indexes/edit_assignment.php'); 114 113 break; … … 147 146 register_action('dippler/handle_invitation', false, $CONFIG->pluginspath . 'dippler/actions/handle_invitation.php'); 148 147 register_action('dippler/add_assignment', false, $CONFIG->pluginspath . 'dippler/actions/add_assignment.php'); 148 register_action('dippler/edit_assignment', false, $CONFIG->pluginspath . 'dippler/actions/edit_assignment.php'); 149 register_action('dippler/delete_assignment', false, $CONFIG->pluginspath . 'dippler/actions/delete_assignment.php'); 149 150 ?> -
dippler/trunk/views/default/dippler/course_assignments.php
r33 r34 14 14 $body = ''; 15 15 $course = $vars['entity']; 16 $body .= '<div id="dippler_course_assignments">'; 17 $body .= '<div id="dippler_course_add_assignment">'; 16 18 /*translation:Add assignment*/ 17 19 $body .= '<a href="' . elgg_add_action_tokens_to_url($vars['url'] . 'action/dippler/action_forwarder?subtype=assignment&course_guid='.$course->guid) . '">' . elgg_echo('dippler:action:link:add_assignment') . '</a>'; 20 $body .= '</div>'; // end dippler_course_add_assignment 18 21 19 22 $assignments = dipplerGetCourseAssignments($course->guid); 20 23 24 /*translation:Assignments*/ 25 $body .= '<h3>'.elgg_echo('dippler:course:assignments').'</h3>'; 21 26 if (is_array($assignments) && sizeof($assignments) > 0) { 22 var_dump($assignments);27 $body .= elgg_view_entity_list($assignments, sizeof($assignments), 0, sizeof($assignments), false, false, false); 23 28 } 29 $body .= '</div>'; // end dippler_course_assignments 24 30 25 31 echo $body; -
dippler/trunk/views/default/dippler/forms/edit_assignment.php
r33 r34 47 47 $title_label = elgg_echo('dippler:assignment:label:title'); 48 48 $title_input = elgg_view('input/text', array('internalname' => 'assignment_title', 'value' => $title)); 49 /*translation:Start s*/49 /*translation:Start*/ 50 50 $start_label = elgg_echo('dippler:assignment:label:start'); 51 51 $start_input = elgg_view('input/dippler_calendar', array('internalname' => 'assignment_start', 'value' => $start));

