{ "title": "MegaCorp acceptance jobs", "users": { "jjohnson": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "admin": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8" }, "forms": [ { "name": "signup_step_1", "title": "Newsletter Sign up", "description": "Test sign up for the newsletter", "script": "job_signup_step1.sh", "output": "raw", "fields": [ { "name": "first_name", "title": "First name", "type": "string" }, { "name": "last_name", "title": "Last name", "type": "string" }, { "name": "birthdate", "title": "Birthdate", "type": "date", "min": "1900-01-01", "max": "2015-01-01", "default_value": "1980-02-05" }, { "name": "email_address", "title": "What's your email address?", "type": "string", "style": "width: 300px;" } ] }, { "name": "signup_step_2", "hidden": true, "title": "Sign up: Your subscriptions", "description": "Please check which topics you are interested in", "script": "job_signup_step2.sh", "fields": [ { "name": "check_company", "title": "Megacorp Company news", "type": "checkbox" }, { "name": "check_products", "title": "Product news", "type": "checkbox", "checked": true }, { "name": "first_name", "title": "First name", "type": "string", "hidden": true }, { "name": "last_name", "title": "Last name", "type": "string", "hidden": true }, { "name": "birthdate", "title": "Birthdate", "type": "date", "min": "1900-01-01", "max": "2015-01-01", "default_value": "1980-02-05", "hidden": true }, { "name": "email_address", "title": "What's your email address?", "type": "string", "style": "width: 300px;", "hidden": true } ] }, { "name": "clean_database", "title": "Load clean database", "description": "Recreate the acceptance database from scratch. This deletes all the information in the database", "submit_title": "Run", "script": "job_clean_database.sh", "fields": [ { "name": "source_sql", "title": "Database type", "type": "select", "options": [ ["empty", "Empty database"], ["dev", "Development test database"], ["ua", "Acceptance database"] ] } ] }, { "name": "import_employees", "title": "Import employee data from CSV", "description": "Load a CSV with employee data into the database. The employee table MUST be empty.", "submit_title": "Import CSV", "script": "job_import_employees.sh", "fields": [ { "name": "csv_file", "title": "CSV file", "type": "file" } ] }, { "name": "list_employees", "title": "List employees", "description": "List the employees currently in the database", "submit_title": "List", "script": "job_list_employees.sh", "output": "html", "fields": [ ] }, { "name": "download_db", "title": "Download database", "description": "Download the full binary database", "submit_title": "Download", "script": "job_download_db.sh", "output": "raw", "fields": [ ] }, { "name": "restart_services", "title": "Restart Acceptance services", "description": "Restarts the acceptance services (web, db, cache). Consult with Karl Karlsön first!", "submit_title": "Restart", "script": "job_restart_acc.sh", "fields": [ { "name": "passwd", "title": "Karl Karlsön gave you a password. What is it?", "type": "password", "required": true }, { "name": "no_db", "title": "Do not restart the database", "type": "checkbox" } ] }, { "name": "enable_firewall", "allowed_users": ["admin"], "title": "Enable firewall", "description": "Enable access to the acceptance environment from the entered IP", "submit_title": "Enable access", "script": "job_enable_firewall.sh", "fields": [ { "name": "ip_address", "title": "From IP Address", "type": "string", "required": true, "default_value": "192.168.4.", "min_length": 7, "size": 15 }, { "name": "expire_days", "title": "Expire (days)", "type": "integer", "max": 31, "min": 2, "default_value": 7 }, { "name": "network", "title": "To which network", "type": "radio", "options": [ ["intra", "Whole intranet"], ["machine", "Acceptance machine"] ] }, { "name": "comment", "title": "Comment", "type": "text", "rows": 10, "cols": 80 } ] } ] }