diff --git a/ProgramInformationV2.Data/FieldList/CredentialGroup.cs b/ProgramInformationV2.Data/FieldList/CredentialGroup.cs index 546f569..95192b7 100644 --- a/ProgramInformationV2.Data/FieldList/CredentialGroup.cs +++ b/ProgramInformationV2.Data/FieldList/CredentialGroup.cs @@ -44,8 +44,8 @@ public CredentialGroup() { new() { Title = "Plan of Study Introduction", CategoryType = CategoryType.Credential, FieldType = FieldType.CourseList, InitialDescription = "This text will be above the plan of study and contains important notes about the plan of study." }, new() { Title = "Is This Credential Transcriptable", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, new() { Title = "Transcriptable Name", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, InitialDescription = "The name the credential will appear as on transcripts." }, - new() { Title = "Major Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, }, - new() { Title = "Minor Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, }, + new() { Title = "Major Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, + new() { Title = "Minor Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, new() { Title = "Disclaimer Text", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, InitialDescription = "Detail any disclaimers that are necessary to add" }, new() { Title = "Display Order", CategoryType = CategoryType.Credential, FieldType = FieldType.Technical, InitialDescription = "Enter a number to indicate where this credential should be listed in the program finder." }, new() { Title = "Internal Search Text", CategoryType = CategoryType.Credential, InitialDescription = "Internal text used to manage search fields. Not displayed to the end user but used in search.", FieldType = FieldType.Technical }, diff --git a/ProgramInformationV2.Data/FieldList/FieldItem.cs b/ProgramInformationV2.Data/FieldList/FieldItem.cs index 47214b9..5c2eeaa 100644 --- a/ProgramInformationV2.Data/FieldList/FieldItem.cs +++ b/ProgramInformationV2.Data/FieldList/FieldItem.cs @@ -7,7 +7,7 @@ public class FieldItem { public string Description { get; set; } = ""; public FieldType FieldType { get; set; } public string InitialDescription { get; set; } = ""; - public bool IsDefault => ShowItem && Description == InitialDescription || string.IsNullOrWhiteSpace(Description); + public bool IsDefault => ShowItem && (Description == InitialDescription || string.IsNullOrWhiteSpace(Description)); public bool IsRequired { get; set; } public bool ShowItem { get; set; } = true; public string Title { get; set; } = ""; diff --git a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor index 6be2864..e31a4ee 100644 --- a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor +++ b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor @@ -2,14 +2,14 @@ {
- Is This Transcriptable? + @Title
- +
- +
diff --git a/ProgramInformationV2/Components/Pages/Course/General.razor b/ProgramInformationV2/Components/Pages/Course/General.razor index 36fa344..37dbbdd 100644 --- a/ProgramInformationV2/Components/Pages/Course/General.razor +++ b/ProgramInformationV2/Components/Pages/Course/General.razor @@ -7,7 +7,7 @@

General Information

-@if (CourseItem != null) { +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Course/Link.razor b/ProgramInformationV2/Components/Pages/Course/Link.razor index ccc0a0f..73a3b05 100644 --- a/ProgramInformationV2/Components/Pages/Course/Link.razor +++ b/ProgramInformationV2/Components/Pages/Course/Link.razor @@ -7,8 +7,7 @@

Link and Image

-@if (CourseItem != null) -{ +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor index b26d342..02d3655 100644 --- a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor +++ b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor @@ -6,8 +6,7 @@

Location & Time

- @if (CourseItem != null) - { + @if (CourseItem != null && FieldItems != null) {

Location

diff --git a/ProgramInformationV2/Components/Pages/Course/Technical.razor b/ProgramInformationV2/Components/Pages/Course/Technical.razor index b9b4b95..3dae89c 100644 --- a/ProgramInformationV2/Components/Pages/Course/Technical.razor +++ b/ProgramInformationV2/Components/Pages/Course/Technical.razor @@ -6,8 +6,7 @@

Technical Information

-@if (CourseItem != null) -{ +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/General.razor b/ProgramInformationV2/Components/Pages/Credential/General.razor index ae22f35..ad11b87 100644 --- a/ProgramInformationV2/Components/Pages/Credential/General.razor +++ b/ProgramInformationV2/Components/Pages/Credential/General.razor @@ -7,7 +7,7 @@

General Information

-@if (CredentialItem != null) { +@if (CredentialItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/Link.razor b/ProgramInformationV2/Components/Pages/Credential/Link.razor index c4a6054..4370e69 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Link.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Link.razor @@ -7,8 +7,7 @@

Link and Image

-@if (CredentialItem != null) -{ +@if (CredentialItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/Overview.razor b/ProgramInformationV2/Components/Pages/Credential/Overview.razor index e3e08b3..a27d139 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Overview.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Overview.razor @@ -8,8 +8,7 @@ - @if (CredentialItem != null) - { + @if (CredentialItem != null && FieldItems != null) {