@if (type() === 'edit') {
}
@if (form.controls['author_name'].touched && form.controls['author_name'].errors?.['required']) {
{{ 'author_name_is_required' | translate }}
}
@if (form.controls['bio'].touched && form.controls['bio'].errors?.['required']) {
{{ 'bio_is_required' | translate }}
}
@if (form?.controls!['country_id']?.touched && form?.controls!['country_id']?.errors?.['required']) {
{{ 'country_is_required' | translate }}
}
@if (form?.controls!['state_id'].touched && form?.controls!['state_id'].errors?.['required']) {
{{ 'state_is_required' | translate }}
}
@if (form.controls['city'].touched && form.controls['city'].errors?.['required']) {
{{ 'city_is_required' | translate }}
}
{{ (type() === 'create' ? 'save_author' : 'update_author') | translate }}