Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template name="personality">
- <h1 class=personalityIntro>I see myself as someone who...</h1>
- <div class="test">
- {{> quickForm
- collection="Big5"
- id="insertPersonality"
- type="method"
- meteormethod="submitBig5Scale"}}
- </div>
- <div class="userRe">
- <hr>
- {{#each big5s}}
- {{> showResult}}
- {{/each}}
- </div>
- </template>
- <template name="showResult">
- <div class=testResult>
- <h2>Neuroticism: {{>neurotic cons8}}</h2>
- </div>
- </template>
- Big5.attachSchema(new SimpleSchema({
- cons8: {
- label: "...is talkative",
- type: Number,
- optional: false,
- autoform: {
- afFormGroup: {
- type: "select-radio-inline",
- 'formgroup-class': 'custom-radio-class',
- options: function () {
- return [
- {label: "1", value: 1},
- {label: "2", value: 2},
- {label: "3", value: 3},
- {label: "4", value: 4},
- {label: "5", value: 5}
- ];
- }
- }
- }
- },
- })
- )
- big5s: function (){
- return Big5.find()
- }
- })
- Template.neurotic.helpers({
- add: function(cons8){
- return Meteor.user().big5s.cons8
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement