@page @using BantFlags.Data @model BantFlags.UploadModel @{ ViewData["Title"] = "Upload"; Layout = "~/Pages/Shared/_Layout.cshtml"; }

Upload

@Model.Message

Add a Flag

Apply Gloss?

Manage Existing Flags



Commit Changes



@if (Model.StagedFlags.Flags.Any()) {

Pending Changes



Deleted Flags

@* TODO: There has to be a better way to handle this*@ @for (int i = 0; i < Model.StagedFlags.Flags.Count(); i++) { if (Model.StagedFlags.Flags[i].FlagMethod == Method.Delete) {
} }

Renamed Flags

@for (int i = 0; i < Model.StagedFlags.Flags.Count(); i++) { if (Model.StagedFlags.Flags[i].FlagMethod == Method.Rename) {
} }

Added Flags

@for (int i = 0; i < Model.StagedFlags.Flags.Count(); i++) { if (Model.StagedFlags.Flags[i].FlagMethod == Method.Add) {
} }
} @section Head { } @section Scripts { @* Place flag image inside the