ENH: Profile Properties Autocomplete Setting
This commit is contained in:
		@ -76,6 +76,12 @@
 | 
			
		||||
                <input id="validation" class="form-control" @bind="@_validation" maxlength="200" />
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row mb-1 align-items-center">
 | 
			
		||||
            <Label Class="col-sm-3" For="autocomplete" HelpText="Autocomplete setting for the property" ResourceKey="Autocomplete">Autocomplete: </Label>
 | 
			
		||||
            <div class="col-sm-9">
 | 
			
		||||
                <input id="autocomplete" class="form-control" @bind="@_autocomplete" maxlength="50" />
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row mb-1 align-items-center">
 | 
			
		||||
            <Label Class="col-sm-3" For="private" HelpText="Should this profile item be visible to all users?" ResourceKey="Private">Private? </Label>
 | 
			
		||||
            <div class="col-sm-9">
 | 
			
		||||
@ -89,7 +95,7 @@
 | 
			
		||||
    <br />
 | 
			
		||||
    <button type="button" class="btn btn-success" @onclick="SaveProfile">@SharedLocalizer["Save"]</button>
 | 
			
		||||
    <NavLink class="btn btn-secondary" href="@NavigateUrl()">@SharedLocalizer["Cancel"]</NavLink>
 | 
			
		||||
    @if (PageState.QueryString.ContainsKey("id"))
 | 
			
		||||
        @if (PageState.QueryString.ContainsKey("id"))
 | 
			
		||||
    {
 | 
			
		||||
        <br />
 | 
			
		||||
        <br />
 | 
			
		||||
@ -111,6 +117,7 @@
 | 
			
		||||
    private string _defaultvalue = string.Empty;
 | 
			
		||||
    private string _options = string.Empty;
 | 
			
		||||
    private string _validation = string.Empty;
 | 
			
		||||
    private string _autocomplete = string.Empty;
 | 
			
		||||
    private string _isrequired = "False";
 | 
			
		||||
    private string _isprivate = "False";
 | 
			
		||||
    private string createdby;
 | 
			
		||||
@ -142,6 +149,7 @@
 | 
			
		||||
                    _defaultvalue = profile.DefaultValue;
 | 
			
		||||
                    _options = profile.Options;
 | 
			
		||||
                    _validation = profile.Validation;
 | 
			
		||||
                    _autocomplete = profile.Autocomplete;
 | 
			
		||||
                    _isrequired = profile.IsRequired.ToString();
 | 
			
		||||
                    _isprivate = profile.IsPrivate.ToString();
 | 
			
		||||
                    createdby = profile.CreatedBy;
 | 
			
		||||
@ -187,8 +195,10 @@
 | 
			
		||||
                profile.DefaultValue = _defaultvalue;
 | 
			
		||||
                profile.Options = _options;
 | 
			
		||||
                profile.Validation = _validation;
 | 
			
		||||
                profile.Autocomplete = _autocomplete;
 | 
			
		||||
                profile.IsRequired = (_isrequired == null ? false : Boolean.Parse(_isrequired));
 | 
			
		||||
                profile.IsPrivate = (_isprivate == null ? false : Boolean.Parse(_isprivate));
 | 
			
		||||
 | 
			
		||||
                if (_profileid != -1)
 | 
			
		||||
                {
 | 
			
		||||
                    profile = await ProfileService.UpdateProfileAsync(profile);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user