How to use the phoenix/forms/advisor-payment-form.create function in phoenix

To help you get started, we’ve selected a few phoenix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alphasights / ember-scrollable / app / routes / dashboard / interaction.js View on Github external
setupController: function(controller, models) {
    controller.setProperties({
      model: models.interaction,

      completionForm: InteractionCompletionForm.create({
        model: models.completion,
        interactionTypes: models.interactionTypes.interaction_types,
        interactionClassifications: models.interactionTypes.classifications,
        container: this.get('container')
      }),

      advisorPaymentForm: AdvisorPaymentForm.create({
        model: models.interaction,
        container: this.get('container')
      }),

      showForm: false
    });
  }
});