diff --git a/frontend/scientific-events.info/pages/add.html b/frontend/scientific-events.info/pages/add.html new file mode 100644 index 0000000..48fa431 --- /dev/null +++ b/frontend/scientific-events.info/pages/add.html @@ -0,0 +1,119 @@ +{% extends "base.html" %} + +{% block extrajs %} + + +{% endblock %} + +{% block extracss %} + + +{% endblock %} + +{% block body %} +
+

Enter conference data

+
+
+ Basic information about conference +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+
+ Conference topics +
+ + +
+
+
+ Important dates +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ Invited speakers +
+ + + + Please put one talk per line, and follow “Speaker Name: talk title” format if possible. + +
+
+ +
+
+{% endblock %} diff --git a/frontend/scientific-events.info/static/css/select2-bootstrap4.min.css b/frontend/scientific-events.info/static/css/select2-bootstrap4.min.css new file mode 100644 index 0000000..3a9af18 --- /dev/null +++ b/frontend/scientific-events.info/static/css/select2-bootstrap4.min.css @@ -0,0 +1 @@ +.select2-container--bootstrap4 .select2-selection--single{height:calc(2.25rem + 2px)!important}.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder{color:#757575;line-height:2.25rem}.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow{position:absolute;top:50%;right:3px;width:20px}.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b{top:60%;border-color:#343a40 transparent transparent;border-style:solid;border-width:5px 4px 0;width:0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute}.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered{line-height:2.25rem}.select2-search--dropdown .select2-search__field{border:1px solid #ced4da;border-radius:.25rem}.select2-results__message{color:#6c757d}.select2-container--bootstrap4 .select2-selection--multiple{min-height:calc(2.25rem + 2px)!important}.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice{color:#343a40;border:1px solid #bdc6d0;border-radius:.2rem;padding:0;padding-right:5px;cursor:pointer;float:left;margin-top:.3em;margin-right:5px}.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove{color:#bdc6d0;font-weight:700;margin-left:3px;margin-right:1px;padding-right:3px;padding-left:3px;float:left}.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover{color:#343a40}.select2-container :focus{outline:0}.select2-container--bootstrap4 .select2-selection{border:1px solid #ced4da;border-radius:.25rem;width:100%}.select2-container--bootstrap4.select2-container--focus .select2-selection{border-color:#17a2b8;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.select2-container--bootstrap4.select2-container--focus.select2-container--open .select2-selection{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}select.is-invalid~.select2-container--bootstrap4 .select2-selection{border-color:#dc3545}select.is-valid~.select2-container--bootstrap4 .select2-selection{border-color:#28a745}.select2-container--bootstrap4 .select2-dropdown{border-color:#ced4da;border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected=true]{background-color:#e9ecef}.select2-container--bootstrap4 .select2-results__option--highlighted,.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true]{background-color:#007bff;color:#f8f9fa}.select2-container--bootstrap4 .select2-results__option[role=group]{padding:0}.select2-container--bootstrap4 .select2-results__group{padding:6px;display:list-item;color:#6c757d}.select2-container--bootstrap4 .select2-selection__clear{width:1.2em;height:1.2em;line-height:1.15em;padding-left:.3em;margin-top:.5em;border-radius:100%;background-color:#6c757d;color:#f8f9fa;float:right;margin-right:.3em}.select2-container--bootstrap4 .select2-selection__clear:hover{background-color:#343a40} \ No newline at end of file diff --git a/frontend/scientific-events.info/static/data/countries.json b/frontend/scientific-events.info/static/data/countries.json new file mode 100644 index 0000000..4dcd96e --- /dev/null +++ b/frontend/scientific-events.info/static/data/countries.json @@ -0,0 +1,249 @@ +{ + "results": [ + {"text": "Afghanistan", "id": "AF"}, + {"text": "Åland Islands", "id": "AX"}, + {"text": "Albania", "id": "AL"}, + {"text": "Algeria", "id": "DZ"}, + {"text": "American Samoa", "id": "AS"}, + {"text": "Andorra", "id": "AD"}, + {"text": "Angola", "id": "AO"}, + {"text": "Anguilla", "id": "AI"}, + {"text": "Antarctica", "id": "AQ"}, + {"text": "Antigua and Barbuda", "id": "AG"}, + {"text": "Argentina", "id": "AR"}, + {"text": "Armenia", "id": "AM"}, + {"text": "Aruba", "id": "AW"}, + {"text": "Australia", "id": "AU"}, + {"text": "Austria", "id": "AT"}, + {"text": "Azerbaijan", "id": "AZ"}, + {"text": "Bahamas", "id": "BS"}, + {"text": "Bahrain", "id": "BH"}, + {"text": "Bangladesh", "id": "BD"}, + {"text": "Barbados", "id": "BB"}, + {"text": "Belarus", "id": "BY"}, + {"text": "Belgium", "id": "BE"}, + {"text": "Belize", "id": "BZ"}, + {"text": "Benin", "id": "BJ"}, + {"text": "Bermuda", "id": "BM"}, + {"text": "Bhutan", "id": "BT"}, + {"text": "Bolivia", "id": "BO"}, + {"text": "Bosnia and Herzegovina", "id": "BA"}, + {"text": "Botswana", "id": "BW"}, + {"text": "Bouvet Island", "id": "BV"}, + {"text": "Brazil", "id": "BR"}, + {"text": "British Indian Ocean Territory", "id": "IO"}, + {"text": "Brunei Darussalam", "id": "BN"}, + {"text": "Bulgaria", "id": "BG"}, + {"text": "Burkina Faso", "id": "BF"}, + {"text": "Burundi", "id": "BI"}, + {"text": "Cambodia", "id": "KH"}, + {"text": "Cameroon", "id": "CM"}, + {"text": "Canada", "id": "CA"}, + {"text": "Cape Verde", "id": "CV"}, + {"text": "Cayman Islands", "id": "KY"}, + {"text": "Central African Republic", "id": "CF"}, + {"text": "Chad", "id": "TD"}, + {"text": "Chile", "id": "CL"}, + {"text": "China", "id": "CN"}, + {"text": "Christmas Island", "id": "CX"}, + {"text": "Cocos (Keeling) Islands", "id": "CC"}, + {"text": "Colombia", "id": "CO"}, + {"text": "Comoros", "id": "KM"}, + {"text": "Congo", "id": "CG"}, + {"text": "Cook Islands", "id": "CK"}, + {"text": "Costa Rica", "id": "CR"}, + {"text": "Côte d’Ivoire", "id": "CI"}, + {"text": "Croatia", "id": "HR"}, + {"text": "Cuba", "id": "CU"}, + {"text": "Cyprus", "id": "CY"}, + {"text": "Czech Republic", "id": "CZ"}, + {"text": "Democratic People’s Republic of Korea", "id": "KP"}, + {"text": "Democratic Republic of the Congo", "id": "CD"}, + {"text": "Denmark", "id": "DK"}, + {"text": "Djibouti", "id": "DJ"}, + {"text": "Dominica", "id": "DM"}, + {"text": "Dominican Republic", "id": "DO"}, + {"text": "Ecuador", "id": "EC"}, + {"text": "Egypt", "id": "EG"}, + {"text": "El Salvador", "id": "SV"}, + {"text": "Equatorial Guinea", "id": "GQ"}, + {"text": "Eritrea", "id": "ER"}, + {"text": "Estonia", "id": "EE"}, + {"text": "Ethiopia", "id": "ET"}, + {"text": "Falkland Islands (Malvinas)", "id": "FK"}, + {"text": "Faroe Islands", "id": "FO"}, + {"text": "Federated States of Micronesia", "id": "FM"}, + {"text": "Fiji", "id": "FJ"}, + {"text": "Finland", "id": "FI"}, + {"text": "France", "id": "FR"}, + {"text": "French Guiana", "id": "GF"}, + {"text": "French Polynesia", "id": "PF"}, + {"text": "French Southern Territories", "id": "TF"}, + {"text": "Gabon", "id": "GA"}, + {"text": "Gambia", "id": "GM"}, + {"text": "Georgia", "id": "GE"}, + {"text": "Germany", "id": "DE"}, + {"text": "Ghana", "id": "GH"}, + {"text": "Gibraltar", "id": "GI"}, + {"text": "Greece", "id": "GR"}, + {"text": "Greenland", "id": "GL"}, + {"text": "Grenada", "id": "GD"}, + {"text": "Guadeloupe", "id": "GP"}, + {"text": "Guam", "id": "GU"}, + {"text": "Guatemala", "id": "GT"}, + {"text": "Guernsey", "id": "GG"}, + {"text": "Guinea", "id": "GN"}, + {"text": "Guinea-Bissau", "id": "GW"}, + {"text": "Guyana", "id": "GY"}, + {"text": "Haiti", "id": "HT"}, + {"text": "Heard Island and Mcdonald Islands", "id": "HM"}, + {"text": "Holy See (Vatican City State)", "id": "VA"}, + {"text": "Honduras", "id": "HN"}, + {"text": "Hong Kong", "id": "HK"}, + {"text": "Hungary", "id": "HU"}, + {"text": "Iceland", "id": "IS"}, + {"text": "India", "id": "IN"}, + {"text": "Indonesia", "id": "ID"}, + {"text": "Iraq", "id": "IQ"}, + {"text": "Ireland", "id": "IE"}, + {"text": "Islamic Republic of Iran", "id": "IR"}, + {"text": "Isle of Man", "id": "IM"}, + {"text": "Israel", "id": "IL"}, + {"text": "Italy", "id": "IT"}, + {"text": "Jamaica", "id": "JM"}, + {"text": "Japan", "id": "JP"}, + {"text": "Jersey", "id": "JE"}, + {"text": "Jordan", "id": "JO"}, + {"text": "Kazakhstan", "id": "KZ"}, + {"text": "Kenya", "id": "KE"}, + {"text": "Kiribati", "id": "KI"}, + {"text": "Kosovo", "id": "XK"}, + {"text": "Kuwait", "id": "KW"}, + {"text": "Kyrgyzstan", "id": "KG"}, + {"text": "Lao People’s Democratic Republic", "id": "LA"}, + {"text": "Latvia", "id": "LV"}, + {"text": "Lebanon", "id": "LB"}, + {"text": "Lesotho", "id": "LS"}, + {"text": "Liberia", "id": "LR"}, + {"text": "Libyan Arab Jamahiriya", "id": "LY"}, + {"text": "Liechtenstein", "id": "LI"}, + {"text": "Lithuania", "id": "LT"}, + {"text": "Luxembourg", "id": "LU"}, + {"text": "Macao", "id": "MO"}, + {"text": "Macedonia (North)", "id": "MK"}, + {"text": "Madagascar", "id": "MG"}, + {"text": "Malawi", "id": "MW"}, + {"text": "Malaysia", "id": "MY"}, + {"text": "Maldives", "id": "MV"}, + {"text": "Mali", "id": "ML"}, + {"text": "Malta", "id": "MT"}, + {"text": "Marshall Islands", "id": "MH"}, + {"text": "Martinique", "id": "MQ"}, + {"text": "Mauritania", "id": "MR"}, + {"text": "Mauritius", "id": "MU"}, + {"text": "Mayotte", "id": "YT"}, + {"text": "Mexico", "id": "MX"}, + {"text": "Moldova", "id": "MD"}, + {"text": "Monaco", "id": "MC"}, + {"text": "Mongolia", "id": "MN"}, + {"text": "Montenegro", "id": "ME"}, + {"text": "Montserrat", "id": "MS"}, + {"text": "Morocco", "id": "MA"}, + {"text": "Mozambique", "id": "MZ"}, + {"text": "Myanmar", "id": "MM"}, + {"text": "Namibia", "id": "NA"}, + {"text": "Nauru", "id": "NR"}, + {"text": "Nepal", "id": "NP"}, + {"text": "Netherlands", "id": "NL"}, + {"text": "Netherlands Antilles", "id": "AN"}, + {"text": "New Caledonia", "id": "NC"}, + {"text": "New Zealand", "id": "NZ"}, + {"text": "Nicaragua", "id": "NI"}, + {"text": "Niger", "id": "NE"}, + {"text": "Nigeria", "id": "NG"}, + {"text": "Niue", "id": "NU"}, + {"text": "Norfolk Island", "id": "NF"}, + {"text": "Northern Mariana Islands", "id": "MP"}, + {"text": "Norway", "id": "NO"}, + {"text": "Oman", "id": "OM"}, + {"text": "Pakistan", "id": "PK"}, + {"text": "Palau", "id": "PW"}, + {"text": "Palestinian Territory", "id": "PS"}, + {"text": "Panama", "id": "PA"}, + {"text": "Papua New Guinea", "id": "PG"}, + {"text": "Paraguay", "id": "PY"}, + {"text": "Peru", "id": "PE"}, + {"text": "Philippines", "id": "PH"}, + {"text": "Pitcairn", "id": "PN"}, + {"text": "Poland", "id": "PL"}, + {"text": "Portugal", "id": "PT"}, + {"text": "Puerto Rico", "id": "PR"}, + {"text": "Qatar", "id": "QA"}, + {"text": "Republic of Korea", "id": "KR"}, + {"text": "Reunion", "id": "RE"}, + {"text": "Romania", "id": "RO"}, + {"text": "Russian Federation", "id": "RU"}, + {"text": "Rwanda", "id": "RW"}, + {"text": "Saint Helena", "id": "SH"}, + {"text": "Saint Kitts and Nevis", "id": "KN"}, + {"text": "Saint Lucia", "id": "LC"}, + {"text": "Saint Pierre and Miquelon", "id": "PM"}, + {"text": "Saint Vincent and the Grenadines", "id": "VC"}, + {"text": "Samoa", "id": "WS"}, + {"text": "San Marino", "id": "SM"}, + {"text": "Sao Tome and Principe", "id": "ST"}, + {"text": "Saudi Arabia", "id": "SA"}, + {"text": "Senegal", "id": "SN"}, + {"text": "Serbia", "id": "RS"}, + {"text": "Seychelles", "id": "SC"}, + {"text": "Sierra Leone", "id": "SL"}, + {"text": "Singapore", "id": "SG"}, + {"text": "Slovakia", "id": "SK"}, + {"text": "Slovenia", "id": "SI"}, + {"text": "Solomon Islands", "id": "SB"}, + {"text": "Somalia", "id": "SO"}, + {"text": "South Africa", "id": "ZA"}, + {"text": "South Georgia and the South Sandwich Islands", "id": "GS"}, + {"text": "Spain", "id": "ES"}, + {"text": "Sri Lanka", "id": "LK"}, + {"text": "Sudan", "id": "SD"}, + {"text": "Suriname", "id": "SR"}, + {"text": "Svalbard and Jan Mayen", "id": "SJ"}, + {"text": "Swaziland", "id": "SZ"}, + {"text": "Sweden", "id": "SE"}, + {"text": "Switzerland", "id": "CH"}, + {"text": "Syrian Arab Republic", "id": "SY"}, + {"text": "Taiwan", "id": "TW"}, + {"text": "Tajikistan", "id": "TJ"}, + {"text": "Tanzania", "id": "TZ"}, + {"text": "Thailand", "id": "TH"}, + {"text": "Timor-Leste", "id": "TL"}, + {"text": "Togo", "id": "TG"}, + {"text": "Tokelau", "id": "TK"}, + {"text": "Tonga", "id": "TO"}, + {"text": "Trinidad and Tobago", "id": "TT"}, + {"text": "Tunisia", "id": "TN"}, + {"text": "Turkey", "id": "TR"}, + {"text": "Turkmenistan", "id": "TM"}, + {"text": "Turks and Caicos Islands", "id": "TC"}, + {"text": "Tuvalu", "id": "TV"}, + {"text": "Uganda", "id": "UG"}, + {"text": "Ukraine", "id": "UA"}, + {"text": "United Arab Emirates", "id": "AE"}, + {"text": "United Kingdom", "id": "GB"}, + {"text": "United States", "id": "US"}, + {"text": "United States Minor Outlying Islands", "id": "UM"}, + {"text": "Uruguay", "id": "UY"}, + {"text": "Uzbekistan", "id": "UZ"}, + {"text": "Vanuatu", "id": "VU"}, + {"text": "Venezuela", "id": "VE"}, + {"text": "Vietnam", "id": "VN"}, + {"text": "Virgin Islands, British", "id": "VG"}, + {"text": "Virgin Islands, U.S.", "id": "VI"}, + {"text": "Wallis and Futuna", "id": "WF"}, + {"text": "Western Sahara", "id": "EH"}, + {"text": "Yemen", "id": "YE"}, + {"text": "Zambia", "id": "ZM"}, + {"text": "Zimbabwe", "id": "ZW"} + ] +} diff --git a/frontend/scientific-events.info/templates/base.html b/frontend/scientific-events.info/templates/base.html index 5dd2d5b..44f0a76 100644 --- a/frontend/scientific-events.info/templates/base.html +++ b/frontend/scientific-events.info/templates/base.html @@ -33,6 +33,9 @@ + {% block extrajs %} + {% endblock %} + {% block extracss %} {% endblock %} @@ -85,7 +88,7 @@ © 2018 - + {% endblock footer %}