diff options
Diffstat (limited to 'modules-available/exams')
-rw-r--r-- | modules-available/exams/lang/de/template-tags.json | 16 | ||||
-rw-r--r-- | modules-available/exams/lang/en/template-tags.json | 16 | ||||
-rw-r--r-- | modules-available/exams/templates/page-add-exam.html | 16 | ||||
-rw-r--r-- | modules-available/exams/templates/page-exams.html | 21 |
4 files changed, 50 insertions, 19 deletions
diff --git a/modules-available/exams/lang/de/template-tags.json b/modules-available/exams/lang/de/template-tags.json new file mode 100644 index 00000000..19b919bb --- /dev/null +++ b/modules-available/exams/lang/de/template-tags.json @@ -0,0 +1,16 @@ +{ + "lang_addExam": "Klausurzeitraum hinzufügen", + "lang_allExamPeriods": "Alle Klausurzeiträume", + "lang_deleteConfirmation": "Wirklich löschen?", + "lang_id" : "ID", + "lang_locations" : "Räume/Orte", + "lang_begin" : "Beginn", + "lang_end" : "Ende", + "lang_actions" : "Aktionen", + "lang_location" : "Raum/Ort", + "lang_begin_date" : "Beginn Datum", + "lang_begin_time" : "Uhrzeit", + "lang_end_date" : "Ende Datum", + "lang_end_time" : "Uhrzeit", + "lang_description" : "Beschreibung" +} diff --git a/modules-available/exams/lang/en/template-tags.json b/modules-available/exams/lang/en/template-tags.json new file mode 100644 index 00000000..243528fd --- /dev/null +++ b/modules-available/exams/lang/en/template-tags.json @@ -0,0 +1,16 @@ +{ + "lang_addExam": "Add exam period", + "lang_allExamPeriods": "All exam periods", + "lang_deleteConfirmation": "Are you sure?", + "lang_id" : "ID", + "lang_locations" : "Rooms/Locations", + "lang_begin" : "Begin", + "lang_end" : "End", + "lang_actions" : "Actions", + "lang_location" : "Room/Location", + "lang_begin_date" : "Begin Date", + "lang_begin_time" : "Time", + "lang_end_date" : "End Date", + "lang_end_time" : "Time", + "lang_description" : "Description" +} diff --git a/modules-available/exams/templates/page-add-exam.html b/modules-available/exams/templates/page-add-exam.html index ebbccd6b..89a7881a 100644 --- a/modules-available/exams/templates/page-add-exam.html +++ b/modules-available/exams/templates/page-add-exam.html @@ -1,8 +1,8 @@ -<h1>Add Exam</h1> +<h1>{{lang_addExam}}</h1> <form class="form" method="POST" action="?do=exams&action=add"> <div class="form-group"> - <label for="locations">Location</label> + <label for="locations">{{lang_location}}</label> <select id="locations" multiple="multiple" name="locations[]" class=""> {{#locations}} <option value="{{locationid}}"> {{locationname}} </option> @@ -12,34 +12,34 @@ <div class="row"> <div class="form-group col-xs-6"> - <label for="starttime_date">Start Date</label> + <label for="starttime_date">{{lang_begin_date}}</label> <input required class="form-control datepicker" name="starttime_date" /> </div> <div class="form-group col-xs-6"> - <label for="starttime_time">Start Time</label> + <label for="starttime_time">{{lang_begin_time}}</label> <input required type="text" class="form-control timepicker" name="starttime_time" /> </div> </div> <div class="row"> <div class="form-group col-xs-6"> - <label for="endtime_date">End Date</label> + <label for="endtime_date">{{lang_end_date}}</label> <input required class="form-control datepicker" name="endtime_date" /> </div> <div class="form-group col-xs-6"> - <label for="endtime_time">End Time</label> + <label for="endtime_time">{{lang_end_time}}</label> <input required type="texxt" class="form-control timepicker" name="endtime_time" /> </div> </div> <div class="row"> <div class="form-group col-xs-12"> - <label for="description">Description</label> + <label for="description">{{lang_description}}</label> <textarea class="form-control" type="textarea" name="description"></textarea> </div> </div> <input type="hidden" name="token" value="{{token}}" /> - <input type="submit" class="btn btn-success" value="Add Exam"></input> + <input type="submit" class="btn btn-success" value="{{lang_addExam}}"></input> </form> <script type="application/javascript"><!-- diff --git a/modules-available/exams/templates/page-exams.html b/modules-available/exams/templates/page-exams.html index 9e3c102f..9da3578c 100644 --- a/modules-available/exams/templates/page-exams.html +++ b/modules-available/exams/templates/page-exams.html @@ -1,33 +1,32 @@ <div class="container-fluid"> - <h1>All Exams</h1> + <h1>{{lang_allExamPeriods}}</h1> <table class="table"> <tr> - <th>ID</th> - <th>Location</th> - <th>Begin</th> - <th>End</th> - <th>Actions</th> + <th>{{lang_id}}</th> + <th>{{lang_locations}}</th> + <th>{{lang_begin}}</th> + <th>{{lang_end}}</th> + <th>{{lang_actions}}</th> </tr> {{#exams}} <tr> <td>{{examid}}</td> - <td> {{locationnames}} </td> + <td>{{locationnames}} </td> <td>{{starttime}}</td> <td>{{endtime}}</td> <td> - <form method="POST" action="?do=exams&action=delete" - onsubmit="return confirm('delete really?');"> + <form method="POST" action="?do=exams&action=delete" onsubmit="return confirm('{{lang_deleteConfirmation}}');"> <input type="hidden" name="token" value="{{token}}"/> <input type="hidden" name="examid" value="{{examid}}"/> - <input type="submit" value="Delete" class="btn btn-sm" /> + <input type="submit" value="{{lang_delete}}" class="btn btn-sm" /> </form> </td> </tr> {{/exams}} </table> - <a href="?do=exams&action=add" class="btn btn-success">Add Exam </a> + <a href="?do=exams&action=add" class="btn btn-success">{{lang_addExam}}</a> <div class="block" id="timeline"> </div> |