Difference between revisions of "Judging/Application Form"
(switched ajax url back to 2015...?) |
(pothole_cased form_info) |
||
Line 9: | Line 9: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | var | + | var form_info = {}; |
//A short name by which to identify this form in the software | //A short name by which to identify this form in the software | ||
− | + | form_info.name="2015_judge_application"; | |
//A displayable title for this form | //A displayable title for this form | ||
− | + | form_info.display_title="2015 Judging Application Form"; | |
//Default mode if no mode (or invalid mode) is specified. | //Default mode if no mode (or invalid mode) is specified. | ||
Line 21: | Line 21: | ||
//while building a form, then changing to "view" when the form goes out for | //while building a form, then changing to "view" when the form goes out for | ||
//user testing or is published. | //user testing or is published. | ||
− | + | form_info.default_mode = "admin"; | |
//What type of person or entity "owns" a copy of this form. | //What type of person or entity "owns" a copy of this form. | ||
//Valid options: "user", "judge", "team", "lab", "course" | //Valid options: "user", "judge", "team", "lab", "course" | ||
− | + | form_info.owner_type = "user"; | |
//Lists of which people can view, edit, submit, and administer this form. | //Lists of which people can view, edit, submit, and administer this form. | ||
//Valid options: | //Valid options: | ||
− | //"author" (the individual owner of the form, if | + | //"author" (the individual owner of the form, if owner_type is "user" or "judge") |
− | //" | + | //"group_members" (a member of the owning group, if owner_type is "team", "lab", or "course") |
− | //" | + | //"super_users" (anyone with super user wiki powers, aka iGEM HQ) |
− | //" | + | //"any_users" (any logged-in user) |
//"public" (anyone) | //"public" (anyone) | ||
− | + | form_info.permissions = {view: ["author", "super_users"], | |
edit: ["author"], | edit: ["author"], | ||
submit: ["author"], | submit: ["author"], | ||
− | admin: [" | + | admin: ["super_users"]}; |
//URL for sending and receiving form data. Substitute igem.org or year.igem.org as needed. | //URL for sending and receiving form data. Substitute igem.org or year.igem.org as needed. | ||
− | + | form_info.ajax_URL = "https://2015.igem.org/cgi/forms/form.cgi"; | |
//**Make this extract the domain from window.location | //**Make this extract the domain from window.location | ||
//**or don't bother, this may be invalidated by CORS | //**or don't bother, this may be invalidated by CORS |
Revision as of 20:33, 27 February 2015
This form has been submitted.
You can unsubmit the form if you wish to make further edits.
-- Please choose a team
Orange stuff is only visible to wiki superusers (hide orange stuff)
Go to Admin Mode / Go to Team Example / Go to Username:
This paragraph, with class="admins_only", is only visible to wiki superusers and in Admin mode. Add class="admins_only" to any element on the page.
3. Example checkbox question
4. Example drop-down question