edit form components
f1a9d210
Simon Liebers
committed
9 changed files
FormDayAndDate.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormDayAndDate.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormDayAndDate.razor
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/DayAndDate.razor
The file content is identical.
FormDayAndDate.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormDayAndDate.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormDayAndDate.razor.css
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/DayAndDate.razor.css
The file content is identical.
FormTimeRange.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormTimeRange.razor+42
/WPE.App.Shared.BaseComponents/Pages/Form/FormTimeRange.razor
Add comment 1 Plus  @using Infsoft.WPE.App.Shared.BaseComponents.Models.Text;
Add comment 2 Plus  @using Infsoft.WPE.App.Shared.BaseComponents.Pages.Text
Add comment 3 Plus  @{
Add comment 4 Plus   string dayClass = "time-square";
Add comment 5 Plus   dayClass += $" {Type.ToString().ToLower()}";
Add comment 6 Plus  }
Add comment 7 Plus  
Add comment 8 Plus  <div class="@dayClass" @onclick="Click">
Add comment 9 Plus   <Text_Bold Type="TextType.TextS">
Add comment 10 Plus   <span class="time">@TimeStart.ToString("hh.mm")</span>
Add comment 11 Plus   </Text_Bold>
Add comment 12 Plus   <div class="divider" />
Add comment 13 Plus   <Text_Bold Type="TextType.TextS">
Add comment 14 Plus   <span class="time">@TimeEnd.ToString("hh.mm")</span>
Add comment 15 Plus   </Text_Bold>
Add comment 16 Plus  </div>
Add comment 17 Plus  
Add comment 18 Plus  @code {
Add comment 19 Plus   [Parameter]
Add comment 20 Plus   public TimeOnly TimeStart { get; set; }
Add comment 21 Plus  
Add comment 22 Plus   [Parameter]
Add comment 23 Plus   public TimeOnly TimeEnd { get; set; }
Add comment 24 Plus  
Add comment 25 Plus   [Parameter]
Add comment 26 Plus   public TimeRangeType Type { get; set; } = TimeRangeType.NotSelected;
Add comment 27 Plus  
Add comment 28 Plus   [Parameter]
Add comment 29 Plus   public EventCallback OnClick { get; set; }
Add comment 30 Plus  
Add comment 31 Plus   public enum TimeRangeType
Add comment 32 Plus   {
Add comment 33 Plus   NotSelected, Selected, NotAvailable
Add comment 34 Plus   }
Add comment 35 Plus  
Add comment 36 Plus   private void Click()
Add comment 37 Plus   {
Add comment 38 Plus   _ = OnClick.InvokeAsync();
Add comment 39 Plus   }
Add comment 40 Plus  }
Add comment 41 Plus  
Add comment 42 Plus  
FormTimeRange.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormTimeRange.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormTimeRange.razor.css
FormToggleAmount.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleAmount.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleAmount.razor
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/ToggleAmount.razor
The file content is identical.
FormToggleAmount.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleAmount.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleAmount.razor.css
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/ToggleAmount.razor.css
The file content is identical.
FormToggleSwitch.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleSwitch.razor
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleSwitch.razor
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/ToggleSwitch.razor
The file content is identical.
FormToggleSwitch.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleSwitch.razor.css
/WPE.App.Shared.BaseComponents/Pages/Form/FormToggleSwitch.razor.css
Renamed from
/WPE.App.Shared.BaseComponents/Pages/Form/ToggleSwitch.razor.css
The file content is identical.
WPE.App.Shared.BaseComponents.csproj
/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj
/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj