account page stubbed: link to etsy sign up
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{ componentBody "nav_bar" }}
|
||||
|
||||
|
||||
<h1>Account: {{ .PathParams.acctID }}</h1>
|
||||
|
||||
{{- $acctID := parseInt64 .PathParams.acctID }}
|
||||
|
||||
Email: {{ (.Accounts.GetAccount $acctID).Email }}
|
||||
|
||||
{{- $etsyUser := .Etsy.GetUserPointerByAccountID $acctID }}
|
||||
{{- if $etsyUser }}
|
||||
<h3>Etsy User: {{ $etsyUser.UserID }}; Shop ID: {{ $etsyUser.ShopID }}</h3>
|
||||
{{- else }}
|
||||
<h3>
|
||||
<a href="{{ .Etsy.GenerateConnectionURLForNewAccount $acctID }}">
|
||||
Link Your Etsy Store!
|
||||
</a>
|
||||
</h3>
|
||||
{{- end }}
|
||||
<h2><a href="{{$acctID}}/reports">View Reports</a></h2>
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
{{ componentBody "nav_bar" }}
|
||||
|
||||
<h1>Home</h1>
|
||||
|
||||
<h2><a href="sign-up">Sign Up!</a></h2>
|
||||
@@ -0,0 +1,11 @@
|
||||
{{ componentBody "nav_bar" }}
|
||||
|
||||
<h1>Log In</h1>
|
||||
|
||||
<form action="log-in" method="post">
|
||||
<label>
|
||||
Email:
|
||||
<input type="text" required name="email" />
|
||||
</label>
|
||||
<input type="submit" value="login" />
|
||||
</form>
|
||||
@@ -0,0 +1,11 @@
|
||||
{{ componentBody "nav_bar" }}
|
||||
|
||||
<h1>Sign Up</h1>
|
||||
|
||||
<form action="accounts" method="post">
|
||||
<label>
|
||||
Email:
|
||||
<input type="text" required name="email" />
|
||||
</label>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
Reference in New Issue
Block a user