Skip to content

Commit

Permalink
remove the form-group tag helper and replace with good old fashioned …
Browse files Browse the repository at this point in the history
…html + css
  • Loading branch information
adelikat committed Sep 10, 2023
1 parent d96b715 commit 497e4da
Show file tree
Hide file tree
Showing 62 changed files with 490 additions and 497 deletions.
12 changes: 6 additions & 6 deletions TASVideos/Pages/Account/EmailConfirmationSent.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
<form method="post">
<row>
<column md="6">
<form-group>
<fieldset>
<label asp-for="UserName"></label>
<input asp-for="UserName" class="form-control" autocomplete="username" />
<span asp-validation-for="UserName" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Email"></label>
<input asp-for="Email" class="form-control" autocomplete="off" />
<span asp-validation-for="Email" class="text-danger"></span>
</form-group>
</fieldset>
<environment exclude="Development">
<form-group>
<fieldset>
<recaptcha />
</form-group>
</fieldset>
</environment>
</column>
</row>
Expand Down
4 changes: 2 additions & 2 deletions TASVideos/Pages/Account/ForgotPassword.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<column lg="4">
<form method="post">
<div asp-validation-summary="All" class="text-danger"></div>
<form-group>
<fieldset>
<label asp-for="Email"></label>
<input asp-for="Email" class="form-control" />
<span asp-validation-for="Email" class="text-danger"></span>
</form-group>
</fieldset>
<button type="submit" class="btn btn-secondary">Submit</button>
</form>
</column>
Expand Down
24 changes: 12 additions & 12 deletions TASVideos/Pages/Account/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@
<h4>Use a TASVideos account to log in.</h4>
<hr />
<div asp-validation-summary="All" class="text-danger"></div>
<form-group>
<fieldset>
<label asp-for="UserName"></label>
<input asp-for="UserName" class="form-control" autocomplete="username" />
<span asp-validation-for="UserName" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Password"></label>
<input asp-for="Password" class="form-control" autocomplete="current-password" />
<span asp-validation-for="Password" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div class="checkbox">
<label asp-for="RememberMe">
<input asp-for="RememberMe" />
@Html.DisplayNameFor(m => m.RememberMe)
</label>
</div>
</form-group>
<form-group>
</fieldset>
<fieldset>
<button type="submit" class="btn btn-secondary">Log in</button>
</form-group>
<form-group>
</fieldset>
<fieldset>
Please view our <a href="/System/PrivacyPolicy">Privacy Policy</a>
</form-group>
<form-group>
</fieldset>
<fieldset>
<p><a asp-page="ForgotPassword">Forgot your password?</a></p>
<p><a asp-page="Register" asp-route-returnurl="@HttpContext.CurrentPathToReturnUrl()">Register as a new user?</a></p>
</form-group>
</fieldset>
</form>
</section>
</row>
Expand Down
34 changes: 17 additions & 17 deletions TASVideos/Pages/Account/Register.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,53 @@
<form method="post">
<row>
<column md="6">
<form-group>
<fieldset>
<label asp-for="UserName"></label>
<input asp-for="UserName" class="form-control" autocomplete="username" />
<span asp-validation-for="UserName" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Email"></label>
<input asp-for="Email" class="form-control" autocomplete="off" />
<span asp-validation-for="Email" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Password"></label>
<input asp-for="Password" class="form-control" autocomplete="new-password" maxlength="524288" />
<span asp-validation-for="Password" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="ConfirmPassword"></label>
<input asp-for="ConfirmPassword" class="form-control" autocomplete="new-password" maxlength="524288" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</form-group>
</fieldset>
</column>
<column md="6">
<form-group>
<fieldset>
<label asp-for="SelectedTimeZone"></label>
<timezone-picker asp-for="SelectedTimeZone" class="form-control" />
<span asp-validation-for="SelectedTimeZone" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="From"></label>
<input asp-for="From" type="text" class="form-control" />
<span asp-validation-for="From" class="text-danger"></span>
</form-group>
</fieldset>
<form-group class="mt-3">
<div class="form-check">
<label asp-for="Coppa" class="form-check-label"></label>
<input asp-for="Coppa" type="checkbox" class="form-check-input"/>
</div>
<span asp-validation-for="Coppa" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
Also make sure you've read the <a href="/SiteRules">Site Rules</a>.<br/>
Your data will be stored according to our <a href="/System/PrivacyPolicy">Privacy Policy</a>.
</form-group>
</fieldset>
<environment exclude="Development">
<form-group>
<fieldset>
<recaptcha />
</form-group>
</fieldset>
</environment>
</column>
</row>
Expand Down
12 changes: 6 additions & 6 deletions TASVideos/Pages/Account/ResetPassword.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
<div asp-validation-summary="All" class="text-danger"></div>
<input asp-for="Code" type="hidden" />
<input id="UserName" name="UserName" class="d-none" value="@User.Name()" autocomplete="username" />
<form-group>
<fieldset>
<label asp-for="Email"></label>
<input asp-for="Email" class="form-control" autocomplete="off" />
<span asp-validation-for="Email" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Password"></label>
<input asp-for="Password" class="form-control" autocomplete="new-password" />
<span asp-validation-for="Password" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="ConfirmPassword"></label>
<input asp-for="ConfirmPassword" class="form-control" autocomplete="new-password" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</form-group>
</fieldset>
<button type="submit" class="btn btn-secondary">Reset</button>
</form>
</column>
Expand Down
12 changes: 6 additions & 6 deletions TASVideos/Pages/AwardsEditor/Assign.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@
<a condition="@((bool?)ViewData["ShowUpload"] == true)" asp-page="UploadImage" asp-route-year="@Model.Year" class="btn btn-primary mb-2"><i class="fa fa-upload"></i> Upload</a>
<row>
<column md="5">
<form-group>
<fieldset>
<label asp-for="AwardToAssign.Award"></label>
<select asp-for="AwardToAssign.Award" asp-items="Model.AvailableAwardCategories" class="form-control"></select>
<span asp-validation-for="AwardToAssign.Award" class="text-danger"></span>
</form-group>
</fieldset>
</column>
<column md="5" class="offset-md-2">
<partial name="_ImagePreview" model="@(Html.IdFor(m => m.AwardToAssign.Award), Model.Year)" />
</column>
</row>
<fullrow>
<form-group>
<fieldset>
<label asp-for="AwardToAssign.Users"></label>
<select asp-for="AwardToAssign.Users" size="@(Math.Min(Model.AwardToAssign.Users.Count(), 7).ToString())" asp-items="Model.AvailableUsers" class="form-control"></select>
</form-group>
</fieldset>
</fullrow>
<fullrow>
<form-group>
<fieldset>
<label asp-for="AwardToAssign.Publications"></label>
<select asp-for="AwardToAssign.Publications" size="@(Math.Min(Model.AwardToAssign.Publications.Count(), 7).ToString())" asp-items="Model.AvailablePublications" class="form-control"></select>
</form-group>
</fieldset>
</fullrow>
<form-button-bar>
<button type="submit" class="btn btn-primary"><i class="fa fa-plus"></i> Assign</button>
Expand Down
24 changes: 12 additions & 12 deletions TASVideos/Pages/AwardsEditor/CreateCategory.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@
<div asp-validation-summary="All" class="text-danger"></div>
<row>
<column md="6">
<form-group>
<fieldset>
<label asp-for="AwardCategory.Type"></label>
<select asp-for="AwardCategory.Type" asp-items="Model.AvailableAwardTypes" class="form-control"></select>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="AwardCategory.ShortName"></label>
<input asp-for="AwardCategory.ShortName" class="form-control"/>
<span asp-validation-for="AwardCategory.ShortName" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="AwardCategory.Description"></label>
<input asp-for="AwardCategory.Description" class="form-control"/>
<span asp-validation-for="AwardCategory.Description" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div><small>Note: filename will be auto-generated with the pattern {shortname}_xxxx.png</small></div>
<label asp-for="AwardCategory.BaseImage"></label>
<input asp-for="AwardCategory.BaseImage" class="form-control"/>
<span asp-validation-for="AwardCategory.BaseImage" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div><small>Unfortunately, we need the higher res images manually uploaded too, for now</small></div>
<label asp-for="AwardCategory.BaseImage2X"></label>
<input asp-for="AwardCategory.BaseImage2X" class="form-control"/>
<span asp-validation-for="AwardCategory.BaseImage2X" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div><small>Unfortunately, we need the higher res images manually uploaded too, for now</small></div>
<label asp-for="AwardCategory.BaseImage4X"></label>
<input asp-for="AwardCategory.BaseImage4X" class="form-control"/>
<span asp-validation-for="AwardCategory.BaseImage4X" class="text-danger"></span>
</form-group>
</fieldset>
</column>
</row>
<form-button-bar>
Expand Down
16 changes: 8 additions & 8 deletions TASVideos/Pages/AwardsEditor/UploadImage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,36 @@
<div asp-validation-summary="All" class="text-danger"></div>
<row>
<column md="6">
<form-group>
<fieldset>
<label asp-for="ImageToUpload.Award"></label>
<select asp-for="ImageToUpload.Award" asp-items="Model.AvailableAwardCategories" class="form-control"></select>
<span asp-validation-for="ImageToUpload.Award" class="text-danger"></span>
</form-group>
</fieldset>
</column>
<column md="6">
<partial name="_ImagePreview" model="@(Html.IdFor(m => m.ImageToUpload.Award), Model.Year)" />
</column>
</row>
<row>
<column md="6">
<form-group>
<fieldset>
<div><small>Note: filename will be auto-generated with the pattern {shortname}_@(Model.Year).png</small></div>
<label asp-for="ImageToUpload.BaseImage"></label>
<input asp-for="ImageToUpload.BaseImage" class="form-control"/>
<span asp-validation-for="ImageToUpload.BaseImage" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div><small>Unfortunately, we need the higher res images manually uploaded too, for now</small></div>
<label asp-for="ImageToUpload.BaseImage2X"></label>
<input asp-for="ImageToUpload.BaseImage2X" class="form-control"/>
<span asp-validation-for="ImageToUpload.BaseImage2X" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<div><small>Unfortunately, we need the higher res images manually uploaded too, for now</small></div>
<label asp-for="ImageToUpload.BaseImage4X"></label>
<input asp-for="ImageToUpload.BaseImage4X" class="form-control"/>
<span asp-validation-for="ImageToUpload.BaseImage4X" class="text-danger"></span>
</form-group>
</fieldset>
</column>
</row>
<form-button-bar>
Expand Down
8 changes: 4 additions & 4 deletions TASVideos/Pages/Diagnostics/CacheSet.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<row>
<column md="6">
<form method="post">
<form-group>
<fieldset>
<label asp-for="CacheEntry.Key"></label>
<input asp-for="CacheEntry.Key" type="text" placeholder="key" class="form-control" required />
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="CacheEntry.Value"></label>
<input asp-for="CacheEntry.Value" type="text" placeholder="value" class="form-control" required />
</form-group>
</fieldset>
<form-button-bar>
<button type="submit" class="btn btn-primary">Set</button>
</form-button-bar>
Expand Down
20 changes: 10 additions & 10 deletions TASVideos/Pages/Flags/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
<form method="post">
<row>
<column lg="6">
<form-group>
<fieldset>
<label asp-for="Flag.Name"></label>
<input type="text" asp-for="Flag.Name" class="form-control" />
<span asp-validation-for="Flag.Name" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Flag.IconPath"></label>
<input type="text" asp-for="Flag.IconPath" class="form-control" />
<span asp-validation-for="Flag.IconPath" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Flag.LinkPath"></label>
<input type="text" asp-for="Flag.LinkPath" class="form-control" />
<span asp-validation-for="Flag.LinkPath" class="text-danger"></span>
</form-group>
</fieldset>
</column>
<column lg="6" class="mt-lg-0 mt-3">
<form-group>
<fieldset>
<label asp-for="Flag.Token"></label>
<input type="text" asp-for="Flag.Token" class="form-control" />
<span asp-validation-for="Flag.Token" class="text-danger"></span>
</form-group>
<form-group>
</fieldset>
<fieldset>
<label asp-for="Flag.PermissionRestriction"></label>
<select asp-for="Flag.PermissionRestriction" asp-items="Model.AvailablePermissions" class="form-control"></select>
<span asp-validation-for="Flag.PermissionRestriction" class="text-danger"></span>
</form-group>
</fieldset>
</column>
</row>
<div class="text-center mt-3">
Expand Down
Loading

0 comments on commit 497e4da

Please sign in to comment.