Created
May 25, 2015 05:09
-
-
Save stefanhayden/20fa1f7a56178d5cde55 to your computer and use it in GitHub Desktop.
User Profile Edit form with Autoform in Meteor JS
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
<template name="UserProfileEdit"> | |
{{#autoForm id="UserProfileEdit" collection="Meteor.users" doc=currentUser type="update"}} | |
{{> afQuickField name="username"}} | |
{{> afQuickField name="profile.firstName"}} | |
{{> afQuickField name="profile.lastName"}} | |
{{> afQuickField name="profile.bio" rows="6"}} | |
{{> afQuickField name="profile.website"}} | |
{{#unless autoSaveMode}} | |
<div class="form-group"> | |
<button type="submit" class="btn btn-primary" disabled="{{disableButtons}}">Submit</button> | |
</div> | |
{{/unless}} | |
{{/autoForm}} | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment