Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dynamic forms): Ajax/JS/Jquery UI to greatly improve UX #51

Merged
merged 16 commits into from
Sep 30, 2023
Merged
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
38 changes: 38 additions & 0 deletions concert_elephant/static/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,41 @@ thead.table-custom {
.link-custom:hover {
color: #93B1A6;
}

.alert {
text-align: center;
}

/* Custom styles for jQuery UI Autocomplete */
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000; /* Ensure the dropdown is above other content */
border: 1px solid #ccc;
background-color: #F8F8FF;
width: auto; /* Match the width of the input field */
}

.ui-menu-item {
padding: 8px 12px;
cursor: pointer;
}

.ui-menu-item:hover {
background-color: #93B1A6;
}

.ui-helper-hidden-accessible{
display:none;
}

.modal-messages {
width: 75%;
margin: 0 auto;
padding: 5px;
}

.country-select-flag {
display: none;
}
12 changes: 10 additions & 2 deletions concert_elephant/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<!-- Your stuff: Third-party CSS libraries go here -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/select2-bootstrap-5-theme.css" />
<!-- This file stores project-specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet" />
{% endblock css %}
Expand All @@ -42,6 +40,9 @@
<script src="https://code.jquery.com/jquery-3.7.0.js"
integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"
integrity="sha256-xLD7nhI62fcsEZK2/v8LsBcb4lG7dgULkuXoXB/j91c="
crossorigin="anonymous"></script>
<!-- Your stuff: Third-party javascript libraries go here -->
<!-- place project specific Javascript in this file -->
<script defer src="{% static 'js/project.js' %}"></script>
Expand Down Expand Up @@ -78,6 +79,13 @@
});
</script>
{% endcomment %}
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
$('.alert-dismissible').fadeOut('slow');
}, 2000);
});
</script>
{% endblock inline_javascript %}
</body>
</html>
Loading