diff --git a/awx/ui/static/js/forms/SurveyTaker.js b/awx/ui/static/js/forms/SurveyTaker.js new file mode 100644 index 0000000000..aef71c8214 --- /dev/null +++ b/awx/ui/static/js/forms/SurveyTaker.js @@ -0,0 +1,65 @@ +/********************************************* + * Copyright (c) 2014 AnsibleWorks, Inc. + * + * SurveyMaker.js + * Form definition for survey maker model + * + * + */ + /** + * @ngdoc function + * @name forms.function:SurveyMaker + * @description This form is for adding/editing a survey +*/ +angular.module('SurveyTakerFormDefinition', []) + .value('SurveyTakerForm', { + + // addTitle: 'Add Survey', //Title in add mode + // editTitle: 'Edit Survey', //Title in edit mode + name: 'survey_taker', //entity or model name in singular form + // // well: true, + breadCrumbs: false, + // twoColumns: true, + // // collapse: true, + // collapseTitle: "Properties", + // collapseMode: 'edit', + // collapseOpen: true, + + // actions: { + // stream: { + // 'class': "btn-primary btn-xs activity-btn", + // ngClick: "showActivity()", + // awToolTip: "View Activity Stream", + // dataPlacement: "top", + // icon: "icon-comments-alt", + // mode: 'edit', + // iconSize: 'large' + // } + // }, + + fields: { + survey_name: { + type: 'custom', + control: '