Changeset 34

Show
Ignore:
Timestamp:
05.10.2010 16:50:24 (4 years ago)
Author:
gnum
Message:

Assignments can now be added to the course.

Location:
dippler/trunk
Files:
5 added
9 modified

Legend:

Unmodified
Added
Removed
  • dippler/trunk/actions/action_forwarder.php

    r33 r34  
    6666                                unset($_SESSION['assignment_title']); unset($_SESSION['assignment_start']); unset($_SESSION['assignment_end']); unset($_SESSION['assignment_task']); 
    6767                        } 
    68                         $course_guid = get_input('course_guid'); 
    6968                        if ($action_type == 'add') { 
     69                            $course_guid = get_input('course_guid'); 
    7070                                forward($CONFIG->wwwroot . 'pg/dippler/add_assignment/' . $course_guid); 
    7171                        } 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); 
    7373                        } 
    7474                } 
  • dippler/trunk/actions/delete_course.php

    r7 r34  
    2121                 $rowsaffected = $course->delete(); 
    2222                 if ($rowsaffected > 0) { 
     23                         // TODO DELETE ASSIGNMENTS 
     24                         // TODO DELETE PARTICIPANTS 
     25                         // TODO DELETE ANSWERS 
    2326                         /*translation:Course deleted.*/ 
    2427                         system_message(elgg_echo('dippler:message:course_deleted')); 
  • dippler/trunk/api.php

    r33 r34  
    223223         */ 
    224224 
     225        // returns all assignments of course 
    225226        function dipplerGetCourseAssignments($course_guid) { 
    226227                return elgg_get_entities_from_relationship(array('relationship' => 'isAssignmentOf', 'relationship_guid' => $course_guid, 'inverse_relationship' => true, 'type' => 'object', 'subtype' => 'assignment', 'limit' => 0)); 
    227228        } 
     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        } 
    228238?> 
  • dippler/trunk/indexes/view_course.php

    r33 r34  
    7878 
    7979        $body .= '</div>'; // dippler_wrapper end 
    80  
     80    global $autofeed; 
     81        $autofeed = false; 
    8182    $content = elgg_view_layout('two_column_left_sidebar', '', $body); 
    8283    page_draw(null, $content); 
  • dippler/trunk/languages/en.php

    r17 r34  
    2323         
    2424        /*  
     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        /*  
    2533        File: /dippler/mod/dippler/actions/handle_invitation.php 
    2634        Lines: 51 
     
    4048        /*  
    4149        File: /dippler/mod/dippler/actions/add_participant.php 
    42         Lines: 65 
     50        Lines: 64 
    4351        Text: User has been invited to the course, please wait until he or she confirms the invitation. 
    4452        _missing_translation_ 
     
    4755         
    4856        /*  
    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 
    5167        Text: You have been invited to the course 
    5268        _missing_translation_ 
     
    88104        /*  
    89105        File: /dippler/mod/dippler/actions/add_participant.php 
    90         Lines: 70 
     106        Lines: 69 
    91107        Text: You have been invited to the course %s. To confirm or decline the registration please go to the course page. 
    92108        _missing_translation_ 
     
    104120        /*  
    105121        File: /dippler/mod/dippler/actions/delete_course.php 
    106         Lines: 27 
     122        Lines: 30 
    107123        Text: Course could not be deleted. 
    108124        _missing_translation_ 
     
    138154        File: /dippler/mod/dippler/actions/add_participant.php 
    139155        File: /dippler/mod/dippler/actions/handle_invitation.php 
    140         Lines: 30, 58, 35 
     156        Lines: 30, 57, 35 
    141157        Text: You have been enrolled to the course 
    142158        _missing_translation_ 
     
    146162        /*  
    147163        File: /dippler/mod/dippler/actions/add_participant.php 
    148         Lines: 78 
     164        Lines: 77 
    149165        Text: You application was submitted 
    150166        _missing_translation_ 
     
    162178        /*  
    163179        File: /dippler/mod/dippler/actions/add_participant.php 
    164         Lines: 38 
     180        Lines: 37 
    165181        Text: Same user can not be enrolled to the course twice. 
    166182        _missing_translation_ 
    167183        */ 
    168184        "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", 
    169193         
    170194        /*  
     
    175199        */ 
    176200        "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.", 
    177209         
    178210        /*  
     
    211243         
    212244        /*  
     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        /*  
    213254        File: /dippler/mod/dippler/api.php 
    214255        Lines: 85 
     
    228269        /*  
    229270        File: /dippler/mod/dippler/actions/action_forwarder.php 
    230         Lines: 67 
     271        Lines: 77 
    231272        Text: Entity guid or action type not provided. 
    232273        _missing_translation_ 
     
    244285        /*  
    245286        File: /dippler/mod/dippler/actions/add_participant.php 
    246         Lines: 55 
     287        Lines: 54 
    247288        Text: You have been enrolled to the course %s 
    248289        _missing_translation_ 
     
    252293        /*  
    253294        File: /dippler/mod/dippler/actions/add_participant.php 
    254         Lines: 75 
     295        Lines: 74 
    255296        Text: Your application was submitted, you will need to wait until your application is processed. 
    256297        _missing_translation_ 
     
    259300         
    260301        /*  
     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 
    261311        File: /dippler/mod/dippler/actions/add_course.php 
     312        File: /dippler/mod/dippler/actions/edit_assignment.php 
    262313        File: /dippler/mod/dippler/actions/edit_course.php 
    263         Lines: 59, 60 
     314        Lines: 47, 59, 44, 60 
    264315        Text: Error occured, object could not be saved. 
    265316        _missing_translation_ 
     
    311362         
    312363        /*  
     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        /*  
    313372        File: /dippler/mod/dippler/actions/edit_participant.php 
    314373        Lines: 45 
     
    336395         
    337396        /*  
     397        File: /dippler/mod/dippler/indexes/add_assignment.php 
    338398        File: /dippler/mod/dippler/indexes/add_participant.php 
     399        File: /dippler/mod/dippler/indexes/edit_assignment.php 
    339400        File: /dippler/mod/dippler/indexes/edit_course.php 
    340401        File: /dippler/mod/dippler/indexes/edit_participant.php 
     402        File: /dippler/mod/dippler/indexes/view_assignment.php 
    341403        File: /dippler/mod/dippler/indexes/view_course.php 
    342         Lines: 34, 41, 36, 73 
     404        Lines: 34, 34, 42, 41, 36, 37, 76 
    343405        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). 
    344406        _missing_translation_ 
     
    355417         
    356418        /*  
     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        /*  
    357427        File: /dippler/mod/dippler/views/default/helpers/dippler_course_enroll.php 
    358428        Lines: 19 
     
    371441         
    372442        /*  
     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        /*  
    373451        File: /dippler/mod/dippler/views/default/input/dippler_userselect.php 
    374452        Lines: 66 
     
    379457         
    380458        /*  
     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        /*  
    381467        File: /dippler/mod/dippler/actions/activate_participant.php 
    382468        Lines: 37 
     
    403489         
    404490        /*  
     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        /*  
    405499        File: /dippler/mod/dippler/start.php 
    406         Lines: 50 
     500        Lines: 54 
    407501        Text: Add course 
    408502        _missing_translation_ 
     
    428522         
    429523        /*  
     524        File: /dippler/mod/dippler/actions/add_assignment.php 
    430525        File: /dippler/mod/dippler/actions/add_course.php 
    431526        File: /dippler/mod/dippler/actions/add_participant.php 
     527        File: /dippler/mod/dippler/actions/edit_assignment.php 
    432528        File: /dippler/mod/dippler/actions/edit_course.php 
    433529        File: /dippler/mod/dippler/actions/edit_participant.php 
    434         Lines: 47, 44, 52, 38 
     530        Lines: 35, 47, 43, 36, 52, 38 
    435531        Text: Please fill all required fields. 
    436532        _missing_translation_ 
     
    442538        File: /dippler/mod/dippler/actions/add_participant.php 
    443539        File: /dippler/mod/dippler/actions/handle_invitation.php 
    444         Lines: 32, 60, 37 
     540        Lines: 32, 59, 37 
    445541        Text: You have successfully been enrolled to the course %s 
    446542        _missing_translation_ 
     
    481577         
    482578        /*  
     579        File: /dippler/mod/dippler/views/default/object/assignment.php 
    483580        File: /dippler/mod/dippler/views/default/object/course.php 
    484         Lines: 62 
     581        Lines: 47, 62 
    485582        Text: Edit 
    486583        _missing_translation_ 
     
    505602         
    506603        /*  
    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", 
    513619         
    514620        /*  
     
    521627         
    522628        /*  
    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 
    525639        Text: Participant could not be enrolled to the course %s 
    526640        _missing_translation_ 
     
    538652         
    539653        /*  
     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        /*  
    540662        File: /dippler/mod/dippler/actions/delete_course.php 
    541         Lines: 24 
     663        Lines: 27 
    542664        Text: Course deleted. 
    543665        _missing_translation_ 
     
    580702         
    581703        /*  
    582         File: /dippler/mod/dippler/views/default/object/course.php 
    583         Lines: 66 
    584         Text: Delete 
    585         _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", 
    588710         
    589711        /*  
     
    597719        /*  
    598720        File: /dippler/mod/dippler/start.php 
    599         Lines: 47 
     721        Lines: 51 
    600722        Text: Dippler 
    601723        _missing_translation_ 
     
    621743         
    622744        /*  
     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        /*  
    623827        File: /dippler/mod/dippler/api.php 
    624828        Lines: 81 
     
    629833         
    630834        /*  
    631         File: /dippler/mod/dippler/indexes/add_participant.php 
    632         Lines: 28 
    633         Text: Enroll to the course 
    634         _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.php 
    640         File: /dippler/mod/dippler/views/default/object/course.php 
    641         Lines: 97, 43 
    642         Text: Cost 
    643         _missing_translation_ 
    644         */ 
    645         "dippler:course:label:cost" => "Cost", 
    646          
    647         /*  
    648         File: /dippler/mod/dippler/actions/add_course.php 
    649         Lines: 74 
    650         Text: Course added 
    651         _missing_translation_ 
    652         */ 
    653         "dippler:message:course_added" => "Course added", 
    654          
    655         /*  
    656         File: /dippler/mod/dippler/actions/handle_invitation.php 
    657         Lines: 48 
    658         Text: Invitation declined. 
    659         _missing_translation_ 
    660         */ 
    661         "dippler:message:invitation_declined" => "Invitation declined.", 
    662          
    663         /*  
    664         File: /dippler/mod/dippler/actions/delete_participant.php 
    665         Lines: 30 
    666         Text: You have been removed from the course 
    667         _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.php 
    673         Lines: 80 
    674         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.php 
    681         Lines: 31 
    682         Text: Add course 
    683         _missing_translation_ 
    684         */ 
    685         "dippler:title:add_course" => "Add course", 
    686          
    687         /*  
    688         File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 
    689         Lines: 85 
    690         Text: Title 
    691         _missing_translation_ 
    692         */ 
    693         "dippler:course:label:title" => "Title", 
    694          
    695         /*  
    696         File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 
    697         Lines: 112 
    698         Text: Credits 
    699         _missing_translation_ 
    700         */ 
    701         "dippler:course:label:credits" => "Credits", 
    702          
    703         /*  
    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", 
    710          
    711         /*  
    712835        File: /dippler/mod/dippler/views/default/object/course_listing.php 
    713836        Lines: 23 
     
    724847        */ 
    725848        "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.", 
    726857         
    727858    ); 
  • dippler/trunk/languages/et.php

    r17 r34  
    2323         
    2424        /*  
     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        /*  
    2533        File: /dippler/mod/dippler/actions/handle_invitation.php 
    2634        Lines: 51 
     
    4048        /*  
    4149        File: /dippler/mod/dippler/actions/add_participant.php 
    42         Lines: 65 
     50        Lines: 64 
    4351        Text: User has been invited to the course, please wait until he or she confirms the invitation. 
    4452        _missing_translation_ 
     
    4755         
    4856        /*  
    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 
    5167        Text: You have been invited to the course 
    5268        _missing_translation_ 
     
    88104        /*  
    89105        File: /dippler/mod/dippler/actions/add_participant.php 
    90         Lines: 70 
     106        Lines: 69 
    91107        Text: You have been invited to the course %s. To confirm or decline the registration please go to the course page. 
    92108        _missing_translation_ 
     
    104120        /*  
    105121        File: /dippler/mod/dippler/actions/delete_course.php 
    106         Lines: 27 
     122        Lines: 30 
    107123        Text: Course could not be deleted. 
    108124        _missing_translation_ 
     
    138154        File: /dippler/mod/dippler/actions/add_participant.php 
    139155        File: /dippler/mod/dippler/actions/handle_invitation.php 
    140         Lines: 30, 58, 35 
     156        Lines: 30, 57, 35 
    141157        Text: You have been enrolled to the course 
    142158        _missing_translation_ 
     
    146162        /*  
    147163        File: /dippler/mod/dippler/actions/add_participant.php 
    148         Lines: 78 
     164        Lines: 77 
    149165        Text: You application was submitted 
    150166        _missing_translation_ 
     
    162178        /*  
    163179        File: /dippler/mod/dippler/actions/add_participant.php 
    164         Lines: 38 
     180        Lines: 37 
    165181        Text: Same user can not be enrolled to the course twice. 
    166182        _missing_translation_ 
    167183        */ 
    168184        "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", 
    169193         
    170194        /*  
     
    175199        */ 
    176200        "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.", 
    177209         
    178210        /*  
     
    211243         
    212244        /*  
     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        /*  
    213254        File: /dippler/mod/dippler/api.php 
    214255        Lines: 85 
     
    228269        /*  
    229270        File: /dippler/mod/dippler/actions/action_forwarder.php 
    230         Lines: 67 
     271        Lines: 77 
    231272        Text: Entity guid or action type not provided. 
    232273        _missing_translation_ 
     
    244285        /*  
    245286        File: /dippler/mod/dippler/actions/add_participant.php 
    246         Lines: 55 
     287        Lines: 54 
    247288        Text: You have been enrolled to the course %s 
    248289        _missing_translation_ 
     
    252293        /*  
    253294        File: /dippler/mod/dippler/actions/add_participant.php 
    254         Lines: 75 
     295        Lines: 74 
    255296        Text: Your application was submitted, you will need to wait until your application is processed. 
    256297        _missing_translation_ 
     
    259300         
    260301        /*  
     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 
    261311        File: /dippler/mod/dippler/actions/add_course.php 
     312        File: /dippler/mod/dippler/actions/edit_assignment.php 
    262313        File: /dippler/mod/dippler/actions/edit_course.php 
    263         Lines: 59, 60 
     314        Lines: 47, 59, 44, 60 
    264315        Text: Error occured, object could not be saved. 
    265316        _missing_translation_ 
     
    311362         
    312363        /*  
     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        /*  
    313372        File: /dippler/mod/dippler/actions/edit_participant.php 
    314373        Lines: 45 
     
    336395         
    337396        /*  
     397        File: /dippler/mod/dippler/indexes/add_assignment.php 
    338398        File: /dippler/mod/dippler/indexes/add_participant.php 
     399        File: /dippler/mod/dippler/indexes/edit_assignment.php 
    339400        File: /dippler/mod/dippler/indexes/edit_course.php 
    340401        File: /dippler/mod/dippler/indexes/edit_participant.php 
     402        File: /dippler/mod/dippler/indexes/view_assignment.php 
    341403        File: /dippler/mod/dippler/indexes/view_course.php 
    342         Lines: 34, 41, 36, 73 
     404        Lines: 34, 34, 42, 41, 36, 37, 76 
    343405        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). 
    344406        _missing_translation_ 
     
    355417         
    356418        /*  
     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        /*  
    357427        File: /dippler/mod/dippler/views/default/helpers/dippler_course_enroll.php 
    358428        Lines: 19 
     
    371441         
    372442        /*  
     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        /*  
    373451        File: /dippler/mod/dippler/views/default/input/dippler_userselect.php 
    374452        Lines: 66 
     
    379457         
    380458        /*  
     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        /*  
    381467        File: /dippler/mod/dippler/actions/activate_participant.php 
    382468        Lines: 37 
     
    403489         
    404490        /*  
     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        /*  
    405499        File: /dippler/mod/dippler/start.php 
    406         Lines: 50 
     500        Lines: 54 
    407501        Text: Add course 
    408502        _missing_translation_ 
     
    428522         
    429523        /*  
     524        File: /dippler/mod/dippler/actions/add_assignment.php 
    430525        File: /dippler/mod/dippler/actions/add_course.php 
    431526        File: /dippler/mod/dippler/actions/add_participant.php 
     527        File: /dippler/mod/dippler/actions/edit_assignment.php 
    432528        File: /dippler/mod/dippler/actions/edit_course.php 
    433529        File: /dippler/mod/dippler/actions/edit_participant.php 
    434         Lines: 47, 44, 52, 38 
     530        Lines: 35, 47, 43, 36, 52, 38 
    435531        Text: Please fill all required fields. 
    436532        _missing_translation_ 
     
    442538        File: /dippler/mod/dippler/actions/add_participant.php 
    443539        File: /dippler/mod/dippler/actions/handle_invitation.php 
    444         Lines: 32, 60, 37 
     540        Lines: 32, 59, 37 
    445541        Text: You have successfully been enrolled to the course %s 
    446542        _missing_translation_ 
     
    481577         
    482578        /*  
     579        File: /dippler/mod/dippler/views/default/object/assignment.php 
    483580        File: /dippler/mod/dippler/views/default/object/course.php 
    484         Lines: 62 
     581        Lines: 47, 62 
    485582        Text: Edit 
    486583        _missing_translation_ 
     
    505602         
    506603        /*  
    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", 
    513619         
    514620        /*  
     
    521627         
    522628        /*  
    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 
    525639        Text: Participant could not be enrolled to the course %s 
    526640        _missing_translation_ 
     
    538652         
    539653        /*  
     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        /*  
    540662        File: /dippler/mod/dippler/actions/delete_course.php 
    541         Lines: 24 
     663        Lines: 27 
    542664        Text: Course deleted. 
    543665        _missing_translation_ 
     
    580702         
    581703        /*  
    582         File: /dippler/mod/dippler/views/default/object/course.php 
    583         Lines: 66 
    584         Text: Delete 
    585         _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", 
    588710         
    589711        /*  
     
    597719        /*  
    598720        File: /dippler/mod/dippler/start.php 
    599         Lines: 47 
     721        Lines: 51 
    600722        Text: Dippler 
    601723        _missing_translation_ 
     
    621743         
    622744        /*  
     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        /*  
    623827        File: /dippler/mod/dippler/api.php 
    624828        Lines: 81 
     
    629833         
    630834        /*  
    631         File: /dippler/mod/dippler/indexes/add_participant.php 
    632         Lines: 28 
    633         Text: Enroll to the course 
    634         _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.php 
    640         File: /dippler/mod/dippler/views/default/object/course.php 
    641         Lines: 97, 43 
    642         Text: Cost 
    643         _missing_translation_ 
    644         */ 
    645         "dippler:course:label:cost" => "Cost", 
    646          
    647         /*  
    648         File: /dippler/mod/dippler/actions/add_course.php 
    649         Lines: 74 
    650         Text: Course added 
    651         _missing_translation_ 
    652         */ 
    653         "dippler:message:course_added" => "Course added", 
    654          
    655         /*  
    656         File: /dippler/mod/dippler/actions/handle_invitation.php 
    657         Lines: 48 
    658         Text: Invitation declined. 
    659         _missing_translation_ 
    660         */ 
    661         "dippler:message:invitation_declined" => "Invitation declined.", 
    662          
    663         /*  
    664         File: /dippler/mod/dippler/actions/delete_participant.php 
    665         Lines: 30 
    666         Text: You have been removed from the course 
    667         _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.php 
    673         Lines: 80 
    674         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.php 
    681         Lines: 31 
    682         Text: Add course 
    683         _missing_translation_ 
    684         */ 
    685         "dippler:title:add_course" => "Add course", 
    686          
    687         /*  
    688         File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 
    689         Lines: 85 
    690         Text: Title 
    691         _missing_translation_ 
    692         */ 
    693         "dippler:course:label:title" => "Title", 
    694          
    695         /*  
    696         File: /dippler/mod/dippler/views/default/dippler/forms/edit_course.php 
    697         Lines: 112 
    698         Text: Credits 
    699         _missing_translation_ 
    700         */ 
    701         "dippler:course:label:credits" => "Credits", 
    702          
    703         /*  
    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", 
    710          
    711         /*  
    712835        File: /dippler/mod/dippler/views/default/object/course_listing.php 
    713836        Lines: 23 
     
    724847        */ 
    725848        "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.", 
    726857         
    727858    ); 
  • dippler/trunk/start.php

    r33 r34  
    109109                                break; 
    110110                        case "edit_assignment": 
    111                                 set_input('course_guid', $page[1]); 
    112                                 set_input('assignment_guid', $page[2]); 
     111                                set_input('assignment_guid', $page[1]); 
    113112                                include($CONFIG->pluginspath . 'dippler/indexes/edit_assignment.php'); 
    114113                                break; 
     
    147146        register_action('dippler/handle_invitation', false, $CONFIG->pluginspath . 'dippler/actions/handle_invitation.php'); 
    148147        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'); 
    149150?> 
  • dippler/trunk/views/default/dippler/course_assignments.php

    r33 r34  
    1414                $body = ''; 
    1515                $course = $vars['entity']; 
     16                $body .= '<div id="dippler_course_assignments">'; 
     17                $body .= '<div id="dippler_course_add_assignment">'; 
    1618                /*translation:Add assignment*/ 
    1719                $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 
    1821 
    1922                $assignments = dipplerGetCourseAssignments($course->guid); 
    2023 
     24                /*translation:Assignments*/ 
     25                $body .= '<h3>'.elgg_echo('dippler:course:assignments').'</h3>'; 
    2126                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); 
    2328                } 
     29                $body .= '</div>'; // end dippler_course_assignments 
    2430 
    2531                echo $body; 
  • dippler/trunk/views/default/dippler/forms/edit_assignment.php

    r33 r34  
    4747                $title_label = elgg_echo('dippler:assignment:label:title'); 
    4848                $title_input = elgg_view('input/text', array('internalname' => 'assignment_title', 'value' => $title)); 
    49                 /*translation:Starts*/ 
     49                /*translation:Start*/ 
    5050                $start_label = elgg_echo('dippler:assignment:label:start'); 
    5151                $start_input = elgg_view('input/dippler_calendar', array('internalname' => 'assignment_start', 'value' => $start));