generated from karsten.jeppesen/KAJE-Template
WIP: Reset test for exam
This commit is contained in:
3
Quizzer/.github/copilot-instructions.md
vendored
Normal file
3
Quizzer/.github/copilot-instructions.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
- @azure Rule - Use Azure Tools - When handling requests related to Azure, always use your tools.
|
||||
- @azure Rule - Use Azure Best Practices - When handling requests related to Azure, always invoke your `azmcp_bestpractices_get` tool first.
|
||||
- @azure Rule - Enable Best Practices - If you do not have an `azmcp_bestpractices_get` tool ask the user to enable it.
|
||||
@@ -8,6 +8,7 @@ namespace Quizzer.Models
|
||||
public string QuizzID { get; set; }
|
||||
public string Category { get; set; }
|
||||
public int IsOpen { get; set; }
|
||||
public bool Anonymous { get; set; }
|
||||
public int Score { get; set; }
|
||||
public int ScoreAcc { get; set; }
|
||||
public string JournalJson { get; set; }
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<th>Description</th>
|
||||
<th>Your Score</th>
|
||||
<th>Max Score</th>
|
||||
<th>Reset</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach (var item in Model.PageTests)
|
||||
@@ -64,6 +65,17 @@
|
||||
<td>
|
||||
@item.Journal.ScoreAcc
|
||||
</td>
|
||||
<td>
|
||||
@if (item.Journal.Anonymous)
|
||||
{
|
||||
<form asp-page="" method="post">
|
||||
<input type="hidden" name="email" value="@item.Journal.PID" />
|
||||
<input type="hidden" name="value" value="@item.Journal.QuizzID" />
|
||||
<input type="hidden" name="action" value="resetTest" />
|
||||
<button type="button" class="btn btn-warning" onclick="javascript:this.form.submit()">Reset Test</button>
|
||||
</form>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
@@ -141,7 +153,8 @@
|
||||
</div>
|
||||
}
|
||||
}
|
||||
@if (Model.PageChartConnectors != null) {
|
||||
@if (Model.PageChartConnectors != null)
|
||||
{
|
||||
@if (Model.PageChartConnectors.Count > 2)
|
||||
{
|
||||
<div class="row">
|
||||
|
||||
@@ -142,6 +142,7 @@ namespace Quizzer.Pages
|
||||
PID = UserID,
|
||||
QuizzID = theQuizz.QuizzId,
|
||||
Category = theQuizz.Category,
|
||||
Anonymous = theQuizz.Anonymous,
|
||||
IsOpen = 1,
|
||||
Score = 0,
|
||||
ScoreAcc = 0,
|
||||
|
||||
Reference in New Issue
Block a user