2015-06-29 22:51:29 +00:00
|
|
|
'use strict';
|
|
|
|
|
2015-08-25 21:33:52 +00:00
|
|
|
//TODO: DAVID: URGENT: Make this a $resource that fetches valid field types from server
|
2015-06-29 22:51:29 +00:00
|
|
|
angular.module('forms').service('FormFields', [
|
|
|
|
function() {
|
2015-08-21 00:17:14 +00:00
|
|
|
this.types = [
|
2015-06-29 22:51:29 +00:00
|
|
|
{
|
|
|
|
name : 'textfield',
|
2015-07-03 23:47:14 +00:00
|
|
|
value : 'Short Text'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'email',
|
2015-07-04 03:25:25 +00:00
|
|
|
value : 'Email'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'radio',
|
2015-07-04 03:25:25 +00:00
|
|
|
value : 'Multiple Choice'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'dropdown',
|
2015-08-04 21:06:16 +00:00
|
|
|
value : 'Dropdown'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'date',
|
|
|
|
value : 'Date'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'textarea',
|
2015-08-04 21:06:16 +00:00
|
|
|
value : 'Paragraph Text'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
2015-07-29 17:45:24 +00:00
|
|
|
{
|
2015-07-30 00:22:53 +00:00
|
|
|
name : 'yes_no',
|
|
|
|
value : 'Yes/No'
|
2015-07-29 17:45:24 +00:00
|
|
|
},
|
2015-07-04 03:25:25 +00:00
|
|
|
{
|
|
|
|
name : 'legal',
|
|
|
|
value : 'Legal'
|
|
|
|
},
|
2015-07-28 22:44:06 +00:00
|
|
|
// {
|
2015-08-04 21:06:16 +00:00
|
|
|
// name : 'sig',
|
|
|
|
// value : 'Signature'
|
|
|
|
// },
|
|
|
|
// {
|
2015-07-28 22:44:06 +00:00
|
|
|
// name : 'file',
|
|
|
|
// value : 'File Upload'
|
|
|
|
// },
|
2015-07-29 17:45:24 +00:00
|
|
|
{
|
|
|
|
name : 'rating',
|
|
|
|
value : 'Rating'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name : 'link',
|
|
|
|
value : 'Link'
|
|
|
|
},
|
2015-08-06 05:52:59 +00:00
|
|
|
{
|
|
|
|
name : 'number',
|
|
|
|
value : 'Numbers'
|
|
|
|
},
|
2015-07-28 22:44:06 +00:00
|
|
|
// {
|
|
|
|
// name : 'scale',
|
|
|
|
// value : 'Opinion Scale'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// name : 'stripe',
|
|
|
|
// value : 'Payment'
|
|
|
|
// },
|
2015-07-04 04:57:06 +00:00
|
|
|
{
|
|
|
|
name : 'statement',
|
|
|
|
value : 'Statement'
|
2016-04-20 17:32:18 +00:00
|
|
|
}
|
2015-06-29 22:51:29 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2016-04-20 17:32:18 +00:00
|
|
|
]);
|