Meeting
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | + | <!-- | |
− | + | {{#forminput:form=Form meeting}} | |
− | + | --> | |
− | + | {{#formlink:form=Meeting|link text=Add meeting|link type=button|returnto=Meeting created}} | |
− | {{# | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | ||
− | {{{for template|Meeting}}} | + | Please fill in the following fields. |
− | + | If you set the field "created by" or "creator affiliated to" | |
− | + | the record will contain a reference to you and/or your organization. | |
− | + | ||
− | + | {{{info|page name=<Form Meeting[Name]> }}} | |
− | + | {{{for template|Form Meeting}}} | |
− | + | <div class="cultura_italiana_form" style="width:360px;text-align:;padding:24px"> | |
− | + | <div style="margin:auto"> | |
− | + | <span class="form_organization_input_section"> | |
− | + | <span class="form_organization_input_title_inner" style="margin-top: 12px"> | |
− | + | Name, Type, Date, Time | |
− | + | {{{field|Name|placeholder=Name|class=form_organization_input}}} | |
− | + | {{{field|Type|placeholder=Type|class=form_organization_input}}} | |
− | + | {{{field|Date|input type=date}}} | |
− | + | {{{field|Time|placeholder=Time|class=form_organization_input}}} | |
− | + | </span> | |
− | + | ||
− | + | <span class="form_organization_input_section"> | |
− | + | <span class="form_organization_input_title_inner"> | |
− | + | Country, address, coordinates, picture, Url | |
− | + | {{{field|Country|input type=combobox|mandatory|placeholder=country|values=AF,AL,DZ,AS,AD,AO,AI,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BA,BK,BW,BR,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CO,KM,CG,CK,CR,ISO,HR,CU,CY,CZ,CD,DK,DJ,DM,DO,TL,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IL,IT,CI,JM,JP,JE,JO,KZ,KE,KI,XK,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,AN,NC,NZ,NI,NE,NG,NU,NF,KP,NO,OM,PK,PW,PS,PA,PG,PY,CN,PE,PH,PL,PT,PR,QA,MK,RE,RO,RU,RW,WS,SM,SA,SN,RS,SC,SL,SG,SK,SI,SB,SO,ZA,KR,SS,ES,LK,KN,LC,PM,VC,SD,SR,SZ,SE,CH,SY,ST,TW,TJ,TZ,TH,TG,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,US,UY,UZ,VU,VE,VN,YE,ZM,ZW|mapping template=FormSelectCountriesLabel}}} | |
− | + | {{{field|Deadline for application|placeholder=Deadline|input type=date}}} | |
− | + | </span> | |
− | + | {{{field|Address|placeholder=Address|class=form_organization_input}}} | |
− | + | {{{field|Coordinates|input | |
− | + | <input class="cultura_italiana_form_input" type="text" placeholder="Address" name="Form meeting[Address]" value=""> | |
− | + | ||
− | + | ||
− | + | <label for="latInput">Latitude</label> | |
− | + | <input id="latInput"/> | |
− | + | <label for="lngInput">Longitude</label> | |
− | + | <input id="lngInput"/> | |
− | + | <div id="map" style="height : 200px"></div> | |
− | + | ||
− | + | <!-- | |
− | + | ||
− | + | <link rel="stylesheet" href="https://culturaitaliana.org/w/en/leaflet.css"/> | |
− | + | <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> | |
− | + | ||
− | + | <script src="https://culturaitaliana.org/w/en/leaflet.js"></script> | |
− | + | ||
− | { | + | --> |
+ | |||
+ | <script> | ||
+ | var mapCenter = [22, 87]; | ||
+ | var map = L.map('map', {center : mapCenter, zoom : 3}); | ||
+ | L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { | ||
+ | maxZoom: 18, | ||
+ | attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' + | ||
+ | '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + | ||
+ | 'Imagery © <a href="http://mapbox.com">Mapbox</a>', | ||
+ | id: 'examples.map-i875mjb7', | ||
+ | noWrap : true | ||
+ | }).addTo(map); | ||
+ | |||
+ | |||
+ | var marker = L.marker(mapCenter).addTo(map); | ||
+ | var updateMarker = function(lat, lng) { | ||
+ | marker | ||
+ | .setLatLng([lat, lng]) | ||
+ | .bindPopup("Your location : " + marker.getLatLng().toString()) | ||
+ | .openPopup(); | ||
+ | return false; | ||
+ | }; | ||
+ | |||
+ | |||
+ | map.on('click', function(e) { | ||
+ | $('#latInput').val(e.latlng.lat); | ||
+ | $('#lngInput').val(e.latlng.lng); | ||
+ | updateMarker(e.latlng.lat, e.latlng.lng); | ||
+ | }); | ||
− | |||
− | { | + | var updateMarkerByInputs = function() { |
+ | return updateMarker( $('#latInput').val() , $('#lngInput').val()); | ||
+ | } | ||
+ | $('#latInput').on('input', updateMarkerByInputs); | ||
+ | $('#lngInput').on('input', updateMarkerByInputs); | ||
+ | </script> | ||
− | |||
− | {{{ | + | <span class="form_organization_input_section"> |
+ | <span class="form_organization_input_title_inner"> | ||
+ | Picture | ||
+ | {{{field|Picture|placeholder=Picture|class=form_organization_input}}} | ||
+ | {{{field|Webpage|input type=URL}}} | ||
+ | <span class="ci_form_section_help"> | ||
+ | Please enter the official url with further information | ||
+ | </span> | ||
+ | {{{field|Contact phone|Input type=Telephone number}}} | ||
+ | {{{field|Contact email|Input type=Email}}} | ||
+ | {{{field|Participant first name|placeholder=Participant first name|class=form_organization_input}}} | ||
+ | {{{field|Participant last name|placeholder=Participant last name|class=form_organization_input}}} | ||
+ | </span> | ||
− | {{{standard input|save}}} {{{ | + | span class="form_organization_input_section_submit"> |
− | + | {{{standard input|save}}} | |
+ | </span> | ||
+ | </div> | ||
+ | </div> | ||
+ | {{{end template}}} |
Revision as of 11:47, 2 March 2020