This widget is used to render User Registration form. All form widgets work in a similar way which is explained in ms.forms widget. On submit, the user add API is called and form data is passed to the API.
<h2>
{{ms.filters.translate('Signup')}}
</h2>
<ms-form-register @success="ms.goTo(ms.searchParams.redirect || ms.fromPage?.url || '/')">
<w-form-layout :form="form"></w-form-layout>
</ms-form-register>
<!-- Request For New Account -->
<div>
{{ms.filters.translate('Have an account')}} ?
<a role="button" class="text-dark fw-bold" :title="ms.filters.translate('Login to your account')"
@click="ms.goTo('/user/login')">
{{ms.filters.translate('Login to your account')}}
</a>
</div>
<h2>
{{'Signup'|msTranslate}}
</h2>
<div ms-widget="ms.th2.register_controller" class="register-form" ms-data-formname="register" ms-data-buttonname="register" class="">
<form name="enquiry" ng-submit="submit()" ms-success="ms.location.path('/')">
<div ms-widget="form_layout"></div>
</form>
</div>
<span class="ms-fs-12">{{'Already have an account'|msTranslate}}?
<a title="{{'Login'|msTranslate}}"
data-ng-click="removepop('.modal');ms.location.path('/user/login')">
{{'Login'|msTranslate}}!
</a>
</span>