mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
added custom forms to pages
This commit is contained in:
@@ -51,7 +51,10 @@ class RegisterPageElement extends BasePageElement {
|
||||
|
||||
render = (): TemplateResult => {
|
||||
return html`
|
||||
<form>
|
||||
<app-form
|
||||
data-custom="register-page#onSubmit"
|
||||
data-has-cancel="true"
|
||||
>
|
||||
<input-field
|
||||
data-type="text"
|
||||
data-name="username"
|
||||
@@ -74,13 +77,7 @@ class RegisterPageElement extends BasePageElement {
|
||||
data-rules="required"
|
||||
>
|
||||
</input-field>
|
||||
<button
|
||||
type="button"
|
||||
data-action="click:register-page#onSubmit"
|
||||
>
|
||||
Register
|
||||
</button>
|
||||
</form>
|
||||
</app-form>
|
||||
`;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,7 +68,10 @@ class WalletCreateElement extends BasePageElement {
|
||||
render = (): TemplateResult => {
|
||||
return html`
|
||||
<div>Create wallet</div>
|
||||
<form>
|
||||
<app-form
|
||||
data-custom="wallet-create#onSubmit"
|
||||
data-has-cancel="true"
|
||||
>
|
||||
<input-field
|
||||
data-type="text"
|
||||
data-name="name"
|
||||
@@ -79,13 +82,7 @@ class WalletCreateElement extends BasePageElement {
|
||||
${this.errorMessage
|
||||
? html`<div>${this.errorMessage}</div>`
|
||||
: html``}
|
||||
<button
|
||||
type="button"
|
||||
data-action="click:wallet-create#onSubmit"
|
||||
>
|
||||
Create
|
||||
</button>
|
||||
</form>
|
||||
</app-form>
|
||||
`;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user