Skip to content

Instantly share code, notes, and snippets.

@stefanhayden
Created May 25, 2015 05:09
Show Gist options
  • Save stefanhayden/20fa1f7a56178d5cde55 to your computer and use it in GitHub Desktop.
Save stefanhayden/20fa1f7a56178d5cde55 to your computer and use it in GitHub Desktop.
User Profile Edit form with Autoform in Meteor JS
<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