Created
March 25, 2014 11:15
-
-
Save notionparallax/9759633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forms = { | |
Registration: [ | |
{ | |
inputType : 'text', | |
modelName : 'registration_set', | |
typeAhead : 'registrationOrganisation', | |
inputName : 'registrationOrganisation', | |
inputLabel : 'Organisation', | |
popoverText: 'This is organisation that you are registered with.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'registration_set', | |
typeAhead : 'stateCountry', | |
inputName : 'state', | |
inputLabel : 'State/Country', | |
popoverText: 'This is the state and country where you are '+ | |
'registered. If you are registered in more than '+ | |
'one state/country and it is not shown here use '+ | |
'the ‘Add’ button below to add details.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'registration_set', | |
inputName : 'registrationNumber', | |
inputLabel : 'Registration Number', | |
popoverText: 'This is the number of your registration.' | |
} | |
], | |
Membership: [ | |
{ | |
inputType : 'text', | |
modelName : 'membership_set', | |
inputName : 'organisation', | |
inputLabel : 'Name of Organisation', | |
popoverText: 'This is the name of any professional organisation '+ | |
'that you are a member of. Examples include the AIA '+ | |
'and the DIA. If you are a members of more than '+ | |
'organisation and it is not shown here use the ‘Add’ '+ | |
'button below to add details.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'membership_set', | |
inputName : 'membershipNumber', | |
inputLabel : 'Membership Number', | |
popoverText: 'This is the number of your membership.' | |
} | |
], | |
ProfessionalExperience: | |
[ | |
{ | |
inputType : 'text', | |
modelName : 'professionalexperience_set', | |
typeAhead : 'professionalExperience', | |
inputName : 'experienceType', | |
inputLabel : 'Activity', | |
popoverText: 'This is the kind of thing that you did, for example: '+ | |
'<ul>'+ | |
' <li>Research papers published in academic journals</li>'+ | |
' <li>Speaking and conference appearances</li>'+ | |
' <li>Inclusion in jury/crit panels</li>'+ | |
' <li>Teaching at a recognised academic institution.</li>'+ | |
'</ul>' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'professionalexperience_set', | |
inputName : 'description', | |
inputLabel : 'Description', | |
popoverText: 'This is a description of the type of activity, you can have 500 '+ | |
'characters - that's three and a half tweets! Make sure to '+ | |
'include all relevant information such as name of paper and '+ | |
'name of academic journal, name of conference and topic presented, '+ | |
'type and location of crit panel, subject taught and institution '+ | |
'where you taught it."' | |
}, | |
{ | |
inputType : 'date', /*TODO get number type params included in form type="number" min="5" max="18" */ | |
modelName : 'professionalexperience_set', | |
inputName : 'date', | |
inputLabel : 'Date', | |
popoverText: 'This is the date that you did this thing.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'professionalexperience_set', | |
inputName : 'url', | |
inputLabel : 'URL', | |
popoverText: 'If you can provide a link to this thing then do so here. E.g. '+ | |
"<a href='http://www.academia.edu/1514996/A_Spatial_Query_and_Analysis"+ | |
'_Tool_for_Architects>http://www.academia.edu/​1514996/​A_​Spatial_​Query_​and_'+ | |
"Analysis_​Tool_​for_​Architects</a>.'" /*where ​ is a zero width, breaking space*/ | |
} | |
], | |
Qualification:[ | |
{ | |
inputType : 'text', | |
modelName : 'qualification_set', | |
inputName : 'qualification', | |
typeAhead : 'qualifications', | |
inputLabel : 'Qualification', | |
popoverText: 'This is the name of the qualification you’ve completed. If you have '+ | |
'completed more than one qualification and it is not shown here use the '+ | |
'‘Add’ button below to add details.' | |
}, | |
{ | |
inputType : ['High School','Vocational Study','Undergraduate degree', | |
'Postgraduate degree','Doctoral degree'], | |
modelName : 'qualification_set', | |
inputName : 'level', | |
inputLabel : 'Level', | |
popoverText: "This is for consistancy across countries so that we can "+ | |
"tie a German DipIng to its Finnish and Australian equivalents." | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'qualification_set', | |
inputName : 'organisation', | |
inputLabel : 'Name of Institution', | |
popoverText: 'This is the name of the institution where you completed this qualification.' | |
}, | |
{ | |
inputType : 'number', | |
modelName : 'qualification_set', | |
inputName : 'startDate', | |
inputLabel : 'First Year of Study', | |
popoverText: 'This is the year that you started studying for this qualification.' | |
}, | |
{ | |
inputType : 'number', | |
modelName : 'qualification_set', | |
inputName : 'endDate', | |
inputLabel : 'Last Year of Study', | |
popoverText: 'This is the last year that you studied this course. It is regardless of when you actually formally graduated.' | |
} | |
], | |
Award: [ | |
{ | |
inputType : 'text', | |
modelName : 'award_set', | |
typeAhead : 'awards', | |
inputName : 'awardName', | |
inputLabel : 'Name of Award', | |
popoverText: 'This is the name of any professional recognition that you have received '+ | |
'outside of BVN Donovan Hill. This may include awards from work you’ve done '+ | |
'at other firms or awards received during your studies. If you have achieved '+ | |
'awards that are not shown here use the ‘Add’ button below to '+ | |
'add details.' | |
}, | |
{ | |
inputType : 'number', | |
modelName : 'award_set', | |
inputName : 'yearAchieved', | |
inputLabel : 'Year Achieved', | |
popoverText: 'This is the year that you achieved the award.' | |
}, | |
{ | |
inputType : 'url', | |
modelName : 'award_set', | |
inputName : 'url', | |
inputLabel : 'URL', | |
popoverText: 'If you have a link to the award, or some media about you getting the '+ | |
'award, put it in here.' | |
} | |
], | |
ProjExpExt: [ | |
{ | |
inputType : 'number', | |
modelName : 'projexpext_set', | |
inputName : 'startDate', | |
inputLabel : 'Start Year', | |
popoverText: 'This refers to the year that you started working on this project '+ | |
'in this role' | |
}, | |
{ | |
inputType : 'number', | |
modelName : 'projexpext_set', | |
inputName : 'endDate', | |
inputLabel : 'End Year', | |
popoverText: 'This refers to the year that you finished working on this project '+ | |
'in this role' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'projexpext_set', | |
inputName : 'name', | |
inputLabel : 'Name of Project', | |
popoverText: 'This is the name of the project that you have worked on.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'projexpext_set', | |
inputName : 'firm', | |
inputLabel : 'Firm', | |
popoverText: 'This is the name of the company that you worked for while you did this project.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'projexpext_set', | |
inputName : 'role', | |
inputLabel : 'Role', | |
popoverText: 'This refers to your role on the project team.' | |
}, | |
{ | |
inputType : 'text', | |
modelName : 'projexpext_set', | |
inputName : 'stages', | |
inputLabel : 'Stages', | |
popoverText: 'Please list the stages of the project that you have worked on. (Where applicable.)' | |
}, | |
{ | |
inputType : 'url', | |
modelName : 'projexpext_set', | |
inputName : 'url', | |
inputLabel : 'URL', | |
popoverText: 'If you have a link to the project then provide it here. It '+ | |
'can be in the media or on your previous company's website.' | |
} | |
] | |
}; | |
// var imgUpBtn = function(modelName, inputName, inputLabel, popoverText){ | |
// return ' <a class="btn btn-mini pop-bottom"'+ //TODO finesse this so that it takes args for the popover | |
// ' href="#"'+ | |
// ' data-toggle="popover"'+ | |
// ' data-original-title="File Upload"'+ | |
// ' data-content="Click to upload a scan or a pdf of your certificate for this qualification.">'+ | |
// ' <i class="icon-file"></i>Upload certificate</a>'; | |
// }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment