Browse Source

Fix due time dialog.

pull/389/head
Sebastian Stehle 7 years ago
parent
commit
c17bfe5730
  1. 8
      src/Squidex.Domain.Apps.Entities/Apps/Templates/CreateProfileCommandMiddleware.cs
  2. 9
      src/Squidex/app/features/content/shared/due-time-selector.component.html

8
src/Squidex.Domain.Apps.Entities/Apps/Templates/CreateProfileCommandMiddleware.cs

@ -78,7 +78,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates
private static async Task<NamedId<Guid>> CreateBasicsSchemaAsync(Func<ICommand, Task> publish) private static async Task<NamedId<Guid>> CreateBasicsSchemaAsync(Func<ICommand, Task> publish)
{ {
var command = var command =
SchemaBuilder.Create("basics") SchemaBuilder.Create("Basics")
.AddString("First Name", f => f .AddString("First Name", f => f
.Required() .Required()
.ShowInList() .ShowInList()
@ -120,7 +120,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates
private static async Task<NamedId<Guid>> CreateProjectsSchemaAsync(Func<ICommand, Task> publish) private static async Task<NamedId<Guid>> CreateProjectsSchemaAsync(Func<ICommand, Task> publish)
{ {
var schema = var schema =
SchemaBuilder.Create("projects") SchemaBuilder.Create("Projects")
.AddString("Name", f => f .AddString("Name", f => f
.Required() .Required()
.ShowInList() .ShowInList()
@ -150,7 +150,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates
private static async Task<NamedId<Guid>> CreateExperienceSchemaAsync(Func<ICommand, Task> publish) private static async Task<NamedId<Guid>> CreateExperienceSchemaAsync(Func<ICommand, Task> publish)
{ {
var schema = var schema =
SchemaBuilder.Create("experience") SchemaBuilder.Create("Experience")
.AddString("Position", f => f .AddString("Position", f => f
.Required() .Required()
.ShowInList() .ShowInList()
@ -177,7 +177,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates
private static async Task<NamedId<Guid>> CreateEducationSchemaAsync(Func<ICommand, Task> publish) private static async Task<NamedId<Guid>> CreateEducationSchemaAsync(Func<ICommand, Task> publish)
{ {
var schema = var schema =
SchemaBuilder.Create("Experience") SchemaBuilder.Create("Education")
.AddString("Degree", f => f .AddString("Degree", f => f
.Required() .Required()
.ShowInList() .ShowInList()

9
src/Squidex/app/features/content/shared/due-time-selector.component.html

@ -1,21 +1,21 @@
<ng-container *sqxModal="dueTimeDialog"> <ng-container *sqxModal="dueTimeDialog;closeAuto:false">
<sqx-modal-dialog (close)="cancelStatusChange()"> <sqx-modal-dialog (close)="cancelStatusChange()">
<ng-container title> <ng-container title>
{{dueTimeAction}} content item(s) Change content item(s) to {{dueTimeAction}}
</ng-container> </ng-container>
<ng-container content> <ng-container content>
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="radio" [(ngModel)]="dueTimeMode" value="Immediately" id="immediately" name="dueTimeMode"> <input class="form-check-input" type="radio" [(ngModel)]="dueTimeMode" value="Immediately" id="immediately" name="dueTimeMode">
<label class="form-check-label" for="immediately"> <label class="form-check-label" for="immediately">
{{dueTimeAction}} content item(s) immediately. Set to {{dueTimeAction}} immediately.
</label> </label>
</div> </div>
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="radio" [(ngModel)]="dueTimeMode" value="Scheduled" id="scheduled" name="dueTimeMode"> <input class="form-check-input" type="radio" [(ngModel)]="dueTimeMode" value="Scheduled" id="scheduled" name="dueTimeMode">
<label class="form-check-label" for="scheduled"> <label class="form-check-label" for="scheduled">
{{dueTimeAction}} content item(s) at a later point date and time. Set to {{dueTimeAction}} at a later point date and time.
</label> </label>
</div> </div>
@ -27,5 +27,4 @@
<button type="button" class="float-right btn btn-primary" [disabled]="dueTimeMode === 'Scheduled' && !dueTime" (click)="confirmStatusChange()" sqxFocusOnInit>Confirm</button> <button type="button" class="float-right btn btn-primary" [disabled]="dueTimeMode === 'Scheduled' && !dueTime" (click)="confirmStatusChange()" sqxFocusOnInit>Confirm</button>
</ng-container> </ng-container>
</sqx-modal-dialog> </sqx-modal-dialog>
</ng-container> </ng-container>

Loading…
Cancel
Save