2016-10-12 16:43:51 +00:00
|
|
|
var pContactBuilder=new HTMLBuilder;pContactBuilder.setLayout("<h4 data-icon='o' class='new-contact color2'> \n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<span class='select-container nobold'><select data-name='existing'>\n\t\t<option value='.'>Contact existant</option>\n@contacts\t</select></span>\n\t ou \n\t<input type='text' data-name='username' placeholder='Pseudo' value='@username' > \n\t<input type='submit' class='primary sub-number' value='Enregistrer'>\n</h4>\n\n");
|
2016-12-15 11:23:14 +00:00
|
|
|
var pMiniFicheBuilder=new HTMLBuilder;pMiniFicheBuilder.setLayout("<article class='mini-fiche-relation'>\n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<span data-space></span>\n\t<h4 data-icon='a' class='color2'>@name</h4>\n\t<h5 class='nobold color0'>\t\t<input type='checkbox' data-name='unknown' id='unknown_min_p_@uid' value='1'><label for='unknown_min_p_@uid'>Contact inconnu</label>\t</h5>\t<h5 class='nobold color0'>\n\t\t<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeH_mini_p_@uid' value='0'><label for='sexeH_mini_p_@uid'>Homme</label>\n\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeF_mini_p_@uid' value='1'><label for='sexeF_mini_p_@uid'>Femme</label>\n\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeI_mini_p_@uid' value='2'><label for='sexeI_mini_p_@uid'>Ind\u00e9termin\u00e9</label>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='age'>\n\t\t\t<option value='.' disabled selected>Age:</option>\n\t\t\t<option value='0' >5 \u00e0 10 ans</option>\n\t\t\t<option value='2' >10 \u00e0 15 ans</option>\n\t\t\t<option value='3' >15 \u00e0 20 ans</option>\n\t\t\t<option value='4' >20 \u00e0 25 ans</option>\n\t\t\t<option value='5' >25 \u00e0 30 ans</option>\n\t\t\t<option value='6' >30 \u00e0 35 ans</option>\n\t\t\t<option value='7' >35 \u00e0 40 ans</option>\n\t\t\t<option value='8' >40 \u00e0 45 ans</option>\n\t\t\t<option value='9' >45 \u00e0 50 ans</option>\n\t\t\t<option value='10'>50 \u00e0 55 ans</option>\n\t\t\t<option value='11'>55 \u00e0 60 ans</option>\n\t\t\t<option value='12'>60 \u00e0 65 ans</option>\n\t\t\t<option value='13'>65 \u00e0 70 ans</option>\n\t\t\t<option value='14'>70 \u00e0 75 ans</option>\n\t\t\t<option value='15'>75 \u00e0 80 ans</option>\n\t\t\t<option value='16'>80 \u00e0 85 ans</option>\n\t\t\t<option value='17'>85 \u00e0 90 ans</option>\n\t\t\t<option value='18'>90 \u00e0 95 ans</option>\n\t\t\t<option value='19'>95 \u00e0 100 ans</option>\n\t\t</select></span>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='studies'>\n\t\t\t<option value='.' disabled selected>Niveau d'\u00e9tudes maximal:</option>\n\t\t\t<option value='0'>Inconnu</option>\n\t\t\t<option value='1'>< BAC</option>\n\t\t\t<option value='2'>BAC</option>\n\t\t\t<option value='3'>BAC+2</option>\n\t\t\t<option value='4'>BAC+3</option>\n\t\t\t<option value='5'>BAC+5 et plus</option>\n\t\t\t<option value='6'>Dipl\u00f4me d'ing\u00e9nieur, d'une grande \u00e9cole, etc.</option>\n\t\t</select></span>\n\t</h5>\n\t<h4 data-icon='a'>Type de relation</h4>\n\t<h5 class='nobold color0'>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype0_mini_p_@uid' value='0'><label for='reltype0_mini_p_@uid'>P\u00e8re, m\u00e8re ou \u00e9quivalent</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype1_mini_p_@uid' value='1'><label for='reltype1_mini_p_@uid'>Fr\u00e8re ou soeur</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype2_mini_p_@uid' value='2'><label for='reltype2_mini_p_@uid'>Autre membre de la famille</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype3_mini_p_@uid' value='3'><label for='reltype3_mini_p_@uid'>Relation amoureuse</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype4_mini_p_@uid' value='4'><label for='reltype4_mini_p_@uid'>Coll\u00e8gue</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype5_mini_p_@uid' value='5'><label for='reltype5_mini_p_@uid'>Voisin</label><br>\n\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype6_mini_p_@uid' value='6'><label for='reltype6_mini_p_@uid'>Ami/Copain</label><br>\n\t\t  
|
2016-12-13 18:38:52 +00:00
|
|
|
var pFicheBuilder=new HTMLBuilder;pFicheBuilder.setLayout("<article class='fiche-relation'>\n\t<input type='hidden' data-name='contact' value='@contact'>\n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<h4 data-icon='a' class='color2'>@name</h4>\n\t<h5 class='nobold color0'>\t\t@importedfiche\t</h5>\t<h5 class='nobold color0'>\n\t\t<input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeH_p_@uid' value='0'><label for='sexeH_p_@uid'>Homme</label>\n\t\t <input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeF_p_@uid' value='1'><label for='sexeF_p_@uid'>Femme</label>\n\t\t <input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeI_p_@uid' value='2'><label for='sexeI_p_@uid'>Ind\u00e9termin\u00e9</label>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='age'>\n\t\t\t<option value='.' disabled selected>Age:</option>\n\t\t\t<option value='0' >5 \u00e0 10 ans</option>\n\t\t\t<option value='1' >10 \u00e0 15 ans</option>\n\t\t\t<option value='2' >15 \u00e0 20 ans</option>\n\t\t\t<option value='3' >20 \u00e0 25 ans</option>\n\t\t\t<option value='4' >25 \u00e0 30 ans</option>\n\t\t\t<option value='5' >30 \u00e0 35 ans</option>\n\t\t\t<option value='6' >35 \u00e0 40 ans</option>\n\t\t\t<option value='7' >40 \u00e0 45 ans</option>\n\t\t\t<option value='8' >45 \u00e0 50 ans</option>\n\t\t\t<option value='9' >50 \u00e0 55 ans</option>\n\t\t\t<option value='10'>55 \u00e0 60 ans</option>\n\t\t\t<option value='11'>60 \u00e0 65 ans</option>\n\t\t\t<option value='12'>65 \u00e0 70 ans</option>\n\t\t\t<option value='13'>70 \u00e0 75 ans</option>\n\t\t\t<option value='14'>75 \u00e0 80 ans</option>\n\t\t\t<option value='15'>80 \u00e0 85 ans</option>\n\t\t\t<option value='16'>85 \u00e0 90 ans</option>\n\t\t\t<option value='17'>90 \u00e0 95 ans</option>\n\t\t\t<option value='18'>95 \u00e0 100 ans</option>\n\t\t</select></span>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='job'>\n\t\t\t<option value='.' disabled selected>Derni\u00e8re profession exerc\u00e9e:</option>\n\t\t\t<option value='0'>Agriculateur exploitants</option>\n\t\t\t<option value='1'>Artisans</option>\n\t\t\t<option value='2'>Commer\u00e7ants et assimil\u00e9s</option>\n\t\t\t<option value='3'>Chefs d'entreprise de 10 salari\u00e9s ou plus</option>\n\t\t\t<option value='4'>Professions lib\u00e9rales et assimil\u00e9s</option>\n\t\t\t<option value='5'>Cadres de la fonction publique, professions intellectuelles et artistiques</option>\n\t\t\t<option value='6'>Cadres d'entreprise</option>\n\t\t\t<option value='7'>Professions interm\u00e9tiaires de l'enseignement, de la sant\u00e9, de la fonction publique et assimil\u00e9s</option>\n\t\t\t<option value='8'>Professions interm\u00e9diaires administratives et commerciales des entreprises</option>\n\t\t\t<option value='9'>Techniciens</option>\n\t\t\t<option value='10'>Contrema\u00eetres, agents de ma\u00eetrise</option>\n\t\t\t<option value='11'>Employ\u00e9s</option>\n\t\t\t<option value='12'>Ouvriers</option>\n\t\t</select></span>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\tSituation familiale:<br>\n\t\t<h5 class='nobold color0'>\n\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitA_p_@uid' value='0'><label for='famsitA_p_@uid'>Seul</label><br>\n\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitB_p_@uid' value='1'><label for='famsitB_p_@uid'>Seul avec enfant(s)</label><br>\n\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitC_p_@uid' value='2'><label for='famsitC_p_@uid'>En couple sans enfants</label><br>\n\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitD_p_@uid' value='3'><label for='famsitD_p_@uid'>En couple avec enfants</label>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='studies'>\n\t\t\t<option value='.' disabled selected>Niveau d'\u00e9tudes m
|