Browse Source

Adaptions to bootstrap.

pull/315/head
Sebastian Stehle 8 years ago
parent
commit
5d24d9a89d
  1. 2
      src/Squidex/app/features/content/pages/contents/contents-page.component.html
  2. 2
      src/Squidex/app/features/content/shared/content-item.component.html
  3. 2
      src/Squidex/app/features/content/shared/contents-selector.component.html
  4. 2
      src/Squidex/app/features/content/shared/field-editor.component.html
  5. 1
      src/Squidex/app/framework/angular/forms/tag-editor.component.scss
  6. 32
      tests/Squidex.Infrastructure.Tests/Queries/PascalCasePathConverterTests.cs

2
src/Squidex/app/features/content/pages/contents/contents-page.component.html

@ -51,7 +51,7 @@
<thead>
<tr>
<th class="cell-select">
<input type="checkbox" class="form-control" [ngModel]="isAllSelected" (ngModelChange)="selectAll($event)" />
<input type="checkbox" class="form-check" [ngModel]="isAllSelected" (ngModelChange)="selectAll($event)" />
</th>
<th class="cell-auto" *ngFor="let field of schema.listFields">
<span class="field">{{field.displayName}}</span>

2
src/Squidex/app/features/content/shared/content-item.component.html

@ -1,5 +1,5 @@
<td class="cell-select" *ngIf="!isReference" (click)="shouldStop($event)">
<input type="checkbox" class="form-control"
<input type="checkbox" class="form-check"
[ngModel]="selected"
(ngModelChange)="selectedChange.emit($event);"
(click)="$event.stopPropagation()" />

2
src/Squidex/app/features/content/shared/contents-selector.component.html

@ -30,7 +30,7 @@
<thead>
<tr>
<th class="cell-select">
<input type="checkbox" class="form-control" [ngModel]="isAllSelected" (ngModelChange)="selectAll($event)" />
<input type="checkbox" class="form-check" [ngModel]="isAllSelected" (ngModelChange)="selectAll($event)" />
</th>
<th class="cell-auto" *ngFor="let field of schema.listFields">
<span class="field">{{field.displayName}}</span>

2
src/Squidex/app/features/content/shared/field-editor.component.html

@ -77,7 +77,7 @@
<sqx-toggle [formControl]="control"></sqx-toggle>
</ng-container>
<ng-container *ngSwitchCase="'Checkbox'">
<input type="checkbox" [formControl]="control" sqxIndeterminateValue />
<input type="checkbox" [formControl]="control" class="form-check" sqxIndeterminateValue />
</ng-container>
</ng-container>
</ng-container>

1
src/Squidex/app/framework/angular/forms/tag-editor.component.scss

@ -30,6 +30,7 @@ $focus-color: #b3d3ff;
background: transparent;
min-width: 40%;
max-width: 100%;
height: auto !important;
}
&:focus,

32
tests/Squidex.Infrastructure.Tests/Queries/PascalCasePathConverterTests.cs

@ -0,0 +1,32 @@
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Xunit;
namespace Squidex.Infrastructure.Queries
{
public class PascalCasePathConverterTests
{
[Fact]
public void Should_convert_property()
{
var source = FilterBuilder.Eq("property", 1);
var result = PascalCasePathConverter.Transform(source);
Assert.Equal("Property == 1", result.ToString());
}
[Fact]
public void Should_convert_properties()
{
var source = FilterBuilder.Eq("root.child", 1);
var result = PascalCasePathConverter.Transform(source);
Assert.Equal("Root.Child == 1", result.ToString());
}
}
}
Loading…
Cancel
Save