(65 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<link rel="stylesheet" type="text/css" href="https://igem.org/wiki/index.php?title=HQ:Forms.css&action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://igem.org/wiki/index.php?title=HQ:Forms.css&action=raw&ctype=text/css" /> | ||
+ | <style> | ||
+ | .software_messages { | ||
+ | display: block; | ||
+ | margin: 30px auto 20px auto; | ||
+ | width: 40%; | ||
+ | text-align: center; | ||
+ | border: 1px solid #fdb9b9; | ||
+ | padding: 15px 0px; | ||
+ | border-radius: 5px; | ||
+ | background-color: rgba(255, 228, 232, 0.71); | ||
+ | } | ||
+ | .super_user_view, #permission_edit, #permission_submit { | ||
+ | display:none; | ||
+ | } | ||
+ | #permission_view { | ||
+ | display: initial; | ||
+ | } | ||
− | |||
− | |||
− | + | #permission_view::before { | |
+ | content: "view"; | ||
+ | } | ||
− | |||
− | + | #permission_edit::before { | |
+ | content: "edit"; | ||
+ | } | ||
+ | #permission_submit::before { | ||
+ | content: "submit"; | ||
+ | } | ||
+ | |||
+ | #save_form { | ||
+ | background-color:red; | ||
+ | font-weight: bold; | ||
+ | padding: 15px; | ||
+ | cursor:pointer; | ||
+ | color: white; | ||
+ | border-radius: 5%; | ||
+ | width: 10%; | ||
+ | text-align:center; | ||
+ | } | ||
+ | |||
+ | #save_form:hover{ | ||
+ | background-color:white; | ||
+ | color:red; | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | var form_info = { | ||
+ | name:"Example_Form", | ||
+ | year: "2017", | ||
+ | owner: "user", | ||
+ | ajax_URL: "https://2017.igem.org/cgi/forms/form.cgi" | ||
+ | }; | ||
+ | |||
+ | </script> | ||
+ | |||
+ | |||
+ | <script src="https://igem.org/wiki/index.php?title=HQ:Dev_Forms.js&action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div class="column full_size"> | ||
+ | <h1>Example Form</h1> | ||
+ | <p>This is the example form you can use to create new ones! </p> | ||
+ | </div> | ||
+ | |||
+ | <div class="clear extra_space"></div> | ||
Line 35: | Line 100: | ||
− | <div class="column full_size" style="text-align:center; margin:auto;"><h1> | + | <div class="column full_size" style="text-align:center; margin:auto;"><h1> Example Form </h1> </div> |
<div class="clear"></div> | <div class="clear"></div> | ||
<div class="line_divider"></div> | <div class="line_divider"></div> | ||
Line 49: | Line 114: | ||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | |||
+ | <fieldset> | ||
+ | <h2> Team Selection </h2> | ||
+ | <div class="column half_size"> | ||
− | < | + | <p class="question"> |
+ | <span id="prompt_to_choose_team"> Please choose a team</span> | ||
+ | </p> | ||
− | |||
− | < | + | <select id="team_list_dropdown"> |
− | < | + | <option id="no_team_selected" value="">Please choose team...</option> |
− | + | </select> | |
− | </ | + | |
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
+ | <!-- <div class="column half_size software_messages"> --> | ||
+ | <div class="column half_size"> | ||
+ | <p> Current message: <span id="software_messages"> </span> </p> | ||
− | + | <p> Welcome, <span id="user_name_placeholder"></span> !</p> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | |||
+ | <p class="super_user_view"> </p> | ||
+ | |||
+ | <br> | ||
+ | |||
+ | <p> You selected team: <span id="team_id_placeholder" class="refresh_for_new_form"> </span> </p> | ||
+ | |||
+ | |||
+ | <p> Are you in this team? <span id="user_in_roster" class="refresh_for_new_form"> </span> </p> | ||
+ | |||
+ | <p> Your role is: <span id="user_role" class="refresh_for_new_form"> </span> </p> | ||
+ | |||
+ | |||
+ | <p> You can: <span id="permission_view"> </span> - <span id="permission_edit"> </span> - <span id="permission_submit"> </span> this form </p> | ||
+ | |||
+ | </div> | ||
</fieldset> | </fieldset> | ||
Line 88: | Line 165: | ||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | <!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
− | + | SECTION 1 | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | + | <form> | |
<fieldset> | <fieldset> | ||
− | <div class="column | + | <div class="column full_size"> |
− | + | ||
− | <h2>1.- | + | <h2>1.- Section Title </h2> |
− | <p>Name <input type="text" name=" | + | |
− | <p> | + | |
− | </ | + | |
− | </ | + | <!------------------------------------------------------------ Question 1 -------------------------------------------------------------> |
+ | |||
+ | |||
+ | <p class="question">1. Name <input type="text" name="example_text" data-form-field="example_text" placeholder="Place text here"></p> | ||
+ | |||
+ | |||
+ | <!------------------------------------------------------------ Question 2 -------------------------------------------------------------> | ||
+ | |||
+ | <p class="question">2. Example radio select </p> | ||
+ | <ul> | ||
+ | <li><label><input type="radio" data-form-field="example_radio_1" value="radio_option_1"> Option 1 </label></li> | ||
+ | <li><label><input type="radio" data-form-field="example_radio_2" value="radio_option_2"> Option 2 </label></li> | ||
+ | <li><label><input type="radio" data-form-field="example_radio_3" value="radio_option_3"> Option 3 </label></li> | ||
+ | </ul> | ||
+ | |||
+ | |||
+ | <!------------------------------------------------------------ Question 3 -------------------------------------------------------------> | ||
+ | |||
+ | <p class="question">3. Example text area </p> | ||
+ | |||
+ | <textarea rows="3" data-form-field="example_textarea"> </textarea> | ||
+ | |||
+ | |||
+ | <!------------------------------------------------------------ Question 4 -------------------------------------------------------------> | ||
+ | |||
+ | <p class="question">4. Example checkbox </p> | ||
+ | |||
+ | <ul> | ||
+ | <li><label><input type="checkbox" data-form-field="checkbox_option_1" value="checkbox_option_1"> Option 1 </label></li> | ||
+ | <li><label><input type="checkbox" data-form-field="checkbox_option_2" value="checkbox_option_2"> Option 2 </label></li> | ||
+ | <li><label><input type="checkbox" data-form-field="checkbox_option_3" value="checkbox_option_3"> Option 3 </label></li> | ||
+ | </ul> | ||
+ | |||
+ | <!------------------------------------------------------------ Question 5 -------------------------------------------------------------> | ||
+ | |||
+ | <p class="question">5. Example dropdown </p> | ||
+ | |||
+ | <select data-form-field="example_dropdown"> | ||
+ | <option value="0">0</option> | ||
+ | <option value="1">1</option> | ||
+ | <option value="2">2</option> | ||
+ | </select> | ||
+ | |||
− | < | + | <p class="question">Save? </p> |
− | + | <div id="save_form"> SAVE FORM<div> | |
− | < | + | |
</div> | </div> | ||
</fieldset> | </fieldset> | ||
+ | |||
Line 114: | Line 233: | ||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | <!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
− | + | SUBMIT | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | |||
<fieldset> | <fieldset> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | + | <div class="column full_size"> |
+ | |||
+ | |||
+ | |||
+ | <p class="question"> Submit form? </p> | ||
+ | |||
+ | <input type="submit" data-form-field="example_submit" value="SUBMIT FORM"></p> | ||
+ | |||
+ | </div> | ||
+ | </fieldset> | ||
+ | </form> | ||
+ | |||
+ | |||
+ | </div> <!-- end of formbody --> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <!------------------------------------------------------------SAFETY LOADING DATA TESTS ------------------------------------------------------- | ||
+ | |||
+ | |||
+ | |||
+ | <p>Name <input type="text" name="Team member Name" data-form-field="corr_team_member_name" placeholder="Name"></p> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <p class="question">7. Who is responsible for the safety of biology labs at your institution? What are the guidelines for laboratory biosafety? Please give a link to these guidelines, or briefly describe them if you cannot give a link.</p> | ||
+ | <textarea rows="3" name="7. Your institution's biosafety" data-form-field="institution_biosafety"></textarea> | ||
+ | |||
+ | |||
<h3> Biosafety Level </h3> | <h3> Biosafety Level </h3> | ||
− | <p class="question">2. What is the Safety Level of your lab? | + | <p class="question">2. What is the Safety Level of your lab? </p> |
− | |||
<ul> | <ul> | ||
− | <li><label><input type="radio" name=" | + | <li><label><input type="radio" name="lab_safety_level" data-form-field="lab_bsl" value="bsl_1"> Level 1 (low risk)</label></li> |
− | <li><label><input type="radio" name=" | + | <li><label><input type="radio" name="lab_safety_level" data-form-field="lab_bsl" value="bsl_2"> Level 2 (moderate risk)</label></li> |
<li style="color: #a0a0a0;"><label><span class="wrapper"><input type="radio" disabled id="bsl_3"></span> Level 3 (high risk)</label></li> | <li style="color: #a0a0a0;"><label><span class="wrapper"><input type="radio" disabled id="bsl_3"></span> Level 3 (high risk)</label></li> | ||
<li style="color: #a0a0a0;"><label><span class="wrapper"><input type="radio" disabled id="bsl_4"></span> Level 4 (extreme risk)</label></li> | <li style="color: #a0a0a0;"><label><span class="wrapper"><input type="radio" disabled id="bsl_4"></span> Level 4 (extreme risk)</label></li> | ||
− | <li><label><input type="radio" name=" | + | <li><label><input type="radio" name="lab_safety_level" data-form-field="lab_bsl" value="bsl_none"> Our team is not doing any wet-lab work</label></li> |
+ | <li><label><input type="radio" name="lab_safety_level" data-form-field="lab_bsl" value="bsl_other"> Other safety level:</label> <textarea rows="2" name="Other safety level (describe)" data-form-field="bsl_other_describe" data-validation="[value=bsl_other]" placeholder="Please describe"></textarea></li> | ||
+ | |||
+ | <li><label><input type="radio" name="lab_safety_level" data-form-field="lab_bsl" value="bsl_multiple"> We have several different lab spaces with different Safety Levels:</label> <textarea rows="2" name="Different safety levels (describe)" data-form-field="bsl_multiple_describe" data-validation="[value=bsl_multiple]" placeholder=" Please describe what experiments you do in each space"></textarea></li> | ||
+ | |||
+ | |||
+ | <li><label><input type="radio"name="lab_safety_level" data-form-field="lab_bsl" value="bsl_unknown"> Unknown (please comment):</label> <textarea rows="2" name="Safety level unknown (comment)" data-form-field="bsl_unknown_describe" data-validation="[value=bsl_unknown]" placeholder="Please describe"></textarea></li> | ||
</ul> | </ul> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | + | <p class="question">5. Please briefly describe the topics that you learned about (or will learn about) in your safety training.</p> |
+ | <ul> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_lab_access" value="learn_lab_access_and_rules"> Lab access and rules (including appropriate clothing, eating and drinking, etc.) </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_responsible" value="learn_responsible"> Responsible individuals (such as lab or departmental specialist or institutional biosafety officer) </label></li> | ||
+ | <li><input type="checkbox" name ="learn" data-form-field="learn_biosafety_lvl" value="learn_biosafety_levels">Differences between biosafety levels </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_biosafety_equip" value="learn_biosafety_equipment">Biosafety equipment (such as biosafety cabinets) </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_biosafety_microbal" value="learn_biosafety_good_microbal_technique"> Good microbial technique (such as lab practices)</label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_disinfection" value="learn_disinfection"> Disinfection and sterilization </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_emergency" value="learn_emergency"> Emergency procedures </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_transport" value="learn_transport"> Transport rules </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_fire_elect" value="learn_chemicals_fire_electrical">Chemicals, fire and electrical safety </label></li> | ||
+ | <li><input type="checkbox" name="learn" data-form-field="learn_other_m" value="learn_other"> We will not have safety training: </label> <textarea rows="2" name="learn" data-form-field="learn_other_describe" data-validation="[data-form-field=learn_other_m]" placeholder="Please comment"></textarea></li> | ||
+ | </ul> | ||
− | |||
− | + | ||
+ | ----> |
Latest revision as of 21:18, 20 March 2018
Example Form
This is the example form you can use to create new ones!