Opportunity html
Line 653: | Line 653: | ||
− | $(function() { | + | $ci(function() { |
− | $('.checkbox-custom').on('click', function() { | + | $ci('.checkbox-custom').on('click', function() { |
return; | return; | ||
− | var ref_input = $('#' + $(this).attr('data')); | + | var ref_input = $ci('#' + $ci(this).attr('data')); |
ref_input.val(ref_input.val() == 'false' ? 'true' : 'false') | ref_input.val(ref_input.val() == 'false' ? 'true' : 'false') | ||
}); | }); | ||
− | $('.target_country_group_button').on('click', function() { | + | $ci('.target_country_group_button').on('click', function() { |
return; | return; | ||
− | var selected = !$(this).hasClass('selected') | + | var selected = !$ci(this).hasClass('selected') |
− | var key = $(this).attr('data'), | + | var key = $ci(this).attr('data'), |
country; | country; | ||
Line 670: | Line 670: | ||
country = country_groups[key][i] | country = country_groups[key][i] | ||
− | $('#select_countries option:contains(' + country + ')').prop('selected', selected); | + | $ci('#select_countries option:contains(' + country + ')').prop('selected', selected); |
//$('#select_countries option[value=' + country + ']').attr('selected', selected); | //$('#select_countries option[value=' + country + ']').attr('selected', selected); | ||
} | } | ||
− | $(this).removeClass('unselected selected').addClass(selected ? 'selected' : 'unselected'); | + | $ci(this).removeClass('unselected selected').addClass(selected ? 'selected' : 'unselected'); |
setTimeout(function() { | setTimeout(function() { | ||
− | $('#select_countries').multiselect('reload'); | + | $ci('#select_countries').multiselect('reload'); |
},100) | },100) | ||
}); | }); | ||
− | $('select[multiple]').multiselect({selectGroup: true,search: true, | + | $ci('select[multiple]').multiselect({selectGroup: true,search: true, |
onOptionClick: function(el,option) { | onOptionClick: function(el,option) { | ||
Line 699: | Line 699: | ||
//$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | //$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | ||
− | $('.ci_form textarea').autosize(); | + | $ci('.ci_form textarea').autosize(); |
}); | }); |
Revision as of 22:56, 7 July 2020
This is a form to create opportunity and calls regarding internships, scholarships, EVS/ESC voluntary projects and other opportunities. It can be used by any authorized person of a center of Italian language and culture and the opportunity produced will be published both on this page and on the front-end part of this project (in construction at March 2020), in more interactive and modern way. The authors of the content will be mentioned at the end of the opportunity (as well as affiliated to a given organization) so that they can get an advantage (in terms of visits to their page) for their contribution. Also, in general our model is the following: the forms just allow the creation of semantic data (in order to ensure interoperability among systems accessing such data) while, once the page/item is created, the page is completely editable (as a wiki) and can be completed with any relevant information: and of course it can exported to third-party systems as well.