forked from snapframework/snap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double template application problem in the default project template.
- Loading branch information
1 parent
2caefe7
commit f41a4c2
Showing
6 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Snap Example App Login</h1> | ||
|
||
<p><loginError/></p> | ||
|
||
<bind tag="postAction">/login</bind> | ||
<bind tag="submitText">Login</bind> | ||
<apply template="userform"/> | ||
|
||
<p>Don't have a login yet? <a href="/new_user">Create a new user</a></p> |
5 changes: 5 additions & 0 deletions
5
project_template/default/snaplets/heist/templates/_new_user.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h1>Register a new user</h1> | ||
|
||
<bind tag="postAction">/new_user</bind> | ||
<bind tag="submitText">Add User</bind> | ||
<apply template="userform"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
</ifLoggedIn> | ||
|
||
<ifLoggedOut> | ||
<apply template="login"/> | ||
<apply template="_login"/> | ||
</ifLoggedOut> | ||
|
||
</apply> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
<apply template="base"> | ||
<h1>Snap Example App Login</h1> | ||
|
||
<p><loginError/></p> | ||
|
||
<bind tag="postAction">/login</bind> | ||
<bind tag="submitText">Login</bind> | ||
<apply template="userform"/> | ||
|
||
<p>Don't have a login yet? <a href="/new_user">Create a new user</a></p> | ||
<apply template="_login"/> | ||
</apply> |
8 changes: 1 addition & 7 deletions
8
project_template/default/snaplets/heist/templates/new_user.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
<apply template="base"> | ||
|
||
<h1>Register a new user</h1> | ||
|
||
<bind tag="postAction">/new_user</bind> | ||
<bind tag="submitText">Add User</bind> | ||
<apply template="userform"/> | ||
|
||
<apply template="_new_user" /> | ||
</apply> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters