Skip to content

Commit

Permalink
lmb-181: register and create empty custom telephone component
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVanHoof committed Jan 14, 2025
1 parent a217247 commit 092a696
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/custom-form-fields/telephone-input.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{yield}}
11 changes: 11 additions & 0 deletions app/components/custom-form-fields/telephone-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Component from '@glimmer/component';

import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { service } from '@ember/service';

import { task } from 'ember-concurrency';
import { ForkingStore } from '@lblod/ember-submission-form-fields';
import { consume } from 'ember-provide-consume-context';

export default class CustomFormFieldsTelephoneInputComponent extends Component {}
6 changes: 6 additions & 0 deletions app/utils/register-form-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import RdfInputFieldsCustomTextInputComponent from 'frontend-lmb/components/rdf-

import CustomFormFieldsCodelistInputComponent from 'frontend-lmb/components/custom-form-fields/codelist-input';
import CustomFormFieldsNationalityInputComponent from 'frontend-lmb/components/custom-form-fields/nationality-input';
import CustomFormFieldsTelephoneInputComponent from 'frontend-lmb/components/custom-form-fields/telephone-input';

export const registerCustomFormFields = () => {
registerFormFields([
Expand Down Expand Up @@ -150,5 +151,10 @@ export const registerCustomFormFields = () => {
'http://lblod.data.gift/display-types/lmb/custom-nationality-input',
edit: CustomFormFieldsNationalityInputComponent,
},
{
displayType:
'http://lblod.data.gift/display-types/lmb/custom-telephone-input',
edit: CustomFormFieldsTelephoneInputComponent,
},
]);
};

0 comments on commit 092a696

Please sign in to comment.