Jump to content

Meta:FormWizard/Config/TPS

From Meta, a Wikimedia project coordination wiki

{

 			"@doc": "Travel and Participation Support config",
 			"config": {
 					"post-edit": "Thank You for submitting your request! To complete your request, please click the "edit" button and read the instructions (surrounded by ) to fill in the remaining sections",
 					"new-page": true,
 					"namespace": "Grants",
 					"portal-page": "TPS",
 					"page-template": "",
 					"infobox": "Probox",
 					"talkpage-template": "",
                   "page-home":  "Grants:TPS/Test/",
                   "dialog-title": "New Request"
 			},
 			"step-1":{
 					"eventTitleTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "Request title",
 							"title": "Enter the request title",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"event",
 							"validate": "doesNotExists",
                           "page-title": true
 						},
 					"requesterNameTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "add your username without a prefix or markup. example: Jeph paul",
 							"title": "Requester",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"requester"
 						},   
 					"requesterCountryTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "example: USA",
 							"title": "Enter your country where you live",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"country"
 						},   	
 					"requestAmountTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "price in USD",
 							"title": "Enter the amount you are requesting",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"amount"
 						},   	  
 					"nextButton":{
 							"type":"nextButton",
 							"title":"Next"
 						},						  												 										
 					"cancelButton":{
 							"type": "cancelButton",
 							"title":"Cancel"
 						}
 				},
 				"step-2":{
 					"eventSummaryTextbox": {
 							"type": "largeTextBox",
 							"placeholder": "Briefly summarize your idea in a sentence",
 							"title": "Summary",
 							"characterLength":200,
 							"mandatory": true,
 							"error-messageLength": "You"ve reached the word limit",
 							"error-notFilled": "Please fill out this mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"summary"
 						},  				 				
 					"eventLocationTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "Event location",
 							"title": "Enter the event location",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"location"
 						},   				
 					"eventDateTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "example: July 14 2014",
 							"title": "Enter the date(s) of the event",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"dates"
 						},   	  
 					"eventWebsiteTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "example mediawiki.org",
 							"title": "Enter the website",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"website"
 						},
					"roleSelectionList":{
 							"title": "",
 							"type": "stepperList",
 							"choiceList": [
 							],
 							"hidden": [						
 									{
 										"key": "portal",
 										"value": "TPS"
 									},
 									{
 										"key": "translations",
 										"value": "Probox/TPS/Content"
 									},
 									{
 										"key": "status",
 										"value": "open"
 									}									
 							],
 							"add-to": "infobox",
                           "visibility": "hidden"
 						},  						  
 					"eventBudgetSection": {
 							"type": "largeTextBox",
 							"placeholder":"blank",
 							"value": "",
 							"title": "blank",
 							"characterLength":1000,
 							"section": "Budget",
 							"mandatory": false,
 							"add-to": "section",
                           "visibility": "hidden",  							  							
 							"section-header": "Budget breakdown"
 						},	 
 					"eventParticipationSection": {
 							"type": "largeTextBox",
 							"placeholder":"blank",
 							"value": "",
 							"title": "blank",
 							"characterLength":1000,
 							"section": "Participation",
 							"mandatory": false,
 							"add-to": "section",
                           "visibility": "hidden",  							
 							"section-header": "Proposed participation"
 						},	 
 					"eventGoalSection": {
 							"type": "largeTextBox",
 							"placeholder": "blank",
 							"value": "",
  							"title": "blank",
 							"characterLength":1000,
 							"section": "Goal",
 							"mandatory": false,
 							"add-to": "section",
                           "visibility": "hidden",  							  							
 							"section-header": "Goal and expected impact"
 						},	
 					"nextButton":{
 							"type":"doneButton",
 							"title":"Submit your request"
 						},   						  						  						 						  	    						

"backButton":{

 							"type":"backButton",
 							"title":"Back"
 						}
 				}
 	}