Meeting

From Redazione
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Meeting" form.
+
<!--
To create a page with this form, enter the page name below;
+
{{#forminput:form=Form meeting}}
if a page with that name already exists, you will be sent to a form to edit that page.
+
-->
  
 
+
{{#formlink:form=Meeting|link text=Add meeting|link type=button|returnto=Meeting created}}
{{#forminput:form=Meeting}}
 
  
 
</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.
{| class="formtable"
+
If you set the field "created by" or "creator affiliated to"
! Name:
+
the record will contain a reference to you and/or your organization.
| {{{field|Name}}}
+
 
|-
+
{{{info|page name=<Form Meeting[Name]> }}}
! Participant last name:
+
{{{for template|Form Meeting}}}
| {{{field|Type}}}
+
<div class="cultura_italiana_form" style="width:360px;text-align:;padding:24px">
|-
+
<div style="margin:auto">
! Date:
+
<span class="form_organization_input_section">
| {{{field|Date}}}
+
<span class="form_organization_input_title_inner" style="margin-top: 12px">
|-
+
Name, Type, Date, Time
! Time:
+
{{{field|Name|placeholder=Name|class=form_organization_input}}}
| {{{field|Time}}}
+
{{{field|Type|placeholder=Type|class=form_organization_input}}}
|-
+
{{{field|Date|input type=date}}}
! Country:
+
{{{field|Time|placeholder=Time|class=form_organization_input}}}
| {{{field|Country}}}
+
</span>
|-
+
 
! Address:
+
<span class="form_organization_input_section">
| {{{field|Address}}}
+
<span class="form_organization_input_title_inner">
|-
+
Country, address, coordinates, picture, Url
! Coordinates:
+
{{{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|Coordinates}}}
+
{{{field|Deadline for application|placeholder=Deadline|input type=date}}}
|-
+
</span>
! Picture:
+
{{{field|Address|placeholder=Address|class=form_organization_input}}}
| {{{field|Picture}}}
+
{{{field|Coordinates|input
|-
+
<input class="cultura_italiana_form_input" type="text" placeholder="Address" name="Form meeting[Address]" value="">
! Webpage:  
+
 
| {{{field|Webpage}}}
+
 
|-
+
    <label for="latInput">Latitude</label>
! Contact phone:  
+
    <input id="latInput"/>
| {{{field|Contact phone}}}
+
    <label for="lngInput">Longitude</label>
|-
+
    <input id="lngInput"/>
! Contact email:  
+
    <div id="map" style="height : 200px"></div>
| {{{field|Contact email}}}
+
 
|-
+
<!--
! Participant first name:
+
 
| {{{field|Participant first name}}}
+
    <link rel="stylesheet" href="https://culturaitaliana.org/w/en/leaflet.css"/>
|-
+
    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
! Participant last name:  
+
 
| {{{field|Participant last name}}}
+
<script src="https://culturaitaliana.org/w/en/leaflet.js"></script>
|}
+
 
{{{end template}}}
+
-->
 +
 
 +
<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 &copy; <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);
 +
});
  
'''Free text:'''
 
  
{{{standard input|free text|rows=10}}}
+
var updateMarkerByInputs = function() {
 +
return updateMarker( $('#latInput').val() , $('#lngInput').val());
 +
}
 +
$('#latInput').on('input', updateMarkerByInputs);
 +
$('#lngInput').on('input', updateMarkerByInputs);
  
 +
</script>
  
{{{standard input|summary}}}
 
  
{{{standard input|minor edit}}} {{{standard input|watch}}}
+
<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}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+
span class="form_organization_input_section_submit">
</includeonly>
+
{{{standard input|save}}}
 +
</span>
 +
</div>
 +
</div>
 +
{{{end template}}}

Revision as of 11:47, 2 March 2020