Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions frontend/scientific-events.info/pages/add.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{% extends "base.html" %}

{% block extrajs %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script>
"use strict";

$(function () {
$.getJSON("{% static '/static/data/countries.json' %}", function (data, textStatus) {
$("#country-select").select2({
data: data.results,
minimumInputLength: 2,
theme: "bootstrap4",
width: "100%", // responsive
});
});

$("#topics-select").select2({
placeholder: $("#topics-select").attr("placeholder"),
tags: true,
theme: "bootstrap4",
width: "100%",
});
});
</script>
{% endblock %}

{% block extracss %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css">
<link rel="stylesheet" href="{% static '/static/css/select2-bootstrap4.min.css' %}">
{% endblock %}

{% block body %}
<main class="container">
<h2>Enter conference data</h2>
<form>
<fieldset>
<legend>Basic information about conference</legend>
<div class="form-row">
<div class="form-group col-sm-8">
<label for="name-input">Full conference name</label>
<input class="form-control" id="name-input" placeholder="Abstract Base Conference 2018">
</div>
<div class="form-group col-sm-4">
<label for="shortname-input">Short name</label>
<input class="form-control" id="shortname-input" placeholder="ABC-2018">
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-4">
<label for="country-select">Country select</label>
<select class="form-control" id="country-select">
</select>
</div>
<div class="form-group col-sm-4">
<label for="city-input">City</label>
<input class="form-control" id="city-input" placeholder="Newcastle">
</div>
<div class="form-group col-sm-4">
<label for="location-input">Location</label>
<input class="form-control" id="location-input" placeholder="Jesmond Road West, Philip Robinson Library">
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-4">
<label for="startdate-input">Start date</label>
<input type="date" class="form-control" id="startdate-input">
</div>
<div class="form-group col-sm-4">
<label for="enddate-input">End date</label>
<input type="date" class="form-control" id="enddate-input">
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-8">
<label for="url-input">URL</label>
<input type="url" class="form-control" id="url-input" placeholder="https://example.com/abc/2018">
</div>
</div>
</fieldset>
<fieldset>
<legend>Conference topics</legend>
<div class="form-group">
<!-- <label for="topics-select">Enter conference topics</label> -->
<select multiple class="form-control" id="topics-select" placeholder="Separate topics using Return key">
</select>
</div>
</fieldset>
<fieldset>
<legend>Important dates</legend>
<div class="form-row">
<div class="form-group col-sm-4">
<label for="paper-deadline-input">Paper submission deadline</label>
<input type="date" class="form-control" id="paper-deadline-input">
</div>
<div class="form-group col-sm-4">
<label for="acceptance-notification-input">Acceptance notification</label>
<input type="date" class="form-control" id="acceptance-notification-input">
</div>
<div class="form-group col-sm-4">
<label for="registration-input">Registration opens</label>
<input type="date" class="form-control" id="registration-input">
</div>
</div>
</fieldset>
<fieldset>
<legend>Invited speakers</legend>
<div class="form-group">
<!-- <label for="invited-speakers-textarea">Notable invited speakers</label> -->
<textarea class="form-control" id="invited-speakers-textarea" rows="3" aria-describedby="invited-speakers-help"></textarea>
<span id="invited-speakers-help" class="form-text text-muted">
Please put one talk per line, and follow “Speaker Name: talk title” format if possible.
</span>
</div>
</fieldset>
<button type="submit" class="btn btn-primary">Proceed adding the conference</button>
</form>
</main>
{% endblock %}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

249 changes: 249 additions & 0 deletions frontend/scientific-events.info/static/data/countries.json
Original file line number Diff line number Diff line change
@@ -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"}
]
}
5 changes: 4 additions & 1 deletion frontend/scientific-events.info/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<script src="{% static '/static/js/vendor/modernizr-2.6.2.js' %}"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.7.16.min.js"></script>

{% block extrajs %}
{% endblock %}

{% block extracss %}
{% endblock %}
</head>
Expand Down Expand Up @@ -85,7 +88,7 @@
<span class="text-muted text-right">
&copy;&nbsp;2018
</span>
</div>
</nav>

{% endblock footer %}

Expand Down