![]() |
Search:
|
Page last modified 16:12, 25 Oct 2011 by tehmina.khan
Template:MindTouch > Address Book > Template:XeleRubricaSoggetto
Template:XeleRubricaSoggettoTable of contentsNo headersvar newPageContent = "<p class='hideInEditor'>{{wiki.template('XeleRubricaSoggetto')}}</p><h2>Descrizione</h2><p> </p><p> </p><h2>Note</h2><p class='comment'>gg/mm/aaaa - nome.cognome autore - nota </p><p> </p>"; var fields = [ { type:'html_label', value: '<p>Rubrica Soggetto</p> ',field:"" }, { type:'html_hr',field:"" }, { type:'html_text', label: 'Denominazione: ', field: 'denominazione',isrequired:true, help:'OBBLIGATORIO, Titolo pagina (1)' }, { type:'html_text', label: 'Descrizione: ', field: 'descrizione'}, { type:'html_select', label: 'Tipologia: ', field: 'tipologia', elements: { associazione:"associazione", ditta_individuale:"ditta individuale", ente_pubblico:"ente pubblico",fondazione:"fondazione",studio_associato:"studio associato", sas:"società accomandita semplice",snc:"società nome collettivo",srl:"società responsabilità limitata",spa:"società per azioni",sc:"società cooperativa" } }, { type:'html_text', label: 'Email 1: ', field: 'email_1' }, { type:'html_text', label: 'Email 2: ', field: 'email_2' }, { type:'html_text', label: 'Telefono: ', field: 'telefono' }, { type:'html_text', label: 'Fax: ', field: 'fax' }, { 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:'html_text', label: 'Camera commercio: ', field: 'cameracommercio' }, { type:'mtmtx_tags', label: 'Parole chiave: ', field: 'parolechiave'}, { type: "html_select", label: 'Fonte: ', field: 'fonte', elements: [ "diretta", "internet","conferenza" ] }, { type:'html_textarea', label: 'Altro: ', field: 'altro', 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:['rubricasoggetto']}; XsysPrEdit{fields: fields, prname:'rubricasoggetto', newpagepath:$newpagepath, titlefields:["denominazione"], newpagecontent:newPageContent }; if (#$newpagepath==0) { <hr /> <div class="fTitle" >"Rubrica persone (collegati)"</div>; XsysPrView{fields:[{ type:'mtmid_pages',label:'Soggetti: ', field:'soggetti'}],pathsearch:["User:intertesto/Apps_-_AddressBook/Persone/*"], newpagepath:$newpagepath, output:'list',prlist:['rubricapersona'],filtername:"soggetti",filtervalue:page.id,isrenderhtml:false,isconservative:false}; <hr /> /* <div class="fTitle" >"Progetti (collegati)"</div>; */ XsysPrView{fields:[{ type:'mtmid_pages',label:'Committente: ', field:'committente'}],pathsearch:["/User:intertesto/Apps_-_AddressBook/Progetti/*"], newpagepath:$newpagepath, output:'list',prlist:['progetto'],filtername:"committente",filtervalue:page.id,isrenderhtml:false,isconservative:false}; } </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; } /* ----- 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> |
|
Powered by MindTouch Core |