Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from noten-app/user-unique-ids
Browse files Browse the repository at this point in the history
🐛 Fix forgotten changes
  • Loading branch information
CuzImBisonratte authored Nov 22, 2023
2 parents 152cc6c + 869c7c7 commit 0907bd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions homework/edit/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
<select name="subject-selector" id="subject-selector">
<?php
foreach ($subjectlist as $subject) {
if ($task["subject"] == $class["id"]) echo '<option value="' . $class["id"] . '" selected>' . $class["name"] . '</option>';
else echo '<option value="' . $class["id"] . '">' . $class["name"] . '</option>';
if ($task["subject"] == $subject["id"]) echo '<option value="' . $subject["id"] . '" selected>' . $subject["name"] . '</option>';
else echo '<option value="' . $subject["id"] . '">' . $subject["name"] . '</option>';
}
?>
</select>
Expand Down
4 changes: 2 additions & 2 deletions subjects/edit/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
</nav>
<main id="main">
<div class="subject_title">
<h1><?= $class_name ?></h1>
<h1><?= $subject_name ?></h1>
</div>
<div class="subject_edit">
<i id="view_settings" class="fas fa-cog" onclick="location.assign('/subjects/grades?subject=<?= $class_id ?>')"></i>
<i id="view_settings" class="fas fa-cog" onclick="location.assign('/subjects/grades?subject=<?= $subject_id ?>')"></i>
</div>
<div class="subject-main_content">
<div class="statistics main_view" id="main_view-statistics">
Expand Down
2 changes: 1 addition & 1 deletion subjects/grades/edit/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</nav>
<main id="main">
<div class="subject_title">
<h1 style="color: #<?= $class_color ?>">Editing Grade</h1>
<h1>Editing Grade</h1>
</div>
<div class="subject-main_content">
<div class="type">
Expand Down

0 comments on commit 0907bd4

Please sign in to comment.