Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ProgramInformationV2.Data/FieldList/CredentialGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion ProgramInformationV2.Data/FieldList/FieldItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; } = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{
<ilw-content>
<fieldset>
<legend>Is This Transcriptable?</legend>
<legend>@Title</legend>
<div style="display: flex;">
<div class="ils-input-entry-compact">
<label for="status-true">Yes</label>
<label for="transcriptable-true">Yes</label>
<input type="radio" id="transcriptable-true" name="transcriptable" value="true" checked="@Value" @onchange="@(() => { Value = true; })">
</div>
<div class="ils-input-entry-compact">
<label for="status-false">No</label>
<label for="transcriptable-false">No</label>
<input type="radio" id="transcriptable-false" name="transcriptable" value="false" checked="@(!Value)" @onchange="@(() => { Value = false; })">
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion ProgramInformationV2/Components/Pages/Course/General.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>General Information</h1>
</ilw-content>

@if (CourseItem != null) {
@if (CourseItem != null && FieldItems != null) {
<MediumText Title="Title" FieldItems="FieldItems" @bind-Value="CourseItem.CourseTitle"></MediumText>
<SmallText Title="Rubric" FieldItems="FieldItems" @bind-Value="CourseItem.Rubric"></SmallText>
<SmallText Title="Course Number" FieldItems="FieldItems" @bind-Value="CourseItem.CourseNumber"></SmallText>
Expand Down
3 changes: 1 addition & 2 deletions ProgramInformationV2/Components/Pages/Course/Link.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<h1>Link and Image</h1>
</ilw-content>

@if (CourseItem != null)
{
@if (CourseItem != null && FieldItems != null) {
<MediumText Title="URL Fragment" FieldItems="FieldItems" @bind-Value="CourseItem.Fragment"></MediumText>
<UrlText Title="Summary Link (URL)" FieldItems="FieldItems" @bind-Value="CourseItem.Url"></UrlText>
<UrlText Title="Apply Now / Get More Information Link (URL)" FieldItems="FieldItems" @bind-Value="CourseItem.ExternalUrl"></UrlText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<ilw-content>
<h1>Location &amp; Time</h1>

@if (CourseItem != null)
{
@if (CourseItem != null && FieldItems != null) {
<h2>Location</h2>
<MediumText Title="Building" FieldItems="FieldItems" @bind-Value="CourseItem.DefaultBuilding"></MediumText>
<MediumText Title="Room" FieldItems="FieldItems" @bind-Value="CourseItem.DefaultRoom"></MediumText>
Expand Down
3 changes: 1 addition & 2 deletions ProgramInformationV2/Components/Pages/Course/Technical.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<ilw-content>
<h1>Technical Information</h1>
</ilw-content>
@if (CourseItem != null)
{
@if (CourseItem != null && FieldItems != null) {
<StatusOnSite @bind-Value="CourseItem.IsActive"></StatusOnSite>
<LargeText Title="Internal Search Text" FieldItems="FieldItems" @bind-Value="CourseItem.InternalSearch"></LargeText>
<ilw-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>General Information</h1>
</ilw-content>

@if (CredentialItem != null) {
@if (CredentialItem != null && FieldItems != null) {
<MediumText Title="Title" FieldItems="FieldItems" @bind-Value="CredentialItem.Title"></MediumText>
<LargeText Title="Summary Text" FieldItems="FieldItems" @bind-Value="CredentialItem.SummaryText"></LargeText>
<MediumText Title="Credit Hours" FieldItems="FieldItems" @bind-Value="CredentialItem.HourText"></MediumText>
Expand Down
3 changes: 1 addition & 2 deletions ProgramInformationV2/Components/Pages/Credential/Link.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<h1>Link and Image</h1>
</ilw-content>

@if (CredentialItem != null)
{
@if (CredentialItem != null && FieldItems != null) {
<MediumText Title="URL Fragment" FieldItems="FieldItems" @bind-Value="CredentialItem.Fragment"></MediumText>
<UrlText Title="Summary Link (URL)" FieldItems="FieldItems" @bind-Value="CredentialItem.Url"></UrlText>
<UrlText Title="Apply Now / Get More Information Link (URL)" FieldItems="FieldItems" @bind-Value="CredentialItem.ExternalUrl"></UrlText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<RichTextEditor @ref="@_rteDescription" Title="Description" FieldItems="FieldItems"></RichTextEditor>
<MediumText Title="Program Notes Title" FieldItems="FieldItems" @bind-Value="CredentialItem.NoteTitle"></MediumText>
<RichTextEditor @ref="@_rteProgramNotes" Title="Program Notes" FieldItems="FieldItems"></RichTextEditor>
@if (CredentialItem != null)
{
@if (CredentialItem != null && FieldItems != null) {
<ul class="ilw-buttons" id="save-group">
<li>
<button class="ilw-button ilw-theme-orange-solid" @onclick="Save" @onblur="Layout.RemoveMessage">Save</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<p>Note that all changes will happen immediately -- you do not need to click a <em>save</em> button to save your changes.</p>

@if (CredentialItem != null && SecurityEntries != null)
{
@foreach (var entry in SecurityEntries)
{
@foreach (var entry in SecurityEntries)
{
<RestrictedEntry ItemId="@CredentialItem.Id" SecurityEntry="@entry"></RestrictedEntry>
}
}
<ViewLink Title="Program" Url="@CredentialItem.UrlFull"></ViewLink>
}
}
</ilw-content>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>Technical Information</h1>
</ilw-content>

@if (CredentialItem != null) {
@if (CredentialItem != null && FieldItems != null) {
<StatusOnSite @bind-Value="CredentialItem.IsActive"></StatusOnSite>
<LargeText Title="Internal Search Text" FieldItems="FieldItems" @bind-Value="CredentialItem.InternalSearch"></LargeText>
<ul class="ilw-buttons" id="save-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>Transcriptable Information</h1>
</ilw-content>

@if (CredentialItem != null) {
@if (CredentialItem != null && FieldItems != null) {
<IsTranscriptable Title="Is This Credential Transcriptable" FieldItems="FieldItems" @bind-Value="CredentialItem.IsTranscriptable"></IsTranscriptable>
<MediumText Title="Transcriptable Name" FieldItems="FieldItems" @bind-Value="CredentialItem.TranscriptableName"></MediumText>
<MediumText Title="Major Title" FieldItems="FieldItems" @bind-Value="CredentialItem.MajorTitle"></MediumText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>General Information</h1>
</ilw-content>

@if (ProgramItem != null) {
@if (ProgramItem != null && FieldItems != null) {
<MediumText Title="Title" FieldItems="FieldItems" @bind-Value="ProgramItem.Title"></MediumText>
<LargeText Title="Summary Text" FieldItems="FieldItems" @bind-Value="ProgramItem.SummaryText"></LargeText>
<button class="ilw-button ilw-theme-orange-solid" @onclick="Save" @onblur="Layout.RemoveMessage">Save</button>
Expand Down
3 changes: 1 addition & 2 deletions ProgramInformationV2/Components/Pages/Program/Link.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<h1>Link and Image</h1>
</ilw-content>

@if (ProgramItem != null)
{
@if (ProgramItem != null && FieldItems != null) {
<MediumText Title="URL Fragment" FieldItems="FieldItems" @bind-Value="ProgramItem.Fragment"></MediumText>
<UrlText Title="Link URL" FieldItems="FieldItems" @bind-Value="ProgramItem.Url"></UrlText>
<UrlText Title="Alternate Link URL" FieldItems="FieldItems" @bind-Value="ProgramItem.AlternateUrl"></UrlText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<ilw-content>
<h1>Technical Information</h1>
</ilw-content>
@if (ProgramItem != null)
{
@if (ProgramItem != null && FieldItems != null) {
<StatusOnSite @bind-Value="ProgramItem.IsActive"></StatusOnSite>
<LargeText Title="Internal Search Text" FieldItems="FieldItems" @bind-Value="ProgramItem.InternalSearch"></LargeText>
<button class="ilw-button ilw-theme-orange-solid" @onclick="Save" @onblur="Layout.RemoveMessage">Save</button>
Expand Down
3 changes: 1 addition & 2 deletions ProgramInformationV2/Components/Pages/Section/General.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<h1>General Information</h1>
</ilw-content>

@if (SectionItem != null)
{
@if (SectionItem != null && FieldItems != null) {
<SmallText Title="Section Code" FieldItems="FieldItems" @bind-Value="SectionItem.SectionCode"></SmallText>
<MediumText Title="Alternate Title" FieldItems="FieldItems" @bind-Value="SectionItem.AlternateTitle"></MediumText>
<LargeText Title="Alternate Description" FieldItems="FieldItems" @bind-Value="SectionItem.Description"></LargeText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<ilw-content>
<h1>Location &amp; Time</h1>

@if (SectionItem != null)
{
@if (SectionItem != null && FieldItems != null) {
<h2>Location</h2>
<MediumText Title="Building" FieldItems="FieldItems" @bind-Value="SectionItem.Building"></MediumText>
<MediumText Title="Room" FieldItems="FieldItems" @bind-Value="SectionItem.Room"></MediumText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<h1>Technical Information</h1>
</ilw-content>

@if (SectionItem != null)
{
@if (SectionItem != null && FieldItems != null) {
<StatusOnSite @bind-Value="SectionItem.IsActive"></StatusOnSite>
<MediumText Title="URL Fragment" FieldItems="FieldItems" @bind-Value="SectionItem.Fragment"></MediumText>
<ul class="ilw-buttons" id="save-group">
Expand Down
Loading