EditAsync(EditContentModel model)
content.Bill.ContactType = !string.IsNullOrEmpty(model.Bill.Contact)
? model.Bill.ContactType
: null;
+ content.Bill.IsContactAgent = model.Bill.IsContactAgent;
content.Bill.Value = model.Bill.Value;
content.Bill.UpdatedAt = DateTime.UtcNow;
}
diff --git a/Pds/Pds.Web/Pages/Bills/Create.razor b/Pds/Pds.Web/Pages/Bills/Create.razor
index 4ba2bee1..beef8845 100644
--- a/Pds/Pds.Web/Pages/Bills/Create.razor
+++ b/Pds/Pds.Web/Pages/Bills/Create.razor
@@ -121,6 +121,11 @@ else
+
+
+
+
+
diff --git a/Pds/Pds.Web/Pages/Bills/Edit.razor b/Pds/Pds.Web/Pages/Bills/Edit.razor
index f48bd741..5dae2b10 100644
--- a/Pds/Pds.Web/Pages/Bills/Edit.razor
+++ b/Pds/Pds.Web/Pages/Bills/Edit.razor
@@ -137,6 +137,11 @@ else
+
+
+
+
+
diff --git a/Pds/Pds.Web/Pages/Content/Create.razor b/Pds/Pds.Web/Pages/Content/Create.razor
index ec0ffd9f..79aa2731 100644
--- a/Pds/Pds.Web/Pages/Content/Create.razor
+++ b/Pds/Pds.Web/Pages/Content/Create.razor
@@ -111,6 +111,11 @@ else
+
+
+
+
+
diff --git a/Pds/Pds.Web/Pages/Content/Edit.razor b/Pds/Pds.Web/Pages/Content/Edit.razor
index c38a77f2..f38d53a0 100644
--- a/Pds/Pds.Web/Pages/Content/Edit.razor
+++ b/Pds/Pds.Web/Pages/Content/Edit.razor
@@ -109,6 +109,11 @@ else
+
+
+
+
+
+
+
+
+
Контакт
+
+
+ @if (content.Bill.IsContactAgent)
+ {
+ агент
+ }
@content.Bill.ContactName
@if (!string.IsNullOrEmpty(content.Bill.Contact))
{
- /
+ /
@EnumsTranslator.ContactTypeToRu(content.Bill.ContactType).ToLower():
@((MarkupString) ContactBuilder.ToLink(content.Bill.ContactType, content.Bill.Contact))
}
-
+
@if (!string.IsNullOrEmpty(content.Bill.ContactEmail))
{
/ @content.Bill.ContactEmail
@@ -141,7 +153,7 @@ else
}
-
+
@if (content.Person != null)
{
diff --git a/Pds/Pds.Web/Pages/Content/Info.razor.css b/Pds/Pds.Web/Pages/Content/Info.razor.css
index 97400c1c..be4b1dfc 100644
--- a/Pds/Pds.Web/Pages/Content/Info.razor.css
+++ b/Pds/Pds.Web/Pages/Content/Info.razor.css
@@ -47,7 +47,8 @@
background-color: gainsboro;
}
-.bill-cost i.payment-type {
+.bill-cost i.payment-type,
+.contact-info i.payment-type {
font-size: 0.8rem;
padding: 2px 4px;
border-radius: 4px;
@@ -56,7 +57,8 @@
margin-right: 5px
}
-.bill-cost i.white {
+.bill-cost i.white,
+.contact-info i.white {
background-color: white;
color: black;
}