Convert-it/Areas/TextTools/Views/CaseConverter/Index.cshtml
2025-09-10 01:06:53 -03:00

30 lines
1.1 KiB
Plaintext

@model Convert_It_Online.Areas.TextTools.Controllers.CaseConverterViewModel
@{
ViewData["Title"] = ViewBag.PageTitle;
}
<h1 class="mb-4">@ViewBag.PageTitle</h1>
<form asp-action="Index" method="post">
@Html.AntiForgeryToken()
<div class="mb-3">
<label asp-for="InputText" class="form-label">@ViewBag.TextAreaLabel</label>
<textarea asp-for="InputText" class="form-control" rows="8"></textarea>
</div>
<div class="d-flex flex-wrap gap-2">
<button type="submit" name="ConversionType" value="upper" class="btn btn-primary">@ViewBag.ToUpperButton</button>
<button type="submit" name="ConversionType" value="lower" class="btn btn-secondary">@ViewBag.ToLowerButton</button>
<button type="submit" name="ConversionType" value="sentence" class="btn btn-info">@ViewBag.ToSentenceCaseButton</button>
</div>
</form>
@if (!string.IsNullOrEmpty(Model.ResultText))
{
<hr class="my-4" />
<h2>@ViewBag.ResultTitle</h2>
<textarea asp-for="ResultText" class="form-control" rows="8" readonly="readonly"></textarea>
}