|
|
(157 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | + | This is a form to create opportunities and calls regarding |
| + | internships, scholarships, EVS/ESC voluntary projects and |
| + | any other opportunity. |
| + | It can be used by any authorized person of a center of |
| + | Italian language and culture and the opportunity created |
| + | will be published both [[Opportunities|on this page]] |
| + | and on the [https://culturaitaliana.org/ front-end part of this project] (in construction at {{#time: F Y}}), in a more interactive way. |
| + | |
| + | The authors of the content (as affiliated to a given organization) will be mentioned at the end of the notice of the opportunity so that they can get |
| + | an advantage (in terms of visits to their page) from their contribution. |
| + | Also, once the form is created, any other content not foreseen by the form |
| + | can be inserted in the page itself, so just keep the information in the |
| + | form as short as possible! |
| + | <!-- |
| + | 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 [[Calls_and_scholarships|on this page]] |
| + | and on the [https://culturaitaliana.org/ 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. |
| + | --> |
| + | |
| + | |
| + | {{CI notice box | |
| + | {{#ifeq: {{PAGENAME}} | FormEdit/Opportunity | |
| + | The form will be created in the path |
| + | {{CI text highlight| Opportunities/[Provider] - [Title] }} |
| + | | Attention, this form is meant to be created at a fixed path. Please create it [[Special:FormEdit/Opportunity|from here]]. |
| + | }} |
| + | }} |
| | | |
| | | |
| <html> | | <html> |
| + | |
| + | <div class="ci_form_container"> |
| + | |
| + | <! ***attention! this will be stripped by PageForm |
| + | but nonetheless without it will not work ! |
| + | --> |
| + | <form class= method="post" > |
| + | |
| + | <div class="ci_form"> |
| + | |
| <!-- | | <!-- |
− | <link rel="stylesheet" href="/w/en/resources/lib/ooui/oojs-ui-core-wikimediaui.css">
| + | |
− | <script src="/w/en/resources/lib/jquery/jquery.js"></script>
| + | opportunity_type |
− | <script src="/w/en/resources/lib/oojs/oojs.jquery.js"></script>
| + | opportunity_title |
− | <script src="/w/en/resources/lib/ooui/oojs-ui-core.js"></script>
| + | opportunity_provider |
− | <script src="/w/en/resources/lib/ooui/oojs-ui-wikimediaui.js"></script>
| + | opportunity_description |
| + | opportunity_target_country |
| + | opportunity_funding_information |
| + | opportunity_requisites |
| + | opportunity_url |
| + | opportunity_deadline |
| + | |
| --> | | --> |
| | | |
− | <script src="/w/en/node_modules/jquery/dist/jquery.min.js"></script>
| |
− | <script src="/w/en/node_modules/oojs/dist/oojs.min.js"></script>
| |
| | | |
− | <script src="/w/en/node_modules/oojs-ui/dist/oojs-ui.min.js"></script> | + | <!--------------------------TYPE--------------------------> |
− | <script src="/w/en/node_modules/oojs-ui/dist/oojs-ui-wikimediaui.min.js"></script> | + | |
− | <link rel="stylesheet" href="/w/en/node_modules/oojs-ui/dist/oojs-ui-wikimediaui.min.css"> | + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Type of opportunity |
| + | </span> |
| + | |
| + | <select class="ci_form_input" name="Form opportunity[Type]"> |
| + | <option></option> |
| + | <option >Scholarship</option> |
| + | <option>Internship</option> |
| + | <option>Public procurement</option> |
| + | <option>Call for proposals</option> |
| + | <option >Employment</option> |
| + | <option>European voluntary service (EVS/ESC)/option> |
| + | <option >Study course</option> |
| + | </select> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | <!--------------------------TITLE--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Title |
| + | </span> |
| + | |
| + | <input class="ci_form_input" type="text" placeholder="" name="Form opportunity[Title]" value=""> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | The title of the opportunity for publishing |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | <!--------------------------PROVIDER--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Provider |
| + | </span> |
| + | |
| + | <input class="ci_form_input" type="text" placeholder="" name="Form opportunity[Provider]" value=""> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Who is providing and funding this opportunity? |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | <!--------------------------DESCRIPTION--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Description |
| + | </span> |
| + | |
| + | <textarea name="Form opportunity[Description]" class="ci_form_input" style="width:100%" rows="3"> |
| + | </textarea> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Briefly describe the position and tasks |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | <!--------------------------COUNTRY--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Workplace country |
| + | </span> |
| + | |
| | | |
| + | <select id="select_countries" class="ci_form_input" name="Form opportunity[Workplace country]"> |
| + | <option></option> |
| | | |
| + | <option>Afghanistan</option> |
| + | <option>Albania</option> |
| + | <option>Algeria</option> |
| + | <option>American Samoa</option> |
| + | <option>Andorra</option> |
| + | <option>Angola</option> |
| + | <option>Anguilla</option> |
| + | <option>Antigua and Barbuda</option> |
| + | <option>Argentina</option> |
| + | <option>Armenia</option> |
| + | <option>Aruba</option> |
| + | <option>Australia</option> |
| + | <option>Austria</option> |
| + | <option>Azerbaijan</option> |
| + | <option>Bahamas</option> |
| + | <option>Bahrain</option> |
| + | <option>Bangladesh</option> |
| + | <option>Barbados</option> |
| + | <option>Belarus</option> |
| + | <option>Belgium</option> |
| + | <option>Belize</option> |
| + | <option>Benin</option> |
| + | <option>Bermuda</option> |
| + | <option>Bhutan</option> |
| + | <option>Bolivia</option> |
| + | <option>Bosnia and Herzegovina</option> |
| + | <option>Bosnia and Herzegovina (Bosnia-Herzegovina)</option> |
| + | <option>Botswana</option> |
| + | <option>Brazil</option> |
| + | <option>Brunei</option> |
| + | <option>Bulgaria</option> |
| + | <option>Burkina Faso</option> |
| + | <option>Burundi</option> |
| + | <option>Cambodia</option> |
| + | <option>Cameroon</option> |
| + | <option>Canada</option> |
| + | <option>Cape Verde</option> |
| + | <option>Cayman Islands</option> |
| + | <option>Central African Republic</option> |
| + | <option>Chad</option> |
| + | <option>Chile</option> |
| + | <option>Colombia</option> |
| + | <option>Comoros</option> |
| + | <option>Congo</option> |
| + | <option>Cook Islands</option> |
| + | <option>Costa Rica</option> |
| + | <option>Country</option> |
| + | <option>Croatia</option> |
| + | <option>Cuba</option> |
| + | <option>Cyprus</option> |
| + | <option>Czech Republic</option> |
| + | <option>Democratic Republic of Congo</option> |
| + | <option>Denmark</option> |
| + | <option>Djibouti</option> |
| + | <option>Dominica</option> |
| + | <option>East Timor</option> |
| + | <option>Dominican Republic</option> |
| + | <option>Ecuador</option> |
| + | <option>Egypt</option> |
| + | <option>El Salvador</option> |
| + | <option>Equatorial Guinea</option> |
| + | <option>Eritrea</option> |
| + | <option>Estonia</option> |
| + | <option>Ethiopia</option> |
| + | <option>Falkland Islands</option> |
| + | <option>Faroe Islands</option> |
| + | <option>Fiji</option> |
| + | <option>Finland</option> |
| + | <option>France</option> |
| + | <option>French Guiana</option> |
| + | <option>French Polynesia</option> |
| + | <option>Gabon</option> |
| + | <option>Gambia</option> |
| + | <option>Georgia</option> |
| + | <option>Germany</option> |
| + | <option>Ghana</option> |
| + | <option>Gibraltar</option> |
| + | <option>Greece</option> |
| + | <option>Greenland</option> |
| + | <option>Grenada</option> |
| + | <option>Guadeloupe</option> |
| + | <option>Guam</option> |
| + | <option>Guatemala</option> |
| + | <option>Guernsey</option> |
| + | <option>Guinea</option> |
| + | <option>Guinea-Bissau</option> |
| + | <option>Guyana</option> |
| + | <option>Haiti</option> |
| + | <option>Honduras</option> |
| + | <option>Hong Kong</option> |
| + | <option>Hungary</option> |
| + | <option>Iceland</option> |
| + | <option>India</option> |
| + | <option>Indonesia</option> |
| + | <option>Iran</option> |
| + | <option>Iraq</option> |
| + | <option>Ireland</option> |
| + | <option>Israel</option> |
| + | <option>Italy</option> |
| + | <option>Ivory Coast</option> |
| + | <option>Jamaica</option> |
| + | <option>Japan</option> |
| + | <option>Jersey</option> |
| + | <option>Jordan</option> |
| + | <option>Kazakhstan</option> |
| + | <option>Kenya</option> |
| + | <option>Kiribati</option> |
| + | <option>Kosovo</option> |
| + | <option>Kuwait</option> |
| + | <option>Kyrgyzstan</option> |
| + | <option>Laos</option> |
| + | <option>Latvia</option> |
| + | <option>Lebanon</option> |
| + | <option>Lesotho</option> |
| + | <option>Liberia</option> |
| + | <option>Libya</option> |
| + | <option>Liechtenstein</option> |
| + | <option>Lithuania</option> |
| + | <option>Luxembourg</option> |
| + | <option>Macau</option> |
| + | <option>Madagascar</option> |
| + | <option>Malawi</option> |
| + | <option>Malaysia</option> |
| + | <option>Maldives</option> |
| + | <option>Mali</option> |
| + | <option>Malta</option> |
| + | <option>Marshall Islands</option> |
| + | <option>Martinique</option> |
| + | <option>Mauritania</option> |
| + | <option>Mauritius</option> |
| + | <option>Mexico</option> |
| + | <option>Micronesia</option> |
| + | <option>Moldova</option> |
| + | <option>Monaco</option> |
| + | <option>Mongolia</option> |
| + | <option>Montenegro</option> |
| + | <option>Montserrat</option> |
| + | <option>Morocco</option> |
| + | <option>Mozambique</option> |
| + | <option>Myanmar</option> |
| + | <option>Namibia</option> |
| + | <option>Nauru</option> |
| + | <option>Nepal</option> |
| + | <option>Netherlands</option> |
| + | <option>Netherlands Antilles</option> |
| + | <option>New Caledonia</option> |
| + | <option>New Zealand</option> |
| + | <option>Nicaragua</option> |
| + | <option>Niger</option> |
| + | <option>Nigeria</option> |
| + | <option>Niue</option> |
| + | <option>Norfolk Island</option> |
| + | <option>North Korea</option> |
| + | <option>Norway</option> |
| + | <option>Oman</option> |
| + | <option>Pakistan</option> |
| + | <option>Palau</option> |
| + | <option>Palestinian Authority</option> |
| + | <option>Panama</option> |
| + | <option>Papua New Guinea</option> |
| + | <option>Paraguay</option> |
| + | <option>People's Republic of China</option> |
| + | <option>Peru</option> |
| + | <option>Philippines</option> |
| + | <option>Poland</option> |
| + | <option>Portugal</option> |
| + | <option>Puerto Rico</option> |
| + | <option>Qatar</option> |
| + | <option>Republic of Macedonia</option> |
| + | <option>Reunion/Mayotte</option> |
| + | <option>Romania</option> |
| + | <option>Russia (Russian Federation)</option> |
| + | <option>Rwanda</option> |
| + | <option>Samoa</option> |
| + | <option>San Marino</option> |
| + | <option>Saudi Arabia</option> |
| + | <option>Senegal</option> |
| + | <option>Serbia</option> |
| + | <option>Seychelles</option> |
| + | <option>Sierra Leone</option> |
| + | <option>Singapore</option> |
| + | <option>Slovakia (Slovak Republic)</option> |
| + | <option>Slovenia</option> |
| + | <option>Solomon Islands</option> |
| + | <option>Somalia</option> |
| + | <option>South Africa</option> |
| + | <option>South Korea</option> |
| + | <option>South Sudan</option> |
| + | <option>Spain</option> |
| + | <option>Sri Lanka</option> |
| + | <option>St Kitts and Nevis</option> |
| + | <option>St Lucia</option> |
| + | <option>St Pierre and Miquelon</option> |
| + | <option>St Vincent Grenadines</option> |
| + | <option>Sudan</option> |
| + | <option>Suriname</option> |
| + | <option>Swaziland</option> |
| + | <option>Sweden</option> |
| + | <option>Switzerland</option> |
| + | <option>Syria</option> |
| + | <option>São Tomé and Príncipe</option> |
| + | <option>Taiwan</option> |
| + | <option>Tajikistan</option> |
| + | <option>Tanzania</option> |
| + | <option>Thailand</option> |
| + | <option>Togo</option> |
| + | <option>Tonga</option> |
| + | <option>Trinidad and Tobago</option> |
| + | <option>Tunisia</option> |
| + | <option>Turkey</option> |
| + | <option>Turkmenistan</option> |
| + | <option>Turks and Caicos Islands</option> |
| + | <option>Tuvalu</option> |
| + | <option>Uganda</option> |
| + | <option>Ukraine</option> |
| + | <option>United Arab Emirates</option> |
| + | <option>United Kingdom</option> |
| + | <option>United States (USA)</option> |
| + | <option>Uruguay</option> |
| + | <option>Uzbekistan</option> |
| + | <option>Vanuatu</option> |
| + | <option>Venezuela</option> |
| + | <option>Vietnam</option> |
| + | <option>Yemen</option> |
| + | <option>Zambia</option> |
| + | <option>Zimbabwe</option> |
| + | </select> |
| | | |
− | <div id="form_container" style="max-width:500px;background:;border:0px solid #ccc;box-shadow: #ccc 2px 2px 4px 4px" class="mw-htmlform-ooui-wrapper oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-padded oo-ui-panelLayout-framed"></div> | + | <span class="ci_form_section_help"> |
| + | Leave empty if it's a remote job |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | <!--------------------------CITY --------------------------> |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Workplace city |
| + | </span> |
| + | |
| + | <input class="ci_form_input" type="text" placeholder="" name="Form opportunity[Workplace city]" value=""> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Leave empty if it's a remote job |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | |
| + | <!--------------------------TARGET COUNTRY--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Target countries |
| + | </span> |
| + | |
| + | <input type="hidden" value="1" name="Form opportunity[Target countries][is_list]"> |
| + | |
| + | <select multiple id="select_countries" class="ci_form_input" name="Form opportunity[Target countries][]"> |
| + | |
| + | <option>all countries</option> |
| + | <option>EU countries</option> |
| + | <option>EFTA countries</option> |
| + | <option>other EU Countries</option> |
| + | <option>EU Candidate countries</option> |
| + | <option>EU Potential Candidate</option> |
| + | <option>Schengen area countries</option> |
| + | <option>ACP countries</option> |
| + | <option>OCTA countries</option> |
| + | |
| + | </select> |
| + | |
| + | |
| + | <span class="ci_form_section_help"> |
| + | To citizens of what countries is addressed this opportunity? Here is a </html>[[countries list|list of countries]]<html> for each group |
| + | </span> |
| | | |
| <!-- | | <!-- |
| + | <div style="margin:8px 0"> |
| | | |
− | Announcement type + of type Text (0 uses)
| + | <input class="target_country_group_button unselected" data="eu_countries" type="button" value = "Eu Countries"/> |
− | Announcement title + of type Text (0 uses)
| + | <input class="target_country_group_button unselected" data="efta_countries" type="button" value = "EFTA Countries"/> |
− | Announcement provider + of type Text (0 uses)
| + | <input class="target_country_group_button unselected" data="other_eu_countries" type="button" value = "Other European Countries"/> |
− | Announcement target country + of type Text (0 uses)
| + | <input class="target_country_group_button unselected" data="EU_candidate_countries" type="button" value = "EU candidate countries"/> |
| + | <input class="target_country_group_button unselected" data="EU_potential_candidate_countries" type="button" value = "EU potential candidates countries"/> |
| + | <input class="target_country_group_button unselected" data="Schengen_area_countries" type="button" value = "Countries in Schengen area"/> |
| + | <input class="target_country_group_button unselected" data="ACP_countries" type="button" value = "African, Caribbean, and Pacific (ACP) Group of States"/> |
| + | <input class="target_country_group_button unselected" data="OCTA_countries" type="button" value = "Overseas Countries and Territories Association"/> |
| | | |
− | Announcement funding exact + of type Number (0 uses)
| + | </div> |
− | Announcement funding info + of type Text (0 uses)
| + | --> |
− | Announcement funding max + of type Number (0 uses)
| + | </div> |
− | Announcement funding min + of type Number (0 uses)
| |
| | | |
− | Announcement description + of type Text (0 uses)
| |
| | | |
− | Announcement requisites + of type Text (0 uses)
| |
| | | |
− | Announcement url official + of type URL (0 uses)
| + | <!--------------------------FUNDING INFORMATION--------------------------> |
− | Announcement deadline + of type Date (0 uses)
| + | |
− | --> | + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Funding or salary |
| + | </span> |
| + | |
| + | <textarea name="Form opportunity[Funding or salary]" class="ci_form_input" style="width:100%" rows="3"> |
| + | </textarea> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Enter the funding or salary provided by this opportunity |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | <!--------------------------REQUISITES--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Requisites |
| + | </span> |
| + | |
| + | <textarea name="Form opportunity[Requisites]" class="ci_form_input" style="width:100%" rows="3"> |
| + | </textarea> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Please list the requisites to access this opportunity |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | <!--------------------------URL--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Url official |
| + | </span> |
| + | |
| + | <input class="ci_form_input" type="text" placeholder="" name="Form opportunity[Url]" value=""> |
| + | |
| + | <span class="ci_form_section_help"> |
| + | Please enter the official url with further information |
| + | </span> |
| + | |
| + | </div> |
| + | |
| + | |
| + | |
| + | <!--------------------------DEADLINE--------------------------> |
| + | |
| + | <div class="ci_form_section"> |
| + | <span class="ci_form_section_label"> |
| + | Deadline |
| + | </span> |
| + | |
| + | |
| + | <table><tr><td> |
| + | <select class="ci_form_input" name="Form opportunity[Deadline][day]"> |
| + | <option></option> |
| + | <option>1</option> |
| + | <option>2</option> |
| + | <option>3</option> |
| + | <option>4</option> |
| + | <option>5</option> |
| + | <option>6</option> |
| + | <option>7</option> |
| + | <option>8</option> |
| + | <option>9</option> |
| + | <option>10</option> |
| + | <option>11</option> |
| + | <option>12</option> |
| + | <option>13</option> |
| + | <option>14</option> |
| + | <option>15</option> |
| + | <option>16</option> |
| + | <option>17</option> |
| + | <option>18</option> |
| + | <option>19</option> |
| + | <option>20</option> |
| + | <option>21</option> |
| + | <option>22</option> |
| + | <option>23</option> |
| + | <option>24</option> |
| + | <option>25</option> |
| + | <option>26</option> |
| + | <option>27</option> |
| + | <option>28</option> |
| + | <option>29</option> |
| + | <option>30</option> |
| + | <option>31</option> |
| + | </select> |
| + | |
| + | </td><td> |
| + | |
| + | <select class="ci_form_input" name="Form opportunity[Deadline][month]"> |
| + | <option></option> |
| + | <option value="1">January</option> |
| + | <option value="2">February</option> |
| + | <option value="3">March</option> |
| + | <option value="4">April</option> |
| + | <option value="5">May</option> |
| + | <option value="6">June</option> |
| + | <option value="7">July</option> |
| + | <option value="8">August</option> |
| + | <option value="9">September</option> |
| + | <option value="10">October</option> |
| + | <option value="11">November</option> |
| + | <option value="12">December</option> |
| + | </select> |
| + | </td><td> |
| + | |
| + | <select class="ci_form_input" name="Form opportunity[Deadline][year]"> |
| + | <option></option> |
| + | <option>2020</option> |
| + | <option>2021</option> |
| + | </select> |
| + | </td></tr></table> |
| + | |
| + | |
| + | <div> |
| + | <div class="checkbox-container"> |
| | | |
| + | <label class="checkbox-label"> |
| + | <input type="hidden" value="true" name="Form opportunity[Deadline as soon as possible][is_checkbox]" > |
| + | <input type="checkbox" name="Form opportunity[Deadline as soon as possible][value]"> |
| + | <span class="checkbox-custom rectangular" data="checkbox_input"></span> |
| + | </label> |
| + | |
| + | <span class="checkbox-title">As soon as possible</span> |
| + | </div> |
| | | |
− | <script>
| |
| | | |
− | function setup_() {
| + | <style> |
| | | |
− | var data = ['', 'Scholarship','Internship','European voluntary service (EVS/ESC)','Other']
| + | .target_country_group_button { |
− | var options = []
| + | background: #ededed; |
− | for(var i in data) { options.push({data: data[i],label: data[i]}) }
| + | border: 1px solid #ccc; |
| + | padding: 10px 12px; |
| + | border-radius: 3px; |
| + | cursor: pointer; |
| + | margin: 2px; |
| + | } |
| | | |
− | var announcement_type = new OO.ui.DropdownInputWidget( {
| + | .target_country_group_button.selected { |
− | options: options,
| + | background: #e5e5e5; |
− | value: ''
| + | -webkit-box-shadow: inset 0px 0px 5px #c1c1c1; |
− | } ) | + | -moz-box-shadow: inset 0px 0px 5px #c1c1c1; |
| + | box-shadow: inset 0px 0px 5px #c1c1c1; |
| + | outline: none; |
| + | } |
| | | |
− | // Create form elements (two text inputs and the button input, in this example).
| + | .checkbox-container { |
− | var announcement_title = new OO.ui.TextInputWidget( {
| + | display: table; |
− | value: ''})
| + | margin: 8px 0; |
| + | } |
| | | |
− | var announcement_provider = new OO.ui.TextInputWidget( {
| + | .checkbox-title { |
− | value: ''
| + | display: table-cell; |
− | })
| + | vertical-align: middle; |
| + | } |
| | | |
| + | /* Styling Checkbox Starts */ |
| + | .checkbox-label { |
| + | display: inline-block; |
| + | position: relative; |
| + | margin: auto; |
| + | cursor: pointer; |
| + | font-size: 22px; |
| + | line-height: 24px; |
| + | height: 24px; |
| + | width: 24px; |
| + | clear: both; |
| + | margin-left: 4px; |
| + | margin-right: 8px; |
| + | } |
| | | |
− | var announcement_description = new OO.ui.MultilineTextInputWidget( {
| + | .checkbox-label input { |
− | autosize: true,
| + | position: absolute; |
− | value: ''
| + | opacity: 0; |
− | } ) | + | cursor: pointer; |
| + | } |
| | | |
| + | .checkbox-label .checkbox-custom { |
| + | position: absolute; |
| + | top: 0px; |
| + | left: 0px; |
| + | height: 24px; |
| + | width: 24px; |
| + | background-color: transparent; |
| + | border-radius: 5px; |
| + | |
| + | border: 1px solid #ccc; |
| + | } |
| | | |
− | var data = {'':'', 'AF' : 'Afghanistan','AL' : 'Albania','DZ' : 'Algeria','AS' : 'American Samoa','AD' : 'Andorra','AO' : 'Angola','AI' : 'Anguilla','AG' : 'Antigua and Barbuda','AR' : 'Argentina','AM' : 'Armenia','AW' : 'Aruba','AU' : 'Australia','AT' : 'Austria','AZ' : 'Azerbaijan','BS' : 'Bahamas','BH' : 'Bahrain','BD' : 'Bangladesh','BB' : 'Barbados','BY' : 'Belarus','BE' : 'Belgium','BZ' : 'Belize','BJ' : 'Benin','BM' : 'Bermuda','BT' : 'Bhutan','BO' : 'Bolivia','BA' : 'Bosnia and Herzegovina','BK' : 'Bosnia and Herzegovina (Bosnia-Herzegovina)','BW' : 'Botswana','BR' : 'Brazil','BN' : 'Brunei','BG' : 'Bulgaria','BF' : 'Burkina Faso','BI' : 'Burundi','KH' : 'Cambodia','CM' : 'Cameroon','CA' : 'Canada','CV' : 'Cape Verde','KY' : 'Cayman Islands','CF' : 'Central African Republic','TD' : 'Chad','CL' : 'Chile','CO' : 'Colombia','KM' : 'Comoros','CG' : 'Congo','CK' : 'Cook Islands','CR' : 'Costa Rica','ISO' : 'Country','HR' : 'Croatia','CU' : 'Cuba','CY' : 'Cyprus','CZ' : 'Czech Republic','CD' : 'Democratic Republic of Congo','DK' : 'Denmark','DJ' : 'Djibouti','DM' : 'Dominica','DO' : 'Dominican Republic','TL' : 'East Timor','EC' : 'Ecuador','EG' : 'Egypt','SV' : 'El Salvador','GQ' : 'Equatorial Guinea','ER' : 'Eritrea','EE' : 'Estonia','ET' : 'Ethiopia','FK' : 'Falkland Islands','FO' : 'Faroe Islands','FJ' : 'Fiji','FI' : 'Finland','FR' : 'France','GF' : 'French Guiana','PF' : 'French Polynesia','GA' : 'Gabon','GM' : 'Gambia','GE' : 'Georgia','DE' : 'Germany','GH' : 'Ghana','GI' : 'Gibraltar','GR' : 'Greece','GL' : 'Greenland','GD' : 'Grenada','GP' : 'Guadeloupe','GU' : 'Guam','GT' : 'Guatemala','GG' : 'Guernsey','GN' : 'Guinea','GW' : 'Guinea-Bissau','GY' : 'Guyana','HT' : 'Haiti','HN' : 'Honduras','HK' : 'Hong Kong','HU' : 'Hungary','IS' : 'Iceland','IN' : 'India','ID' : 'Indonesia','IR' : 'Iran','IQ' : 'Iraq','IE' : 'Ireland','IL' : 'Israel','IT' : 'Italy','CI' : 'Ivory Coast','JM' : 'Jamaica','JP' : 'Japan','JE' : 'Jersey','JO' : 'Jordan','KZ' : 'Kazakhstan','KE' : 'Kenya','KI' : 'Kiribati','XK' : 'Kosovo','KW' : 'Kuwait','KG' : 'Kyrgyzstan','LA' : 'Laos','LV' : 'Latvia','LB' : 'Lebanon','LS' : 'Lesotho','LR' : 'Liberia','LY' : 'Libya','LI' : 'Liechtenstein','LT' : 'Lithuania','LU' : 'Luxembourg','MO' : 'Macau','MG' : 'Madagascar','MW' : 'Malawi','MY' : 'Malaysia','MV' : 'Maldives','ML' : 'Mali','MT' : 'Malta','MH' : 'Marshall Islands','MQ' : 'Martinique','MR' : 'Mauritania','MU' : 'Mauritius','MX' : 'Mexico','FM' : 'Micronesia','MD' : 'Moldova','MC' : 'Monaco','MN' : 'Mongolia','ME' : 'Montenegro','MS' : 'Montserrat','MA' : 'Morocco','MZ' : 'Mozambique','MM' : 'Myanmar','NA' : 'Namibia','NR' : 'Nauru','NP' : 'Nepal','NL' : 'Netherlands','AN' : 'Netherlands Antilles','NC' : 'New Caledonia','NZ' : 'New Zealand','NI' : 'Nicaragua','NE' : 'Niger','NG' : 'Nigeria','NU' : 'Niue','NF' : 'Norfolk Island','KP' : 'North Korea','NO' : 'Norway','OM' : 'Oman','PK' : 'Pakistan','PW' : 'Palau','PS' : 'Palestinian Authority','PA' : 'Panama','PG' : 'Papua New Guinea','PY' : 'Paraguay','CN' : 'People\'s Republic of China','PE' : 'Peru','PH' : 'Philippines','PL' : 'Poland','PT' : 'Portugal','PR' : 'Puerto Rico','QA' : 'Qatar','MK' : 'Republic of Macedonia','RE' : 'Reunion/Mayotte','RO' : 'Romania','RU' : 'Russia (Russian Federation)','RW' : 'Rwanda','WS' : 'Samoa','SM' : 'San Marino','SA' : 'Saudi Arabia','SN' : 'Senegal','RS' : 'Serbia','SC' : 'Seychelles','SL' : 'Sierra Leone','SG' : 'Singapore','SK' : 'Slovakia (Slovak Republic)','SI' : 'Slovenia','SB' : 'Solomon Islands','SO' : 'Somalia','ZA' : 'South Africa','KR' : 'South Korea','SS' : 'South Sudan','ES' : 'Spain','LK' : 'Sri Lanka','KN' : 'St Kitts and Nevis','LC' : 'St Lucia','PM' : 'St Pierre and Miquelon','VC' : 'St Vincent Grenadines','SD' : 'Sudan','SR' : 'Suriname','SZ' : 'Swaziland','SE' : 'Sweden','CH' : 'Switzerland','SY' : 'Syria','ST' : 'São Tomé and Príncipe','TW' : 'Taiwan','TJ' : 'Tajikistan','TZ' : 'Tanzania','TH' : 'Thailand','TG' : 'Togo','TO' : 'Tonga','TT' : 'Trinidad and Tobago','TN' : 'Tunisia','TR' : 'Turkey','TM' : 'Turkmenistan','TC' : 'Turks and Caicos Islands','TV' : 'Tuvalu','UG' : 'Uganda','UA' : 'Ukraine','AE' : 'United Arab Emirates','GB' : 'United Kingdom','US' : 'United States (USA)','UY' : 'Uruguay','UZ' : 'Uzbekistan','VU' : 'Vanuatu','VE' : 'Venezuela','VN' : 'Vietnam','YE' : 'Yemen','ZM' : 'Zambia','ZW' : 'Zimbabwe'}
| |
− | var options = []
| |
− | //for(var i in data) { options.push({data: data[i],label: data[i]}) }
| |
| | | |
− | for(var i in data) {
| + | .checkbox-label input:checked ~ .checkbox-custom { |
− | options.push(
| + | background-color: #FFFFFF; |
− | new OO.ui.MenuOptionWidget( {
| + | border-radius: 5px; |
− | data: data[i],
| + | -webkit-transform: rotate(0deg) scale(1); |
− | label: data[i]
| + | -ms-transform: rotate(0deg) scale(1); |
− | } )
| + | transform: rotate(0deg) scale(1); |
− | ); | + | opacity:1; |
| + | border: 1px solid #ccc; |
| } | | } |
| | | |
− | /*
| |
− | var announcement_target_country = new OO.ui.DropdownInputWidget( {
| |
− | options: options,
| |
− | value: ''
| |
− | } )
| |
− | */
| |
| | | |
− | var announcement_target_country = new OO.ui.DropdownWidget( {
| + | .checkbox-label .checkbox-custom::after { |
− | label: 'Select one',
| + | position: absolute; |
− | $overlay: true,
| + | content: ""; |
− | menu: {
| + | left: 12px; |
− | items: options
| + | top: 12px; |
− | }
| + | height: 0px; |
− | } )
| + | width: 0px; |
| + | border-radius: 5px; |
| + | border: solid #009BFF; |
| + | border-width: 0 3px 3px 0; |
| + | -webkit-transform: rotate(0deg) scale(0); |
| + | -ms-transform: rotate(0deg) scale(0); |
| + | transform: rotate(0deg) scale(0); |
| + | opacity:1; |
| + | |
| + | } |
| + | |
| | | |
| + | .checkbox-label input:checked ~ .checkbox-custom::after { |
| + | -webkit-transform: rotate(45deg) scale(1); |
| + | -ms-transform: rotate(45deg) scale(1); |
| + | transform: rotate(45deg) scale(1); |
| + | opacity:1; |
| + | left: 8px; |
| + | top: 3px; |
| + | width: 6px; |
| + | height: 12px; |
| + | border: solid #009BFF; |
| + | border-width: 0 2px 2px 0; |
| + | background-color: transparent; |
| + | border-radius: 0; |
| + | } |
| | | |
| | | |
− | // https://github.com/payscale/country-currency-map/blob/master/src/currencyMap.js
| |
| | | |
− | var country_currency_map = {
| + | /* For Ripple Effect */ |
− | 'Afghanistan': {
| + | .checkbox-label .checkbox-custom::before { |
− | 'abbreviation': 'AF',
| + | position: absolute; |
− | 'currency': 'USD'
| + | content: ""; |
− | },
| + | left: 10px; |
− | 'Albania': {
| + | top: 10px; |
− | 'abbreviation': 'AL', | + | width: 0px; |
− | 'currency': 'USD'
| + | height: 0px; |
− | },
| + | border-radius: 5px; |
− | 'Algeria': {
| + | border: 2px solid #FFFFFF; |
− | 'abbreviation': 'DZ',
| + | -webkit-transform: scale(0); |
− | 'currency': 'DZD'
| + | -ms-transform: scale(0); |
− | },
| + | transform: scale(0); |
− | 'American Samoa': {
| + | } |
− | 'abbreviation': 'AS',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Andorra': {
| |
− | 'abbreviation': 'AD',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Angola': {
| |
− | 'abbreviation': 'AO',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Anguilla': {
| |
− | 'abbreviation': 'AI',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Antarctica': {
| |
− | 'abbreviation': 'AQ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Antigua And Barbuda': {
| |
− | 'abbreviation': 'AG',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Argentina': {
| |
− | 'abbreviation': 'AR',
| |
− | 'currency': 'ARS'
| |
− | },
| |
− | 'Armenia': {
| |
− | 'abbreviation': 'AM',
| |
− | 'currency': 'AMD'
| |
− | },
| |
− | 'Aruba': {
| |
− | 'abbreviation': 'AW',
| |
− | 'currency': 'AWG'
| |
− | },
| |
− | 'Ascension Island': {
| |
− | 'abbreviation': 'AC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Australia': {
| |
− | 'abbreviation': 'AU',
| |
− | 'currency': 'AUD'
| |
− | },
| |
− | 'Austria': {
| |
− | 'abbreviation': 'AT',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Azerbaijan': {
| |
− | 'abbreviation': 'AZ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Bahamas': {
| |
− | 'abbreviation': 'BS',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Bahrain': {
| |
− | 'abbreviation': 'BH',
| |
− | 'currency': 'BHD'
| |
− | },
| |
− | 'Bangladesh': {
| |
− | 'abbreviation': 'BD',
| |
− | 'currency': 'BDT'
| |
− | },
| |
− | 'Barbados': {
| |
− | 'abbreviation': 'BB',
| |
− | 'currency': 'BBD'
| |
− | },
| |
− | 'Belarus': {
| |
− | 'abbreviation': 'BY',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Belgium': {
| |
− | 'abbreviation': 'BE',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Belize': {
| |
− | 'abbreviation': 'BZ',
| |
− | 'currency': 'BZD'
| |
− | },
| |
− | 'Benin': {
| |
− | 'abbreviation': 'BJ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Bermuda': {
| |
− | 'abbreviation': 'BM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Bhutan': {
| |
− | 'abbreviation': 'BT',
| |
− | 'currency': 'BTN'
| |
− | },
| |
− | 'Bolivia': {
| |
− | 'abbreviation': 'BO',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Bosnia And Herzegowina': {
| |
− | 'abbreviation': 'BA',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Botswana': {
| |
− | 'abbreviation': 'BW',
| |
− | 'currency': 'BWP'
| |
− | },
| |
− | 'Bouvet Island': {
| |
− | 'abbreviation': 'BV', | |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Brazil': {
| |
− | 'abbreviation': 'BR',
| |
− | 'currency': 'BRL'
| |
− | },
| |
− | 'British Indian Ocean Territory': {
| |
− | 'abbreviation': 'IO',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Brunei Darussalam': {
| |
− | 'abbreviation': 'BN',
| |
− | 'currency': 'BND'
| |
− | },
| |
− | 'Bulgaria': {
| |
− | 'abbreviation': 'BG',
| |
− | 'currency': 'BGN'
| |
− | },
| |
− | 'Burkina Faso': {
| |
− | 'abbreviation': 'BF',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Burundi': {
| |
− | 'abbreviation': 'BI',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Cambodia': {
| |
− | 'abbreviation': 'KH',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Cameroon': {
| |
− | 'abbreviation': 'CM',
| |
− | 'currency': 'XAF'
| |
− | },
| |
− | 'Canada': {
| |
− | 'abbreviation': 'CA',
| |
− | 'currency': 'CAD'
| |
− | },
| |
− | 'Cape Verde': {
| |
− | 'abbreviation': 'CV',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Cayman Islands': {
| |
− | 'abbreviation': 'KY',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Central African Republic': {
| |
− | 'abbreviation': 'CF',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Chad': {
| |
− | 'abbreviation': 'TD',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Chile': {
| |
− | 'abbreviation': 'CL',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'China': {
| |
− | 'abbreviation': 'CN',
| |
− | 'currency': 'CNY'
| |
− | },
| |
− | 'Christmas Island': {
| |
− | 'abbreviation': 'CX',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Cocos (Keeling) Islands': {
| |
− | 'abbreviation': 'CC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Colombia': {
| |
− | 'abbreviation': 'CO',
| |
− | 'currency': 'COP'
| |
− | },
| |
− | 'Comoros': {
| |
− | 'abbreviation': 'KM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Congo': {
| |
− | 'abbreviation': 'CG',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | "Congo, Democratic People's Republic": {
| |
− | 'abbreviation': 'CD', | |
− | 'currency': 'USD' | |
− | },
| |
− | 'Cook Islands': {
| |
− | 'abbreviation': 'CK', | |
− | 'currency': 'NZD' | |
− | },
| |
− | 'Costa Rica': {
| |
− | 'abbreviation': 'CR', | |
− | 'currency': 'CRC' | |
− | },
| |
− | "Cote d'Ivoire": {
| |
− | 'abbreviation': 'CI', | |
− | 'currency': 'XOF'
| |
− | },
| |
− | 'Croatia (local name: Hrvatska)': {
| |
− | 'abbreviation': 'HR', | |
− | 'currency': 'HRK'
| |
− | },
| |
− | 'Cuba': {
| |
− | 'abbreviation': 'CU',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Cyprus': {
| |
− | 'abbreviation': 'CY',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Czech Republic': {
| |
− | 'abbreviation': 'CZ',
| |
− | 'currency': 'CZK'
| |
− | },
| |
− | 'Denmark': {
| |
− | 'abbreviation': 'DK',
| |
− | 'currency': 'DKK'
| |
− | },
| |
− | 'Djibouti': {
| |
− | 'abbreviation': 'DJ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Dominica': {
| |
− | 'abbreviation': 'DM',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Dominican Republic': {
| |
− | 'abbreviation': 'DO',
| |
− | 'currency': 'DOP'
| |
− | },
| |
− | 'East Timor': {
| |
− | 'abbreviation': 'TP',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Ecuador': {
| |
− | 'abbreviation': 'EC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Egypt': {
| |
− | 'abbreviation': 'EG',
| |
− | 'currency': 'EGP'
| |
− | },
| |
− | 'El Salvador': {
| |
− | 'abbreviation': 'SV',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Equatorial Guinea': {
| |
− | 'abbreviation': 'GQ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Eritrea': {
| |
− | 'abbreviation': 'ER',
| |
− | 'currency': 'ERN'
| |
− | },
| |
− | 'Estonia': {
| |
− | 'abbreviation': 'EE',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Ethiopia': {
| |
− | 'abbreviation': 'ET',
| |
− | 'currency': 'ETB'
| |
− | },
| |
− | 'Falkland Islands (Malvinas)': {
| |
− | 'abbreviation': 'FK',
| |
− | 'currency': 'FKP'
| |
− | },
| |
− | 'Faroe Islands': {
| |
− | 'abbreviation': 'FO',
| |
− | 'currency': 'DKK'
| |
− | },
| |
− | 'Fiji': {
| |
− | 'abbreviation': 'FJ',
| |
− | 'currency': 'FJD'
| |
− | },
| |
− | 'Finland': {
| |
− | 'abbreviation': 'FI',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'France': {
| |
− | 'abbreviation': 'FR',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'French Guiana': {
| |
− | 'abbreviation': 'GF',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'French Polynesia': {
| |
− | 'abbreviation': 'PF',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'French Southern Territories': {
| |
− | 'abbreviation': 'TF',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Gabon': {
| |
− | 'abbreviation': 'GA',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Gambia': {
| |
− | 'abbreviation': 'GM',
| |
− | 'currency': 'GMD'
| |
− | },
| |
− | 'Georgia (Sakartvelo)': {
| |
− | 'abbreviation': 'GE',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Germany': {
| |
− | 'abbreviation': 'DE',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Ghana': {
| |
− | 'abbreviation': 'GH',
| |
− | 'currency': 'GHC'
| |
− | },
| |
− | 'Gibraltar': {
| |
− | 'abbreviation': 'GI',
| |
− | 'currency': 'GBP'
| |
− | },
| |
− | 'Greece': {
| |
− | 'abbreviation': 'GR',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Greenland': {
| |
− | 'abbreviation': 'GL',
| |
− | 'currency': 'DKK'
| |
− | },
| |
− | 'Grenada': {
| |
− | 'abbreviation': 'GD',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Guadeloupe': {
| |
− | 'abbreviation': 'GP',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Guam': {
| |
− | 'abbreviation': 'GU',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Guatemala': {
| |
− | 'abbreviation': 'GT',
| |
− | 'currency': 'GTQ'
| |
− | },
| |
− | 'Guernsey': {
| |
− | 'abbreviation': 'GG',
| |
− | 'currency': 'GBP'
| |
− | },
| |
− | 'Guinea': {
| |
− | 'abbreviation': 'GN',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Guinea-Bissau': {
| |
− | 'abbreviation': 'GW',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Guyana': {
| |
− | 'abbreviation': 'GY',
| |
− | 'currency': 'GYD'
| |
− | },
| |
− | 'Haiti': {
| |
− | 'abbreviation': 'HT',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Heard And Mc Donald Islands': {
| |
− | 'abbreviation': 'HM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Honduras': {
| |
− | 'abbreviation': 'HN',
| |
− | 'currency': 'HNL'
| |
− | },
| |
− | 'Hong Kong': {
| |
− | 'abbreviation': 'HK',
| |
− | 'currency': 'HKD'
| |
− | },
| |
− | 'Hungary': {
| |
− | 'abbreviation': 'HU',
| |
− | 'currency': 'HUF'
| |
− | },
| |
− | 'Iceland': {
| |
− | 'abbreviation': 'IS',
| |
− | 'currency': 'ISK'
| |
− | },
| |
− | 'India': {
| |
− | 'abbreviation': 'IN',
| |
− | 'currency': 'INR'
| |
− | },
| |
− | 'Indonesia': {
| |
− | 'abbreviation': 'ID',
| |
− | 'currency': 'IDR'
| |
− | },
| |
− | 'Iran (Islamic Republic Of)': {
| |
− | 'abbreviation': 'IR',
| |
− | 'currency': 'IRR'
| |
− | },
| |
− | 'Iraq': {
| |
− | 'abbreviation': 'IQ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Ireland': {
| |
− | 'abbreviation': 'IE',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Isle of Man': {
| |
− | 'abbreviation': 'IM',
| |
− | 'currency': 'GBP' | |
− | },
| |
− | 'Israel': {
| |
− | 'abbreviation': 'IL',
| |
− | 'currency': 'ILS'
| |
− | },
| |
− | 'Italy': {
| |
− | 'abbreviation': 'IT',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Jamaica': {
| |
− | 'abbreviation': 'JM',
| |
− | 'currency': 'JMD'
| |
− | },
| |
− | 'Japan': {
| |
− | 'abbreviation': 'JP',
| |
− | 'currency': 'JPY'
| |
− | },
| |
− | 'Jersey (Island)': {
| |
− | 'abbreviation': 'JE',
| |
− | 'currency': 'GBP'
| |
− | },
| |
− | 'Jordan': {
| |
− | 'abbreviation': 'JO',
| |
− | 'currency': 'JOD'
| |
− | },
| |
− | 'Kazakhstan': {
| |
− | 'abbreviation': 'KZ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Kenya': {
| |
− | 'abbreviation': 'KE',
| |
− | 'currency': 'KES'
| |
− | },
| |
− | 'Kiribati': {
| |
− | 'abbreviation': 'KI',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | "Korea, Democratic People's Republic Of": {
| |
− | 'abbreviation': 'KP',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Korea, Republic Of': {
| |
− | 'abbreviation': 'KR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Kuwait': {
| |
− | 'abbreviation': 'KW',
| |
− | 'currency': 'KWD'
| |
− | },
| |
− | 'Kyrgyzstan': {
| |
− | 'abbreviation': 'KG',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | "Lao People's Democratic Republic": {
| |
− | 'abbreviation': 'LA',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Latvia': {
| |
− | 'abbreviation': 'LV',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Lebanon': {
| |
− | 'abbreviation': 'LB',
| |
− | 'currency': 'LBP'
| |
− | },
| |
− | 'Lesotho': {
| |
− | 'abbreviation': 'LS',
| |
− | 'currency': 'ZAR'
| |
− | },
| |
− | 'Liberia': {
| |
− | 'abbreviation': 'LR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Libyan Arab Jamahiriya': {
| |
− | 'abbreviation': 'LY',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Liechtenstein': {
| |
− | 'abbreviation': 'LI',
| |
− | 'currency': 'CHF'
| |
− | },
| |
− | 'Lithuania': {
| |
− | 'abbreviation': 'LT',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Luxembourg': {
| |
− | 'abbreviation': 'LU',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Macau': {
| |
− | 'abbreviation': 'MO',
| |
− | 'currency': 'MOP'
| |
− | },
| |
− | 'Macedonia, The Former Yugoslav Republic Of': {
| |
− | 'abbreviation': 'MK',
| |
− | 'currency': 'MKD'
| |
− | },
| |
− | 'Madagascar': {
| |
− | 'abbreviation': 'MG',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Malawi': {
| |
− | 'abbreviation': 'MW',
| |
− | 'currency': 'MWK'
| |
− | },
| |
− | 'Malaysia': {
| |
− | 'abbreviation': 'MY',
| |
− | 'currency': 'MYR'
| |
− | },
| |
− | 'Maldives': {
| |
− | 'abbreviation': 'MV',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Mali': {
| |
− | 'abbreviation': 'ML',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Malta': {
| |
− | 'abbreviation': 'MT',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Marshall Islands': {
| |
− | 'abbreviation': 'MH',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Martinique': {
| |
− | 'abbreviation': 'MQ',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Mauritania': {
| |
− | 'abbreviation': 'MR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Mauritius': {
| |
− | 'abbreviation': 'MU',
| |
− | 'currency': 'MUR'
| |
− | },
| |
− | 'Mayotte': {
| |
− | 'abbreviation': 'YT',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Mexico': {
| |
− | 'abbreviation': 'MX',
| |
− | 'currency': 'MXN'
| |
− | },
| |
− | 'Micronesia, Federated States Of': {
| |
− | 'abbreviation': 'FM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Moldova, Republic Of': {
| |
− | 'abbreviation': 'MD',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Monaco': {
| |
− | 'abbreviation': 'MC',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Mongolia': {
| |
− | 'abbreviation': 'MN',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Montserrat': {
| |
− | 'abbreviation': 'MS',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Morocco': {
| |
− | 'abbreviation': 'MA',
| |
− | 'currency': 'MAD'
| |
− | },
| |
− | 'Mozambique': {
| |
− | 'abbreviation': 'MZ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Myanmar': {
| |
− | 'abbreviation': 'MM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Namibia': {
| |
− | 'abbreviation': 'NA',
| |
− | 'currency': 'NAD'
| |
− | },
| |
− | 'Nauru': {
| |
− | 'abbreviation': 'NR',
| |
− | 'currency': 'AUD'
| |
− | },
| |
− | 'Nepal': {
| |
− | 'abbreviation': 'NP',
| |
− | 'currency': 'NPR'
| |
− | },
| |
− | 'Netherlands': {
| |
− | 'abbreviation': 'NL',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Netherlands Antilles': {
| |
− | 'abbreviation': 'AN',
| |
− | 'currency': 'ANG'
| |
− | },
| |
− | 'New Caledonia': {
| |
− | 'abbreviation': 'NC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'New Zealand': {
| |
− | 'abbreviation': 'NZ',
| |
− | 'currency': 'NZD'
| |
− | },
| |
− | 'Nicaragua': {
| |
− | 'abbreviation': 'NI',
| |
− | 'currency': 'NIO'
| |
− | },
| |
− | 'Niger': {
| |
− | 'abbreviation': 'NE',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Nigeria': {
| |
− | 'abbreviation': 'NG',
| |
− | 'currency': 'NGN'
| |
− | },
| |
− | 'Niue': {
| |
− | 'abbreviation': 'NU',
| |
− | 'currency': 'NZD'
| |
− | },
| |
− | 'Norfolk Island': {
| |
− | 'abbreviation': 'NF',
| |
− | 'currency': 'AUD'
| |
− | },
| |
− | 'Northern Mariana Islands': {
| |
− | 'abbreviation': 'MP',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Norway': {
| |
− | 'abbreviation': 'NO',
| |
− | 'currency': 'NOK'
| |
− | },
| |
− | 'Oman': {
| |
− | 'abbreviation': 'OM',
| |
− | 'currency': 'OMR'
| |
− | },
| |
− | 'Pakistan': {
| |
− | 'abbreviation': 'PK',
| |
− | 'currency': 'PKR'
| |
− | },
| |
− | 'Palau': {
| |
− | 'abbreviation': 'PW',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Palestinian Territories': {
| |
− | 'abbreviation': 'PS',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Panama': {
| |
− | 'abbreviation': 'PA',
| |
− | 'currency': 'PAB'
| |
− | },
| |
− | 'Papua New Guinea': {
| |
− | 'abbreviation': 'PG',
| |
− | 'currency': 'PGK'
| |
− | },
| |
− | 'Paraguay': {
| |
− | 'abbreviation': 'PY',
| |
− | 'currency': 'PYG'
| |
− | },
| |
− | 'Peru': {
| |
− | 'abbreviation': 'PE',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Philippines': {
| |
− | 'abbreviation': 'PH',
| |
− | 'currency': 'PHP'
| |
− | },
| |
− | 'Pitcairn': {
| |
− | 'abbreviation': 'PN',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Poland': {
| |
− | 'abbreviation': 'PL',
| |
− | 'currency': 'PLN'
| |
− | },
| |
− | 'Portugal': {
| |
− | 'abbreviation': 'PT',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Puerto Rico': {
| |
− | 'abbreviation': 'PR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Qatar': {
| |
− | 'abbreviation': 'QA',
| |
− | 'currency': 'QAR'
| |
− | },
| |
− | 'Reunion': {
| |
− | 'abbreviation': 'RE',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Romania': {
| |
− | 'abbreviation': 'RO',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Russia': {
| |
− | 'abbreviation': 'RU',
| |
− | 'currency': 'RUB'
| |
− | },
| |
− | 'Rwanda': {
| |
− | 'abbreviation': 'RW',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Saint Kitts And Nevis': {
| |
− | 'abbreviation': 'KN',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Saint Lucia': {
| |
− | 'abbreviation': 'LC',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Saint Vincent And The Grenadines': {
| |
− | 'abbreviation': 'VC',
| |
− | 'currency': 'XCD'
| |
− | },
| |
− | 'Samoa': {
| |
− | 'abbreviation': 'WS',
| |
− | 'currency': 'WST'
| |
− | },
| |
− | 'San Marino': {
| |
− | 'abbreviation': 'SM',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Sao Tome And Principe': {
| |
− | 'abbreviation': 'ST',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Saudi Arabia': {
| |
− | 'abbreviation': 'SA',
| |
− | 'currency': 'SAR'
| |
− | },
| |
− | 'Senegal': {
| |
− | 'abbreviation': 'SN',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Serbia and Montenegro': {
| |
− | 'abbreviation': 'CS',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Seychelles': {
| |
− | 'abbreviation': 'SC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Sierra Leone': {
| |
− | 'abbreviation': 'SL',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Singapore': {
| |
− | 'abbreviation': 'SG',
| |
− | 'currency': 'SGD'
| |
− | },
| |
− | 'Slovakia (Slovak Republic)': {
| |
− | 'abbreviation': 'SK',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Slovenia': {
| |
− | 'abbreviation': 'SI',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Solomon Islands': {
| |
− | 'abbreviation': 'SB',
| |
− | 'currency': 'SBD'
| |
− | },
| |
− | 'Somalia': {
| |
− | 'abbreviation': 'SO',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'South Africa': {
| |
− | 'abbreviation': 'ZA',
| |
− | 'currency': 'ZAR'
| |
− | },
| |
− | 'South Georgia And The South Sandwich Islands': {
| |
− | 'abbreviation': 'GS',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Spain': {
| |
− | 'abbreviation': 'ES',
| |
− | 'currency': 'EUR'
| |
− | },
| |
− | 'Sri Lanka': {
| |
− | 'abbreviation': 'LK',
| |
− | 'currency': 'LKR'
| |
− | },
| |
− | 'St. Helena': {
| |
− | 'abbreviation': 'SH',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'St. Pierre And Miquelon': {
| |
− | 'abbreviation': 'PM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Sudan': {
| |
− | 'abbreviation': 'SD',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Suriname': {
| |
− | 'abbreviation': 'SR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Svalbard And Jan Mayen Islands': {
| |
− | 'abbreviation': 'SJ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Swaziland': {
| |
− | 'abbreviation': 'SZ',
| |
− | 'currency': 'SZL'
| |
− | },
| |
− | 'Sweden': {
| |
− | 'abbreviation': 'SE',
| |
− | 'currency': 'SEK'
| |
− | },
| |
− | 'Switzerland': {
| |
− | 'abbreviation': 'CH',
| |
− | 'currency': 'CHF'
| |
− | },
| |
− | 'Syrian Arab Republic': {
| |
− | 'abbreviation': 'SY',
| |
− | 'currency': 'SYP'
| |
− | },
| |
− | 'Taiwan': {
| |
− | 'abbreviation': 'TW',
| |
− | 'currency': 'TWD'
| |
− | },
| |
− | 'Tajikistan': {
| |
− | 'abbreviation': 'TJ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Tanzania, United Republic Of': {
| |
− | 'abbreviation': 'TZ',
| |
− | 'currency': 'TZS'
| |
− | },
| |
− | 'Thailand': {
| |
− | 'abbreviation': 'TH',
| |
− | 'currency': 'THB'
| |
− | },
| |
− | 'Togo': {
| |
− | 'abbreviation': 'TG',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Tokelau': {
| |
− | 'abbreviation': 'TK',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Tonga': {
| |
− | 'abbreviation': 'TO',
| |
− | 'currency': 'TOP'
| |
− | },
| |
− | 'Trinidad And Tobago': {
| |
− | 'abbreviation': 'TT',
| |
− | 'currency': 'TTD'
| |
− | },
| |
− | 'Tunisia': {
| |
− | 'abbreviation': 'TN',
| |
− | 'currency': 'TND'
| |
− | },
| |
− | 'Turkey': {
| |
− | 'abbreviation': 'TR',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Turkmenistan': {
| |
− | 'abbreviation': 'TM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Turks And Caicos Islands': {
| |
− | 'abbreviation': 'TC',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Tuvalu': {
| |
− | 'abbreviation': 'TV',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'U.S. Minor Outlying Islands': {
| |
− | 'abbreviation': 'UM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Uganda': {
| |
− | 'abbreviation': 'UG',
| |
− | 'currency': 'UGX'
| |
− | },
| |
− | 'Ukraine': {
| |
− | 'abbreviation': 'UA',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'United Arab Emirates': {
| |
− | 'abbreviation': 'AE',
| |
− | 'currency': 'AED'
| |
− | },
| |
− | 'United Kingdom': {
| |
− | 'abbreviation': 'UK',
| |
− | 'currency': 'GBP'
| |
− | },
| |
− | 'United States': {
| |
− | 'abbreviation': 'US',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Uruguay': {
| |
− | 'abbreviation': 'UY',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Uzbekistan': {
| |
− | 'abbreviation': 'UZ',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Vanuatu': {
| |
− | 'abbreviation': 'VU',
| |
− | 'currency': 'VUV'
| |
− | },
| |
− | 'Vatican City State (Holy See)': {
| |
− | 'abbreviation': 'VA',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Venezuela': {
| |
− | 'abbreviation': 'VE',
| |
− | 'currency': 'VEB'
| |
− | },
| |
− | 'Viet Nam': {
| |
− | 'abbreviation': 'VN',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Virgin Islands (British)': {
| |
− | 'abbreviation': 'VG',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Virgin Islands (U.S.)': {
| |
− | 'abbreviation': 'VI',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Wallis And Futuna Islands': {
| |
− | 'abbreviation': 'WF',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Western Sahara': {
| |
− | 'abbreviation': 'EH',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Yemen': {
| |
− | 'abbreviation': 'YE',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Zambia': {
| |
− | 'abbreviation': 'ZM',
| |
− | 'currency': 'USD'
| |
− | },
| |
− | 'Zimbabwe': {
| |
− | 'abbreviation': 'ZW',
| |
− | 'currency': 'USD'
| |
− | }
| |
− | };
| |
| | | |
| + | .checkbox-label input:checked ~ .checkbox-custom::before { |
| + | left: -3px; |
| + | top: -3px; |
| + | width: 24px; |
| + | height: 24px; |
| + | border-radius: 5px; |
| + | -webkit-transform: scale(3); |
| + | -ms-transform: scale(3); |
| + | transform: scale(3); |
| + | opacity:0; |
| + | z-index: 999; |
| + | |
| + | } |
| | | |
− | var currency_country_map = {
| |
− | AFA: {
| |
− | name: 'Afghanistan Afghani (AFA)',
| |
− | symbolFormat: '{#} ؋'
| |
− | },
| |
− | ALL: {
| |
− | name: 'Albanian Lek (ALL)',
| |
− | symbolFormat: '{#} L'
| |
− | },
| |
− | DZD: {
| |
− | name: 'Algerian Dinar (DZD)',
| |
− | symbolFormat: '{#} DA'
| |
− | },
| |
− | AOA: {
| |
− | name: 'Angolan New Kwanza (AOA)',
| |
− | symbolFormat: '{#} Kz'
| |
− | },
| |
− | ARS: {
| |
− | name: 'Argentine Peso (ARS)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | AMD: {
| |
− | name: 'Armenian Dram (AMD)',
| |
− | symbolFormat: '{#}֏'
| |
− | },
| |
− | AWG: {
| |
− | name: 'Aruba Florin (AWG)',
| |
− | symbolFormat: 'Afl {#}'
| |
− | },
| |
− | AUD: {
| |
− | name: 'Australian Dollar (AUD)',
| |
− | symbolFormat: 'AU${#}'
| |
− | },
| |
− | AZM: {
| |
− | name: 'Azerbaijani Manat (AZM)',
| |
− | symbolFormat: '₼{#}'
| |
− | },
| |
− | BSD: {
| |
− | name: 'Bahamian Dollar (BSD)',
| |
− | symbolFormat: 'B${#}'
| |
− | },
| |
− | BHD: {
| |
− | name: 'Bahraini Dinar (BHD)',
| |
− | symbolFormat: '{#} BD'
| |
− | },
| |
− | BDT: {
| |
− | name: 'Bangladesh Taka (BDT)',
| |
− | symbolFormat: '৳{#}'
| |
− | },
| |
− | BBD: {
| |
− | name: 'Barbados Dollar (BBD)',
| |
− | symbolFormat: 'Bds${#}'
| |
− | },
| |
− | BYR: {
| |
− | name: 'Belarus Ruble (BYR)',
| |
− | symbolFormat: 'Br {#}'
| |
− | },
| |
− | BZD: {
| |
− | name: 'Belize Dollar (BZD)',
| |
− | symbolFormat: 'BZ${#}'
| |
− | },
| |
− | BMD: {
| |
− | name: 'Bermuda Dollar (BMD)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | BTN: {
| |
− | name: 'Bhutan Ngultrum (BTN)',
| |
− | symbolFormat: 'Nu.{#}'
| |
− | },
| |
− | BOB: {
| |
− | name: 'Bolivian Boliviano (BOB)',
| |
− | symbolFormat: 'Bs. {#}'
| |
− | },
| |
− | BAM: {
| |
− | name: 'Bosnian Marka (BAM)',
| |
− | symbolFormat: '{#} KM'
| |
− | },
| |
− | BWP: {
| |
− | name: 'Botswana Pula (BWP)',
| |
− | symbolFormat: 'P {#}'
| |
− | },
| |
− | BRL: {
| |
− | name: 'Brazilian Real (BRL)',
| |
− | symbolFormat: 'R${#}'
| |
− | },
| |
− | GBP: {
| |
− | name: 'British Pound (GBP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | BND: {
| |
− | name: 'Brunei Dollar (BND)',
| |
− | symbolFormat: 'B${#}'
| |
− | },
| |
− | BGN: {
| |
− | name: 'Bulgarian Lev (BGN)',
| |
− | symbolFormat: 'BGN {#}'
| |
− | },
| |
− | BIF: {
| |
− | name: 'Burundi Franc (BIF)',
| |
− | symbolFormat: '{#} FBu'
| |
− | },
| |
− | KHR: {
| |
− | name: 'Cambodia Riel (KHR)',
| |
− | symbolFormat: 'KHR {#}'
| |
− | },
| |
− | CAD: {
| |
− | name: 'Canadian Dollar (CAD)',
| |
− | symbolFormat: 'C${#}'
| |
− | },
| |
− | CVE: {
| |
− | name: 'Cape Verde Escudo (CVE)',
| |
− | symbolFormat: '{#} CVE'
| |
− | },
| |
− | KYD: {
| |
− | name: 'Cayman Islands Dollar (KYD)',
| |
− | symbolFormat: 'CI${#}'
| |
− | },
| |
− | XOF: {
| |
− | name: 'CFA Franc (BCEAO) (XOF)',
| |
− | symbolFormat: 'XOF {#}'
| |
− | },
| |
− | XAF: {
| |
− | name: 'CFA Franc (BEAC) (XAF)',
| |
− | symbolFormat: 'XAF {#}'
| |
− | },
| |
− | CLP: {
| |
− | name: 'Chilean Peso (CLP)',
| |
− | symbolFormat: 'CLP${#}'
| |
− | },
| |
− | CNY: {
| |
− | name: 'Chinese Yuan (CNY)',
| |
− | symbolFormat: '¥{#}'
| |
− | },
| |
− | COP: {
| |
− | name: 'Colombian Peso (COP)',
| |
− | symbolFormat: 'COL${#}'
| |
− | },
| |
− | KMF: {
| |
− | name: 'Comoros Franc (KMF)',
| |
− | symbolFormat: 'CF {#}'
| |
− | },
| |
− | CDF: {
| |
− | name: 'Congolese Franc (CDF)',
| |
− | symbolFormat: 'FC {#}'
| |
− | },
| |
− | CRC: {
| |
− | name: 'Costa Rica Colon (CRC)',
| |
− | symbolFormat: '₡{#}'
| |
− | },
| |
− | HRK: {
| |
− | name: 'Croatian Kuna (HRK)',
| |
− | symbolFormat: '{#} kn'
| |
− | },
| |
− | CUP: {
| |
− | name: 'Cuban Peso (CUP)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | CZK: {
| |
− | name: 'Czech Koruna (CZK)',
| |
− | symbolFormat: '{#} Kč'
| |
− | },
| |
− | DKK: {
| |
− | name: 'Danish Krone (DKK)',
| |
− | symbolFormat: '{#} Kr.'
| |
− | },
| |
− | DJF: {
| |
− | name: 'Dijibouti Franc (DJF)',
| |
− | symbolFormat: '{#} Fdj'
| |
− | },
| |
− | DOP: {
| |
− | name: 'Dominican Peso (DOP)',
| |
− | symbolFormat: 'RD${#}'
| |
− | },
| |
− | XCD: {
| |
− | name: 'East Caribbean Dollar (XCD)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | EGP: {
| |
− | name: 'Egyptian Pound (EGP)',
| |
− | symbolFormat: 'E£ {#}'
| |
− | },
| |
− | SVC: {
| |
− | name: 'El Salvador Colon (SVC)',
| |
− | symbolFormat: '₡{#}'
| |
− | },
| |
− | ERN: {
| |
− | name: 'Eritrea Nakfa (ERN)',
| |
− | symbolFormat: '{#} Nkf'
| |
− | },
| |
− | ETB: {
| |
− | name: 'Ethiopian Birr (ETB)',
| |
− | symbolFormat: '{#} Br'
| |
− | },
| |
− | EUR: {
| |
− | name: 'Euro (EUR)',
| |
− | symbolFormat: '€{#}'
| |
− | },
| |
− | FKP: {
| |
− | name: 'Falkland Islands Pound (FKP)',
| |
− | symbolFormat: 'FK£ {#}'
| |
− | },
| |
− | FJD: {
| |
− | name: 'Fiji Dollar (FJD)',
| |
− | symbolFormat: 'FJ${#}'
| |
− | },
| |
− | GMD: {
| |
− | name: 'Gambian Dalasi (GMD)',
| |
− | symbolFormat: 'GMD {#}'
| |
− | },
| |
− | GEL: {
| |
− | name: 'Georgian Lari (GEL)',
| |
− | symbolFormat: '₾{#}'
| |
− | },
| |
− | GHC: {
| |
− | name: 'Ghanian Cedi (GHC)',
| |
− | symbolFormat: 'GH₵ {#}'
| |
− | },
| |
− | GIP: {
| |
− | name: 'Gibraltar Pound (GIP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | XAU: {
| |
− | name: 'Gold Ounces (XAU)',
| |
− | symbolFormat: 'XAU {#}'
| |
− | },
| |
− | GTQ: {
| |
− | name: 'Guatemala Quetzal (GTQ)',
| |
− | symbolFormat: '{#} Q'
| |
− | },
| |
− | GGP: {
| |
− | name: 'Guernsey Pound (GGP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | GNF: {
| |
− | name: 'Guinea Franc (GNF)',
| |
− | symbolFormat: 'GNF {#}'
| |
− | },
| |
− | GYD: {
| |
− | name: 'Guyana Dollar (GYD)',
| |
− | symbolFormat: 'GY${#}'
| |
− | },
| |
− | HTG: {
| |
− | name: 'Haiti Gourde (HTG)',
| |
− | symbolFormat: 'HTG {#}'
| |
− | },
| |
− | HNL: {
| |
− | name: 'Honduras Lempira (HNL)',
| |
− | symbolFormat: 'HNL {#}'
| |
− | },
| |
− | HKD: {
| |
− | name: 'Hong Kong Dollar (HKD)',
| |
− | symbolFormat: 'HK${#}'
| |
− | },
| |
− | HUF: {
| |
− | name: 'Hungarian Forint (HUF)',
| |
− | symbolFormat: '{#} Ft'
| |
− | },
| |
− | ISK: {
| |
− | name: 'Iceland Krona (ISK)',
| |
− | symbolFormat: '{#} kr'
| |
− | },
| |
− | INR: {
| |
− | name: 'Indian Rupee (INR)',
| |
− | symbolFormat: '₹{#}'
| |
− | },
| |
− | IDR: {
| |
− | name: 'Indonesian Rupiah (IDR)',
| |
− | symbolFormat: 'Rp {#}'
| |
− | },
| |
− | IRR: {
| |
− | name: 'Iran Rial (IRR)',
| |
− | symbolFormat: 'IRR {#}'
| |
− | },
| |
− | IQD: {
| |
− | name: 'Iraqi Dinar (IQD)',
| |
− | symbolFormat: 'IQD {#}'
| |
− | },
| |
− | IMP: {
| |
− | name: 'Isle of Man Pound (IMP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | ILS: {
| |
− | name: 'Israeli Shekel (ILS)',
| |
− | symbolFormat: '₪{#}'
| |
− | },
| |
− | JMD: {
| |
− | name: 'Jamaican Dollar (JMD)',
| |
− | symbolFormat: 'JA${#}'
| |
− | },
| |
− | JPY: {
| |
− | name: 'Japanese Yen (JPY)',
| |
− | symbolFormat: '¥{#}'
| |
− | },
| |
− | JEP: {
| |
− | name: 'Jersey Pound (JEP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | JOD: {
| |
− | name: 'Jordanian Dinar (JOD)',
| |
− | symbolFormat: 'JOD {#}'
| |
− | },
| |
− | KZT: {
| |
− | name: 'Kazakhstan Tenge (KZT)',
| |
− | symbolFormat: '₸{#}'
| |
− | },
| |
− | KES: {
| |
− | name: 'Kenyan Shilling (KES)',
| |
− | symbolFormat: 'KSh {#}'
| |
− | },
| |
− | KRW: {
| |
− | name: 'Korean Won (KRW)',
| |
− | symbolFormat: '₩{#}'
| |
− | },
| |
− | KWD: {
| |
− | name: 'Kuwaiti Dinar (KWD)',
| |
− | symbolFormat: '{#} KD'
| |
− | },
| |
− | KGS: {
| |
− | name: 'Kyrgyzstan Som (KGS)',
| |
− | symbolFormat: 'KGS {#}'
| |
− | },
| |
− | LAK: {
| |
− | name: 'Lao Kip (LAK)',
| |
− | symbolFormat: '₭{#}'
| |
− | },
| |
− | LBP: {
| |
− | name: 'Lebanese Pound (LBP)',
| |
− | symbolFormat: 'LBP {#}'
| |
− | },
| |
− | LSL: {
| |
− | name: 'Lesotho Loti (LSL)',
| |
− | symbolFormat: 'LSL {#}'
| |
− | },
| |
− | LRD: {
| |
− | name: 'Liberian Dollar (LRD)',
| |
− | symbolFormat: 'L${#}'
| |
− | },
| |
− | LYD: {
| |
− | name: 'Libyan Dinar (LYD)',
| |
− | symbolFormat: '{#} LD'
| |
− | },
| |
− | MOP: {
| |
− | name: 'Macau Pataca (MOP)',
| |
− | symbolFormat: 'MOP${#}'
| |
− | },
| |
− | MKD: {
| |
− | name: 'Macedonian Denar (MKD)',
| |
− | symbolFormat: 'MKD {#}'
| |
− | },
| |
− | MGF: {
| |
− | name: 'Malagasy Franc (MGF)',
| |
− | symbolFormat: 'MGF {#}'
| |
− | },
| |
− | MWK: {
| |
− | name: 'Malawi Kwacha (MWK)',
| |
− | symbolFormat: 'MK {#}'
| |
− | },
| |
− | MYR: {
| |
− | name: 'Malaysian Ringgit (MYR)',
| |
− | symbolFormat: 'RM {#}'
| |
− | },
| |
− | MVR: {
| |
− | name: 'Maldives Rufiyaa (MVR)',
| |
− | symbolFormat: 'MVR {#}'
| |
− | },
| |
− | MRO: {
| |
− | name: 'Mauritania Ougulya (MRO)',
| |
− | symbolFormat: 'MRO {#}'
| |
− | },
| |
− | MUR: {
| |
− | name: 'Mauritius Rupee (MUR)',
| |
− | symbolFormat: 'Rs {#}'
| |
− | },
| |
− | MXN: {
| |
− | name: 'Mexican Peso (MXN)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | MDL: {
| |
− | name: 'Moldovan Leu (MDL)',
| |
− | symbolFormat: 'MDL {#}'
| |
− | },
| |
− | MNT: {
| |
− | name: 'Mongolian Tugrik (MNT)',
| |
− | symbolFormat: 'MNT {#}'
| |
− | },
| |
− | MAD: {
| |
− | name: 'Moroccan Dirham (MAD)',
| |
− | symbolFormat: 'MAD {#}'
| |
− | },
| |
− | MZM: {
| |
− | name: 'Mozambique Metical (MZM)',
| |
− | symbolFormat: 'MZM {#}'
| |
− | },
| |
− | MMK: {
| |
− | name: 'Myanmar Kyat (MMK)',
| |
− | symbolFormat: 'K{#}'
| |
− | },
| |
− | NAD: {
| |
− | name: 'Namibian Dollar (NAD)',
| |
− | symbolFormat: 'N${#}'
| |
− | },
| |
− | NPR: {
| |
− | name: 'Nepalese Rupee (NPR)',
| |
− | symbolFormat: 'रू{#}'
| |
− | },
| |
− | ANG: {
| |
− | name: 'Neth Antilles Guilder (ANG)',
| |
− | symbolFormat: 'ƒ{#}'
| |
− | },
| |
− | NZD: {
| |
− | name: 'New Zealand Dollar (NZD)',
| |
− | symbolFormat: 'NZ${#}'
| |
− | },
| |
− | NIO: {
| |
− | name: 'Nicaragua Cordoba (NIO)',
| |
− | symbolFormat: 'C${#}'
| |
− | },
| |
− | NGN: {
| |
− | name: 'Nigerian Naira (NGN)',
| |
− | symbolFormat: '₦{#}'
| |
− | },
| |
− | KPW: {
| |
− | name: 'North Korean Won (KPW)',
| |
− | symbolFormat: '₩{#}'
| |
− | },
| |
− | NOK: {
| |
− | name: 'Norwegian Krone (NOK)',
| |
− | symbolFormat: '{#} kr'
| |
− | },
| |
− | OMR: {
| |
− | name: 'Omani Rial (OMR)',
| |
− | symbolFormat: 'OMR {#}'
| |
− | },
| |
− | XPF: {
| |
− | name: 'Pacific Franc (XPF)',
| |
− | symbolFormat: '₣{#}'
| |
− | },
| |
− | PKR: {
| |
− | name: 'Pakistani Rupee (PKR)',
| |
− | symbolFormat: 'Rs {#}'
| |
− | },
| |
− | XPD: {
| |
− | name: 'Palladium Ounces (XPD)',
| |
− | symbolFormat: 'XPD {#}'
| |
− | },
| |
− | PAB: {
| |
− | name: 'Panama Balboa (PAB)',
| |
− | symbolFormat: 'B/. {#}'
| |
− | },
| |
− | PGK: {
| |
− | name: 'Papua New Guinea Kina (PGK)',
| |
− | symbolFormat: 'K {#}'
| |
− | },
| |
− | PYG: {
| |
− | name: 'Paraguayan Guarani (PYG)',
| |
− | symbolFormat: '₲{#}'
| |
− | },
| |
− | PEN: {
| |
− | name: 'Peruvian Nuevo Sol (PEN)',
| |
− | symbolFormat: 'S/{#}'
| |
− | },
| |
− | PHP: {
| |
− | name: 'Philippine Peso (PHP)',
| |
− | symbolFormat: '₱{#}'
| |
− | },
| |
− | XPT: {
| |
− | name: 'Platinum Ounces (XPT)',
| |
− | symbolFormat: 'XPT {#}'
| |
− | },
| |
− | PLN: {
| |
− | name: 'Polish Zloty (PLN)',
| |
− | symbolFormat: '{#}zł'
| |
− | },
| |
− | QAR: {
| |
− | name: 'Qatar Rial (QAR)',
| |
− | symbolFormat: 'QAR {#}'
| |
− | },
| |
− | ROL: {
| |
− | name: 'Romanian Leu (ROL)',
| |
− | symbolFormat: 'RON {#}'
| |
− | },
| |
− | RUB: {
| |
− | name: 'Russian Rouble (RUB)',
| |
− | symbolFormat: '{#}₽'
| |
− | },
| |
− | RWF: {
| |
− | name: 'Rwanda Franc (RWF)',
| |
− | symbolFormat: 'FRw {#}'
| |
− | },
| |
− | WST: {
| |
− | name: 'Samoa Tala (WST)',
| |
− | symbolFormat: 'WS${#}'
| |
− | },
| |
− | STD: {
| |
− | name: 'Sao Tome Dobra (STN)',
| |
− | symbolFormat: 'STN {#}'
| |
− | },
| |
− | SAR: {
| |
− | name: 'Saudi Arabian Riyal (SAR)',
| |
− | symbolFormat: 'SAR {#}'
| |
− | },
| |
− | SCR: {
| |
− | name: 'Seychelles Rupee (SCR)',
| |
− | symbolFormat: 'SCR {#}'
| |
− | },
| |
− | SLL: {
| |
− | name: 'Sierra Leone Leone (SLL)',
| |
− | symbolFormat: 'SLL {#}'
| |
− | },
| |
− | XAG: {
| |
− | name: 'Silver Ounces (XAG)',
| |
− | symbolFormat: 'XAG {#}'
| |
− | },
| |
− | SGD: {
| |
− | name: 'Singapore Dollar (SGD)',
| |
− | symbolFormat: 'S${#}'
| |
− | },
| |
− | SBD: {
| |
− | name: 'Solomon Islands Dollar (SBD)',
| |
− | symbolFormat: 'SI${#}'
| |
− | },
| |
− | SOS: {
| |
− | name: 'Somali Shilling (SOS)',
| |
− | symbolFormat: 'SOS {#}'
| |
− | },
| |
− | ZAR: {
| |
− | name: 'South African Rand (ZAR)',
| |
− | symbolFormat: 'R{#}'
| |
− | },
| |
− | LKR: {
| |
− | name: 'Sri Lanka Rupee (LKR)',
| |
− | symbolFormat: 'Rs {#}'
| |
− | },
| |
− | SHP: {
| |
− | name: 'St Helena Pound (SHP)',
| |
− | symbolFormat: '£{#}'
| |
− | },
| |
− | SSP: {
| |
− | name: 'Sudanese Pound (SSP)',
| |
− | symbolFormat: 'SSP {#}'
| |
− | },
| |
− | SRD: {
| |
− | name: 'Surinam Dollar (SRD)',
| |
− | symbolFormat: 'Sr${#}'
| |
− | },
| |
− | SZL: {
| |
− | name: 'Swaziland Lilageni (SZL)',
| |
− | symbolFormat: 'E{#}'
| |
− | },
| |
− | SEK: {
| |
− | name: 'Swedish Krona (SEK)',
| |
− | symbolFormat: '{#} kr'
| |
− | },
| |
− | CHF: {
| |
− | name: 'Swiss Franc (CHF)',
| |
− | symbolFormat: '{#} Fr.'
| |
− | },
| |
− | SYP: {
| |
− | name: 'Syrian Pound (SYP)',
| |
− | symbolFormat: 'SYP {#}'
| |
− | },
| |
− | TWD: {
| |
− | name: 'Taiwan Dollar (TWD)',
| |
− | symbolFormat: 'NT${#}'
| |
− | },
| |
− | TZS: {
| |
− | name: 'Tanzanian Shilling (TZS)',
| |
− | symbolFormat: 'TZS {#}'
| |
− | },
| |
− | THB: {
| |
− | name: 'Thai Baht (THB)',
| |
− | symbolFormat: '฿{#}'
| |
− | },
| |
− | TOP: {
| |
− | name: "Tonga Pa'anga (TOP)",
| |
− | symbolFormat: 'T${#}'
| |
− | },
| |
− | TTD: {
| |
− | name: 'Trinidad&Tobago Dollar (TTD)',
| |
− | symbolFormat: 'TT${#}'
| |
− | },
| |
− | TND: {
| |
− | name: 'Tunisian Dinar (TND)',
| |
− | symbolFormat: 'TND {#}'
| |
− | },
| |
− | TRL: {
| |
− | name: 'Turkish Lira (TRL)',
| |
− | symbolFormat: '₺{#}'
| |
− | },
| |
− | TMM: {
| |
− | name: 'Turkmen Manat (TMM)',
| |
− | symbolFormat: 'TMM {#}'
| |
− | },
| |
− | USD: {
| |
− | name: 'U.S. Dollar (USD)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | AED: {
| |
− | name: 'UAE Dirham (AED)',
| |
− | symbolFormat: 'AED {#}'
| |
− | },
| |
− | UGX: {
| |
− | name: 'Ugandan Shilling (UGX)',
| |
− | symbolFormat: 'USh {#}'
| |
− | },
| |
− | UAH: {
| |
− | name: 'Ukraine Hryvnia (UAH)',
| |
− | symbolFormat: '₴{#}'
| |
− | },
| |
− | UYU: {
| |
− | name: 'Uruguayan New Peso (UYU)',
| |
− | symbolFormat: '${#}'
| |
− | },
| |
− | UZS: {
| |
− | name: 'Uzbekistani Sum (UZS)',
| |
− | symbolFormat: '{#} soʻm'
| |
− | },
| |
− | VUV: {
| |
− | name: 'Vanuatu Vatu (VUV)',
| |
− | symbolFormat: '{#}VT'
| |
− | },
| |
− | VEB: {
| |
− | name: 'Venezuelan Bolivar (VEB)',
| |
− | symbolFormat: '{#} Bs.'
| |
− | },
| |
− | VND: {
| |
− | name: 'Vietnam Dong (VND)',
| |
− | symbolFormat: '{#}₫'
| |
− | },
| |
− | YER: {
| |
− | name: 'Yemen Riyal (YER)',
| |
− | symbolFormat: 'YER {#}'
| |
− | },
| |
− | YUM: {
| |
− | name: 'Yugoslav Dinar (YUM)',
| |
− | symbolFormat: 'YUM {#}'
| |
− | },
| |
− | ZRN: {
| |
− | name: 'Zaire New Zaire (ZRN)',
| |
− | symbolFormat: 'ZRN {#}'
| |
− | },
| |
− | ZMK: {
| |
− | name: 'Zambian Kwacha (ZMK)',
| |
− | symbolFormat: 'ZMK {#}'
| |
− | },
| |
− | ZWD: {
| |
− | name: 'Zimbabwe Dollar (ZWD)',
| |
− | symbolFormat: 'Z${#}'
| |
− | }
| |
− | };
| |
| | | |
| + | </style> |
| | | |
− | var options = []
| + | <span class="ci_form_section_help"> |
− | for(var i in currency_country_map) { options.push({data: i,label: i}) }
| + | If "as soon as possible" is checked please enter the final date of validity of the opportunity as “deadline”. |
| + | </span> |
| | | |
− | var announcement_funding_currency = new OO.ui.DropdownInputWidget( {
| + | </div> |
− | options: options,
| |
− | value: '',
| |
− | classes: ['announcement_funding_currency']
| |
− | } )
| |
| | | |
− | var currency_default = ''
| |
| | | |
− | var announcement_funding_type = new OO.ui.ButtonGroupWidget( {
| + | <!--------------------------SUBMIT--------------------------> |
− | items: [
| |
− | new OO.ui.ButtonWidget( {
| |
− | label: 'Exact amount (e.g. 1000' + currency_default + ')'
| |
− | } ),
| |
− | new OO.ui.ButtonWidget( {
| |
− | label: 'Range (e.g. 1000-2000' + currency_default + ')'
| |
− | } ),
| |
− | new OO.ui.ButtonWidget( {
| |
− | label: 'Description'
| |
− | } )
| |
− | ]
| |
− | } )
| |
| | | |
− | var announcement_funding_exact = new OO.ui.NumberInputWidget( {
| + | <div class="ci_form_section_submit"> |
− | showButtons: false
| + | <input type="hidden" name="wpSave" value="Save page"> |
− | } )
| + | <input type="hidden" name="pf_free_text" value="!free_text!"> |
| | | |
− | var announcement_funding_range_min = new OO.ui.NumberInputWidget( {
| + | <input class="ci_form_submit" type="submit" value="save"> |
− | showButtons: false
| + | </div> |
− | } )
| |
| | | |
− | var announcement_funding_range_max = new OO.ui.NumberInputWidget( {
| |
− | showButtons: false
| |
− | } )
| |
| | | |
− | var announcement_funding_description = new OO.ui.MultilineTextInputWidget( {
| + | </div> |
− | autosize: true,
| + | </form> |
− | value: ''
| + | </div> |
− | } )
| |
| | | |
− | var announcement_requisites = new OO.ui.MultilineTextInputWidget( {
| + | <script> |
− | autosize: true,
| |
− | value: ''
| |
− | } )
| |
| | | |
− | /*
| |
− | var announcement_deadline = new mw.widgets.DateInputWidget( {
| |
− | autosize: true,
| |
− | value: ''
| |
− | })
| |
− | */
| |
− | var announcement_deadline = new OO.ui.TextInputWidget( {
| |
− | autosize: true,
| |
− | value: ''
| |
− | })
| |
| | | |
− | var announcement_url = new OO.ui.TextInputWidget( {
| |
− | value: ''
| |
− | })
| |
| | | |
| | | |
− | var submit = new OO.ui.ButtonInputWidget( { | + | var country_groups = { |
− | label: 'save',
| + | 'eu_countries': ['Austria','Belgium','Bulgaria','Croatia','Cyprus','Czech Republic','Denmark','Estonia','Finland','France','Germany','Greece','Hungary','Ireland','Italy','Latvia','Lithuania','Luxembourg','Malta','Netherlands','Poland','Portugal','Romania','Slovakia','Slovenia','Spain','Sweden'], |
− | flags: [
| + | 'efta_countries': ['Iceland','Switzerland','Liechtenstein','Norway'], |
− | 'primary',
| + | 'other_eu_countries': [ |
− | 'progressive'
| + | 'Andorra','Monaco','Armenia','Norway','Azerbaijan','Russia','Belarus','San Marino','Georgia','Switzerland','Iceland','Ukraine','Liechtenstein','United Kingdom','Moldova','Vatican City'], |
− | ]
| + | 'EU_candidate_countries': ['Albania','Serbia','Montenegro','Turkey','North Macedonia'], |
− | } )
| + | 'EU_potential_candidate': ['Bosnia and Herzegovina','Kosovo'], |
| + | 'Schengen_area_countries': ['Austria','Belgium','Czech Republic','Denmark','Estonia','Finland','France','Germany','Greece','Hungary','Iceland','Italy','Latvia','Liechtenstein','Lithuania','Luxembourg','Malta','Netherlands','Norway','Poland','Portugal','Slovakia','Slovenia','Spain','Sweden','Switzerland'], |
| + | 'ACP_countries': ['Angola','Antigua and Barbuda',' Bahamas',' Barbados','Belize','Benin','Botswana','Burkina faso','Burundi','Cape verde','Cameroun','Comoros','Congo','Cook islands','Ivory coast','Djibouti','Dominica','Eritrea','Ethiopia','Fiji','Gabon','Gambia','Ghana', |
| + | 'Grenada','Guinea','Guinea ecuatorial','Guiné-bissau','Guyana','Haiti','Jamaica','Kenya','Kiribati','Lesotho','Liberia','Madagascar','Malawi','Mali','Marshall Islands','Mauritania','Mauritius','Micronesia','Mozambique','Namibia','Nauru','Niger','Nigeria','Niue','Palau','Papua new guinea','Dominican republic','Central african republic','Democratic Republic of Congo','Rwanda','St kitts and Nevis','St lucia','St Vincent Grenadines','Samoa','Sã0 tomé e príncipe','Senegal','Seychelles','Sierra Leone','Solomon Island','Somalia','South Africa','Sudan','Suriname','Swaziland','Tanzania','Chad','Togo','Tonga','Trinidad and Tobago','Tuvalu','Uganda','Vanuatu','Zambia','Zimbabwe'], |
| + | 'OCTA_countries': ['Aruba','Bonaire','Curaçao','French Polynesia','French Southern and Antarctic Lands','Greenland','New Caledonia','Saba','Saint Barthélemy','Sint Eustatius','Saint Pierre and Miquelon','Sint Maarten','Wallis and Futuna'] |
| + | }; |
| | | |
− | // Create a FieldsetLayout.
| |
− | fieldset = new OO.ui.FieldsetLayout( {
| |
− | label: 'Create announcement',
| |
− | classes: [ 'container' ]
| |
− | } );
| |
− |
| |
− | // Use the addItems() method to add FieldLayouts that contain the form
| |
− | // elements (the text inputs and submit button) to the FieldsetLayout:
| |
− | fieldset.addItems( [
| |
− | new OO.ui.FieldLayout( announcement_type, {
| |
− | label: 'Type',
| |
− | align: 'top'
| |
− | } ),
| |
− | new OO.ui.FieldLayout( announcement_title, {
| |
− | label: 'Title',
| |
− | align: 'top' ,
| |
− | help: 'The title of the announcement for publishing',
| |
− | helpInline: true
| |
− | } ),
| |
− | new OO.ui.FieldLayout( announcement_provider, {
| |
− | label: 'Provider',
| |
− | align: 'top',
| |
− | help: 'Who is providing and funding this opportunity?',
| |
− | helpInline: true
| |
− | } ),
| |
− | new OO.ui.FieldLayout( announcement_description, {
| |
− | label: 'Description',
| |
− | align: 'top'
| |
− | } ),
| |
− | new OO.ui.FieldLayout( announcement_target_country, {
| |
− | label: 'Target country',
| |
− | align: 'top'
| |
− | } ),
| |
| | | |
− | new OO.ui.FieldLayout( announcement_funding_type, {
| |
− | label: 'Funding',
| |
− | align: 'top',
| |
− | help: 'Please enter the most appropriate kind of amount, which refers to the entire opportunity.',
| |
− | helpInline: true
| |
− | } ),
| |
| | | |
| + | $ci(function() { |
| | | |
− | new OO.ui.FieldLayout( new OO.ui.Widget( { | + | $ci('.checkbox-custom').on('click', function() { |
− | content: [
| + | return; |
− | new OO.ui.HorizontalLayout( {
| + | var ref_input = $ci('#' + $ci(this).attr('data')); |
− | items: [announcement_funding_range_min,announcement_funding_range_max,announcement_funding_currency]
| + | ref_input.val(ref_input.val() == 'false'? 'true': 'false') |
− | })
| + | }); |
− | ]
| |
− | }), { | |
− | label: 'Funding amount and currency',
| |
− | align: 'top'
| |
− | } ), | |
| | | |
− | new OO.ui.FieldLayout( announcement_requisites, { | + | $ci('.target_country_group_button').on('click', function() { |
− | label: 'Requisites',
| + | return; |
− | align: 'top'
| + | var selected =!$ci(this).hasClass('selected') |
− | } ),
| + | var key = $ci(this).attr('data'), |
− | new OO.ui.FieldLayout( announcement_url, {
| + | country; |
− | label: 'Requisites',
| |
− | align: 'top',
| |
− | help: 'Please enter the official url of this opportunity.', | |
− | helpInline: true | |
− | } ),
| |
− | new OO.ui.FieldLayout( announcement_deadline, {
| |
− | label: 'Requisites',
| |
− | align: 'top'
| |
− | } ),
| |
| | | |
| + | for(var i in country_groups[key]) { |
| + | country = country_groups[key][i] |
| | | |
− | new OO.ui.FieldLayout( submit )
| + | $ci('#select_countries option:contains(' + country + ')').prop('selected', selected); |
− | ] );
| + | //$('#select_countries option[value=' + country + ']').attr('selected', selected); |
| + | } |
| + | $ci(this).removeClass('unselected selected').addClass(selected? 'selected': 'unselected'); |
| | | |
| + | setTimeout(function() { |
| + | $ci('#select_countries').multiselect('reload'); |
| + | },100) |
| + | }); |
| | | |
| + | $ci('select[multiple]').multiselect({selectGroup: true, search: true, |
| | | |
| + | onOptionClick: function(el,option) { |
| | | |
| | | |
− |
| + | }, |
− | // Add the FieldsetLayout to a FormLayout. | + | |
− | var form = new OO.ui.FormLayout( {
| + | onSelectAll: function(el, selected ){ |
− | items: [ fieldset ],
| + | // console.log(el,selected) |
− | action: '',
| + | }, |
− | method: 'post'
| + | onPlaceholder: function(el, placeholder, selectedOpts ){ |
− | } ); | + | // console.log(el,placeholder,selectedOpts) |
| + | } |
| | | |
− | $('#form_container' ).append( form.$element );
| + | }); |
− | | |
− | }
| |
| | | |
| | | |
− | $( function () { | + | //$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); |
| | | |
− |
| + | $ci('.ci_form textarea').autosize(); |
| | | |
− | setup_()
| + | }); |
| | | |
− | } );
| |
| | | |
| | | |
| </script> | | </script> |
| | | |
− | <style>
| |
− | .announcement_funding_currency {
| |
− | width: auto;
| |
− | }
| |
− | </style>
| |
| | | |
| </html> | | </html> |