[Forms] Bring in initial work on forms

Bring in previous work on the forms component; this includes
transitioned versions of specific form elements, and the
mct-form direction which generates these. WTD-530
This commit is contained in:
Victor Woeltjen
2014-11-26 08:01:00 -08:00
parent 0bacc03e58
commit 695ca5c0cf
10 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,31 @@
/*global define,Promise*/
/**
* Module defining MCTForm. Created by vwoeltje on 11/10/14.
*/
define(
[],
function () {
"use strict";
/**
*
* @constructor
*/
function MCTForm() {
var templatePath = [
"platform/forms", //MCTForm.bundle.path,
"res", //MCTForm.bundle.resources,
"templates/form.html"
].join("/");
return {
restrict: "E",
templateUrl: templatePath,
scope: { structure: "=", model: "=ngModel" }
};
}
return MCTForm;
}
);