@model IEnumerable @using PowderCoating.Application.DTOs.Company @{ ViewData["Title"] = "Community Formula Library"; var search = ViewBag.Search as string; var outputMode = ViewBag.OutputMode as string; var industryHint = ViewBag.IndustryHint as string; var totalCount = (int)(ViewBag.TotalCount ?? 0); }

Community Formula Library

Browse and import pricing formulas shared by the Powder Coating Logix community.

My Formulas
@* Search + Filter Bar *@
@* Results header *@
@totalCount formula@(totalCount == 1 ? "" : "s") in the library @if (!string.IsNullOrWhiteSpace(search) || !string.IsNullOrWhiteSpace(outputMode) || !string.IsNullOrWhiteSpace(industryHint)) { clear filters }
@if (!Model.Any()) {
No formulas found
@if (!string.IsNullOrWhiteSpace(search) || !string.IsNullOrWhiteSpace(outputMode)) {

Try broadening your search or view all formulas.

} else {

Be the first to share a formula from your templates!

}
} else {
@foreach (var item in Model) {
@* Header row *@
@item.Name
@item.SourceCompanyName
@if (item.OutputMode == "FixedRate") { Fixed Rate } else { Surface Area } @if (item.IsOwnFormula) { Your Formula } else if (item.AlreadyImported) { Imported }
@* Description *@ @if (!string.IsNullOrWhiteSpace(item.Description)) {

@item.Description

} else {
} @* Inspired by *@ @if (!string.IsNullOrWhiteSpace(item.InspiredByName)) {

Inspired by “@item.InspiredByName” from @item.InspiredByCompanyName

} @* Tags *@ @if (!string.IsNullOrWhiteSpace(item.Tags)) {
@foreach (var tag in item.Tags.Split(',', StringSplitOptions.RemoveEmptyEntries)) { @tag.Trim() }
} @* Footer row *@
@item.ImportCount import@(item.ImportCount == 1 ? "" : "s") @if (item.IsOwnFormula) { Manage } else { }
}
}
@* Import Preview Modal *@ @section Scripts { }