Browse Source
Client and server side Field Hint length validation now in sync (#866)
pull/867/head
Paul Astbury-Thomas
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs
-
frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-common.component.html
|
|
|
@ -25,7 +25,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models |
|
|
|
public string? Label { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Hints to describe the schema.
|
|
|
|
/// Hints to describe the field.
|
|
|
|
/// </summary>
|
|
|
|
[LocalizedStringLength(1000)] |
|
|
|
public string? Hints { get; set; } |
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ |
|
|
|
<div class="col-9"> |
|
|
|
<sqx-control-errors for="hints"></sqx-control-errors> |
|
|
|
|
|
|
|
<input type="text" class="form-control" id="{{field.fieldId}}_fieldHints" maxlength="100" formControlName="hints"> |
|
|
|
<input type="text" class="form-control" id="{{field.fieldId}}_fieldHints" maxlength="1000" formControlName="hints"> |
|
|
|
|
|
|
|
<sqx-form-hint> |
|
|
|
{{ 'schemas.field.hintsHint' | sqxTranslate }} |
|
|
|
|