Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Confirmations (#194) #236

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ServerCore/Pages/Events/Players.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
@Html.DisplayFor(modelItem => item.EmployeeAlias)
</td>
<td>
<a asp-page-handler="RemoveAdmin" asp-route-userId=@item.ID>Remove</a>
<a asp-page-handler="RemoveAdmin" asp-route-userId=@item.ID onclick="return confirm('Are you sure you want to remove @item.Name from the event admins?')">Remove</a>
</td>
<td></td>
</tr>
Expand Down Expand Up @@ -95,7 +95,7 @@
@Html.DisplayFor(modelItem => item.Item2)
</td>
<td>
<a asp-page-handler="RemoveAuthor" asp-route-userId=@item.Item1.ID>Remove</a>
<a asp-page-handler="RemoveAuthor" asp-route-userId=@item.Item1.ID onclick="return confirm('Are you sure you want to remove @item.Item1.Name from the event authors?')">Remove</a>
</td>
<td></td>
</tr>
Expand Down
8 changes: 4 additions & 4 deletions ServerCore/Pages/Puzzles/Status.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@
<tr>
<td></td>
<td>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark all teams as unlocked?')">Unlock All</a>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark ALL TEAMS as unlocked?')">Unlock All</a>
</td>
<td>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark all teams as solved?')">Solve All</a>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark ALL TEAMS as solved?')">Solve All</a>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark all teams as locked?')">Lock All</a>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark ALL TEAMS as locked?')">Lock All</a>
</td>
<td>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark all teams as unsolved?')">Unsolve All</a>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-puzzleid="@Model.Puzzle.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark ALL TEAMS as unsolved?')">Unsolve All</a>
</td>
<td></td>
<td></td>
Expand Down
2 changes: 1 addition & 1 deletion ServerCore/Pages/Teams/Members.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
else
{
<td>
<a asp-page-handler="RemoveMember" asp-route-teamId="@Model.Team.ID" asp-route-teamMemberId="@item.ID">Remove</a>
<a asp-page-handler="RemoveMember" asp-route-teamId="@Model.Team.ID" asp-route-teamMemberId="@item.ID" onclick="return confirm('Are you sure you want to remove @item.Member.Name from @Model.Team.Name?')">Remove</a>
</td>
}
</tr>
Expand Down
8 changes: 4 additions & 4 deletions ServerCore/Pages/Teams/Status.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@
<tr>
<td></td>
<td>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark all puzzles as unlocked?')">Unlock All</a>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark ALL PUZZLES as unlocked?')">Unlock All</a>
</td>
<td>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark all puzzles as solved?')">Solve All</a>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="true" onclick="return confirm('Are you sure you want to mark ALL PUZZLES as solved?')">Solve All</a>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark all puzzles as locked?')">Lock All</a>
<a asp-page-handler="UnlockState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark ALL PUZZLES as locked?')">Lock All</a>
</td>
<td>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark all puzzles as unsolved?')">Unsolve All</a>
<a asp-page-handler="SolveState" asp-route-sort="@Model.Sort" asp-route-teamId="@Model.Team.ID" asp-route-value="false" onclick="return confirm('Are you sure you want to mark ALL PUZZLES as unsolved?')">Unsolve All</a>
</td>
<td></td>
<td></td>
Expand Down