Skip to content

Commit

Permalink
Form improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-WWU-IT committed Aug 2, 2021
1 parent c742eb7 commit f5c4819
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pkg/siteacc/account/contact/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const tplBody = `
</div>
<div>&nbsp;</div>
<div>
<form id="form" method="POST" class="box container-inline" style="width: 100%;">
<form id="form" method="POST" class="box container-inline" style="width: 100%;" onSubmit="handleAction('contact'); return false;">
<div style="grid-row: 1;"><label for="subject">Subject: <span class="mandatory">*</span></label></div>
<div style="grid-row: 2; grid-column: 1 / span 2;"><input type="text" id="subject" name="subject" {{if .Params.Subject}}value="{{.Params.Subject}}" readonly{{end}}/></div>
Expand All @@ -101,7 +101,7 @@ const tplBody = `
</div>
<div style="grid-row: 5; grid-column: 2; text-align: right;">
<button type="reset">Reset</button>
<button type="button" style="font-weight: bold;" onClick="handleAction('contact');">Send</button>
<button type="submit" style="font-weight: bold;">Send</button>
</div>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pkg/siteacc/account/edit/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const tplBody = `
</div>
<div>&nbsp;</div>
<div>
<form id="form" method="POST" class="box container-inline" style="width: 100%;">
<form id="form" method="POST" class="box container-inline" style="width: 100%;" onSubmit="handleAction('update?invoker=user'); return false;">
<div style="grid-row: 1;"><label for="fname">First name: <span class="mandatory">*</span></label></div>
<div style="grid-row: 2;"><input type="text" id="fname" name="fname" value="{{.Account.FirstName}}"/></div>
<div style="grid-row: 1;"><label for="lname">Last name: <span class="mandatory">*</span></label></div>
Expand Down Expand Up @@ -149,7 +149,7 @@ const tplBody = `
</div>
<div style="grid-row: 12; grid-column: 2; text-align: right;">
<button type="reset">Reset</button>
<button type="button" style="font-weight: bold;" onClick="handleAction('update?invoker=user');">Save</button>
<button type="submit" style="font-weight: bold;">Save</button>
</div>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pkg/siteacc/account/login/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const tplBody = `
</div>
<div>&nbsp;</div>
<div>
<form id="form" method="POST" class="box container-inline" style="width: 100%;">
<form id="form" method="POST" class="box container-inline" style="width: 100%;" onSubmit="handleAction('login'); return false;">
<div style="grid-row: 1;"><label for="email">Email address: <span class="mandatory">*</span></label></div>
<div style="grid-row: 2;"><input type="text" id="email" name="email" placeholder="me@example.com"/></div>
<div style="grid-row: 1;"><label for="password">Password: <span class="mandatory">*</span></label></div>
Expand All @@ -127,7 +127,7 @@ const tplBody = `
</div>
<div style="grid-row: 4; grid-column: 2; text-align: right;">
<button type="reset">Reset</button>
<button type="button" style="font-weight: bold;" onClick="handleAction('login');">Login</button>
<button type="submit" style="font-weight: bold;">Login</button>
</div>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pkg/siteacc/account/registration/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const tplBody = `
</div>
<div>&nbsp;</div>
<div>
<form id="form" method="POST" class="box container-inline" style="width: 100%;">
<form id="form" method="POST" class="box container-inline" style="width: 100%;" onSubmit="handleAction('create'); return false;">
<div style="grid-row: 1;"><label for="email">Email address: <span class="mandatory">*</span></label></div>
<div style="grid-row: 2;"><input type="text" id="email" name="email" placeholder="me@example.com"/></div>
<div style="grid-row: 3;"><label for="fname">First name: <span class="mandatory">*</span></label></div>
Expand Down Expand Up @@ -161,7 +161,7 @@ const tplBody = `
</div>
<div style="grid-row: 13; grid-column: 2; text-align: right;">
<button type="reset">Reset</button>
<button type="button" style="font-weight: bold;" onClick="handleAction('create');">Register</button>
<button type="submit" style="font-weight: bold;">Register</button>
</div>
</form>
</div>
Expand Down

0 comments on commit f5c4819

Please sign in to comment.