Search:
Template:MindTouch > Address Book > Template:XeleRubricaPersona

Template:XeleRubricaPersona

    Table of contents
    No headers
    var newPageContent = "<p class='hideInEditor'>{{wiki.template('XeleRubricaPersona')}}</p><h2>Biografia</h2><p>&nbsp;</p><p>&nbsp;</p><h2>Note</h2><p class='comment'>gg/mm/aaaa - nome.cognome autore - nota </p><p>&nbsp;</p><p>&nbsp;</p>";
    var fields =  [
            { type:'html_label',  value: '<large>persona</large> ',field:"" },
            { type:'html_hr',field:"" },
            { type:'html_text', label: 'Titolo: ', field: 'titolo' },
            { type:'html_text', label: 'Cognome: ', field: 'cognome',isrequired:true, help:'Titolo pagina (1)',jqmaxchars:50 },
            { type:'html_text', label: 'Nome: ', field: 'nome', isrequired:true, help:'Titolo pagina (2)', jqmaxchars:50 },
            { type:'html_text', label: 'Funzione: ', field: 'funzione' },
            { type:'mtmid_pages',label:'Soggetti: ', field:'soggetti', pathsearch:["/User:intertesto/Apps_-_AddressBook/Soggetti/*"]},
            { type:'html_text', label: 'Email privata: ', field: 'email_privata' },
            { type:'html_text', label: 'Email ufficio: ', field: 'email_ufficio' },
            { type:'html_text', label: 'Cellulare: ', field: 'cellulare' },
            { type:'html_text', label: 'Telefono: ', field: 'telefono' },
            { type:'html_text', label: 'Sito internet: ', field: 'sito_internet' },
            { type:'html_text', label: 'Indirizzo: ', field: 'indirizzo' },
            { type:'html_text', label: 'Città: ', field: 'citta' },
            { type:'html_text', label: 'Cap: ', field: 'cap' },
            { type:'html_text', label: 'Codice fiscale: ', field: 'cf' },
            { type:'html_text', label: 'P iva: ', field: 'piva' },
            { type:'mtmtx_tags', label: 'Parole chiave: ', field: 'parole_chiave'},
            { type: "html_select", label: 'Fonte: ', field: 'fonte', value:"", elements: { diretta:"diretta", internet:"internet",conferenza:"conferenza",registrazione_mindtouch:"registrazione MindTouch",registrazione_intertesto:"registrazione Intertesto"}  },
            { type:'html_textarea', label: 'Note: ', field: 'note', newline:false },
            { type: 'html_hidden', label:"Data creazione", field: 'data_creazione', value: date.now, viewshow:false }
        ];
    <div id="DivFormContainer">
      XsysPrView{fields:fields,pathsearch:[page.path], newpagepath:$newpagepath, output:'div',prlist:['rubricapersona']};
      XsysPrEdit{fields: fields, prname:'rubricapersona', newpagepath:$newpagepath, titlefields:["cognome","nome"], newpagecontent:newPageContent };
    </div>
    <style>"
    /* forms */
    .hideInEditor { display: block ; }
    .deki-content-edit .hideInEditor { display: none ; }
    #DivFormContainer input { width:100%; }
    div.FormTitle{ font-size:120%; display:block; color:#000; border-bottom:1px solid #000; }
    div#FormMessages p{ display:block; width:100%; }
    div#FormMessages{ font-size:80%; color:#999; }
    /* to do: disabled style must be checked */
    div#DivFormEdit button[disabled] { background-image:none; background-color:#ddd; padding:1px; width:240px; }
    div.DivFormView .fRow, div#DivFormEdit .fRow{ border-bottom:1px dotted #000; padding:3px 0 3px 0; }
    div#DivFormContainer { background-color:#eee; border:1px solid #000; padding:7px; width:280px; float:right; }
    div.DivFormContainerInt { background-color:#eee; padding:0px; width:265px; float:right; }
    .fTitle { border-top:2px solid #000; padding:7px; font-size:130%; font-weight:bold; text-align:center; }
    .fLabel { font-weight:bold; vertical-align:middle; }
    .fField { vertical-align:middle; }
    .fHelp { font-size:80%; color:#999; }
    .frequired {background-color:#ffffcc}
    
    /* ----- jq autocomplete ----------- */
    .ac_results { padding: 0px; border: 1px solid black; background-color: white; overflow: hidden; z-index: 99999; }
    .ac_results ul { width: 100%; list-style-position: outside; list-style: none; padding: 0; margin: 0;}
    /* if width will be 100% horizontal scrollbar will apear  when scroll mode will be used */
    /* it is very important, if line-height not setted or setted  in relative units scroll will be broken in firefox */
    .ac_results li { margin: 0px; padding: 2px 5px; cursor: default; display: block; /*width: 100%;*/ font: menu; font-size: 12px; line-height: 16px; overflow: hidden; }
    .ac_loading { background: white url('indicator.gif') right center no-repeat; }
    .ac_odd { background-color: #eee; }
    .ac_over { background-color: #0A246A; color: white; }
    "</style>
    
    

    Files (0)

     

    Comments (0)

    You must login to post a comment.