Skip to content

Commit

Permalink
feat: class="template" template_id="id" replaced with template="id"
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 2, 2023
1 parent db84991 commit 84b59f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions demo/signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ <h3>Password Recovery</h3>
</div>

<div class="position:fixed!important bottom:15px right:15px">
<div template_id="signIn" class="template card margin:5px padding:10px {{status}}">
<div template="signIn" class="card margin:5px padding:10px {{status}}">
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
</div>

<div template_id="notification" class="template card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
<div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion demo/signout.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>You are logged in</h3>
</div>

<div class="position:fixed!important bottom:15px right:15px">
<div template_id="notification" class="template card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
<div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions demo/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ <h3>Sign UP</h3>
</main>

<div class="position:fixed!important bottom:15px right:15px">
<div template_id="validate" class="template card margin:5px padding:10px {{status}}">
<div template="validate" class="card margin:5px padding:10px {{status}}">
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
</div>

<div template_id="notification" class="template card margin:5px padding:10px {{status}}">
<div template="notification" class="card margin:5px padding:10px {{status}}">
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CoCreateUser = {
self.setDocumentId('users', data.document[0]._id);

render.data({
selector: "[template_id='signUp']",
selector: "[template='signUp']",
data: {
type: 'signUp',
message: 'Succesfully Signed Up',
Expand Down Expand Up @@ -104,7 +104,7 @@ const CoCreateUser = {
message = "The email or password you entered is incorrect";

render.data({
selector: "[template_id='signIn']",
selector: "[template='signIn']",
data: {
type: 'signIn',
status,
Expand All @@ -126,7 +126,7 @@ const CoCreateUser = {
new Date(0).toUTCString();

render.data({
selector: "[template_id='signOut']",
selector: "[template='signOut']",
data: {
type: 'signOut',
message: 'Succesfully logged out',
Expand Down Expand Up @@ -177,7 +177,7 @@ const CoCreateUser = {
data.organization_id = org_id
crud.createDocument(request).then((response) => {
render.data({
selector: "[template_id='signUp']",
selector: "[template='signUp']",
data: {
type: 'signUp',
message: 'Succesfully Signed Up',
Expand Down

0 comments on commit 84b59f7

Please sign in to comment.