Organization html
Jump to navigation
Jump to search
Line 549: | Line 549: | ||
$('#lngInput').val(e.latlng.lng); | $('#lngInput').val(e.latlng.lng); | ||
*/ | */ | ||
− | $('[name="Form organization[Coordinates]"').val(e.latlng.lat + ', ' + e.latlng.lng); | + | $ci('[name="Form organization[Coordinates]"').val(e.latlng.lat + ', ' + e.latlng.lng); |
updateMarker(e.latlng.lat, e.latlng.lng); | updateMarker(e.latlng.lat, e.latlng.lng); | ||
}); | }); | ||
Line 564: | Line 564: | ||
if("</html>{{PAGENAME}}<html>" == "FormEdit/Organization") { | if("</html>{{PAGENAME}}<html>" == "FormEdit/Organization") { | ||
− | $('#logo_section').hide(); | + | $ci('#logo_section').hide(); |
} | } | ||
var map; | var map; | ||
− | $('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | + | $ci('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); |
− | $('#select_countries').on('change',function() { | + | $ci('#select_countries').on('change',function() { |
− | var selected_country = $(this).find('option:selected').text(); | + | var selected_country = $ci(this).find('option:selected').text(); |
for(var i in obj) { | for(var i in obj) { | ||
if(obj[i].name == selected_country) { | if(obj[i].name == selected_country) { | ||
Line 582: | Line 582: | ||
}) | }) | ||
− | $('.ci_form textarea').autosize(); | + | $ci('.ci_form textarea').autosize(); |
− | var current_coordinates = $('[name="Form organization[Coordinates]"').val(); | + | var current_coordinates = $ci('[name="Form organization[Coordinates]"').val(); |
if(current_coordinates) { | if(current_coordinates) { | ||
Line 610: | Line 610: | ||
− | $('form').submit(function() { | + | $ci('form').submit(function() { |
// ***attention !!! | // ***attention !!! | ||
// otherwise pageforms will not retrieve it! | // otherwise pageforms will not retrieve it! | ||
− | $('input').removeAttr('disabled'); | + | $ci('input').removeAttr('disabled'); |
return true; | return true; | ||
}); | }); |
Revision as of 22:55, 7 July 2020
This form is reserved to administrators ('sysop') of this wiki CMS, inasmuch as they are expected to create the main page of a given organization, with some key data, and then ensure that the semantic data of the page are editable through the 'edit with form' button. The field to upload the logo is not visible during creation on the page, since the logo will be uploaded in a path relative to that page itself, but it can uploaded once the page/organization has been created.