Skip to content

Commit

Permalink
style(gomall/tutorial): typos
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyutang committed May 26, 2024
1 parent 56396db commit 70c1898
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gomall/tutorial/ch09/app/frontend/template/required.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ define "requried" }}
{{ define "required" }}
<span class="text-danger">*</span>
{{ end }}
6 changes: 3 additions & 3 deletions gomall/tutorial/ch09/app/frontend/template/sign-in.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="col-4">
<form method="post" action="/auth/login?next={{ .next }}">
<div class="mb-3">
<label for="email" class="form-label">Email {{template "requried"}}</label>
<label for="email" class="form-label">Email {{template "required"}}</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password {{template "requried"}}</label>
<label for="password" class="form-label">Password {{template "required"}}</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="mb-3">
Don't hava account, click here to <a href="/sign-up">Sign Up</a>.
Don't have account, click here to <a href="/sign-up">Sign Up</a>.
</div>
<button type="submit" class="btn btn-primary">Sign In</button>
</form>
Expand Down
6 changes: 3 additions & 3 deletions gomall/tutorial/ch09/app/frontend/template/sign-up.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="col-4">
<form method="post" action="/auth/register">
<div class="mb-3">
<label for="email" class="form-label">Email {{template "requried"}}</label>
<label for="email" class="form-label">Email {{template "required"}}</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password {{template "requried"}}</label>
<label for="password" class="form-label">Password {{template "required"}}</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="mb-3">
<label for="password_confirm" class="form-label">Password Confirm {{template "requried"}}</label>
<label for="password_confirm" class="form-label">Password Confirm {{template "required"}}</label>
<input type="password" class="form-control" id="password_confirm" name="password_confirm">
</div>
<div class="mb-3">
Expand Down
2 changes: 1 addition & 1 deletion gomall/tutorial/ch10/app/frontend/template/required.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ define "requried" }}
{{ define "required" }}
<span class="text-danger">*</span>
{{ end }}
6 changes: 3 additions & 3 deletions gomall/tutorial/ch10/app/frontend/template/sign-in.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="col-4">
<form method="post" action="/auth/login?next={{ .next }}">
<div class="mb-3">
<label for="email" class="form-label">Email {{template "requried"}}</label>
<label for="email" class="form-label">Email {{template "required"}}</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password {{template "requried"}}</label>
<label for="password" class="form-label">Password {{template "required"}}</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="mb-3">
Don't hava account, click here to <a href="/sign-up">Sign Up</a>.
Don't have account, click here to <a href="/sign-up">Sign Up</a>.
</div>
<button type="submit" class="btn btn-primary">Sign In</button>
</form>
Expand Down
6 changes: 3 additions & 3 deletions gomall/tutorial/ch10/app/frontend/template/sign-up.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="col-4">
<form method="post" action="/auth/register">
<div class="mb-3">
<label for="email" class="form-label">Email {{template "requried"}}</label>
<label for="email" class="form-label">Email {{template "required"}}</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password {{template "requried"}}</label>
<label for="password" class="form-label">Password {{template "required"}}</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="mb-3">
<label for="password_confirm" class="form-label">Password Confirm {{template "requried"}}</label>
<label for="password_confirm" class="form-label">Password Confirm {{template "required"}}</label>
<input type="password" class="form-control" id="password_confirm" name="password_confirm">
</div>
<div class="mb-3">
Expand Down

0 comments on commit 70c1898

Please sign in to comment.