<div class="form-group">
    <label style="float: right;"
           ng-if="editmode === 'true'"
           class="formlyEditDelete">
        <a ng-click="$parent.$parent.edit(options)">
            {{"Edit" | translate}}
        </a> |
        <a ng-click="$parent.$parent.deleteField(options)">
            {{"Delete" | translate}}
        </a>
    </label>
    <label for="{{id}}">
        {{options.label || 'Text'}}{{options.required ? '*' : ''}}
    </label>
    <input type="text"
           class="form-control"
           id="{{id}}"
           placeholder="{{options.placeholder}}"
           ng-required="options.required"
           ng-disabled="options.disabled"
           ng-model="options.value"
           regex-error-message="{{options.regexErrorMessage}}"
           validate="{  'Not following regex': 'validationService.validateByRegex($value, options.regex)',
                        'Cant be empty while required': '!(options.required && validationService.isEmpty($value))'
           }" />
    <small class="form-text text-muted" ng-show="options.helpText">{{options.helpText}}</small>
</div>