Change layout of contest list

This commit is contained in:
cuom1999 2024-05-05 22:47:57 -05:00
parent fae8422508
commit 4549d57ee1
9 changed files with 414 additions and 434 deletions

View file

@ -86,10 +86,8 @@
}
$category.select2().css({'visibility': 'visible'}).change(clean_submit);
$('#types').select2({multiple: 1, placeholder: '{{ _('Filter by type...') }}'})
.css({'visibility': 'visible'});
$('#search-org').select2({multiple: 1, placeholder: '{{ _('Groups') }}...'})
.css({'visibility': 'visible'});
$('#types').select2({multiple: 1, placeholder: '{{ _('Filter by type...') }}'});
$('#search-org').select2({multiple: 1, placeholder: '{{ _('Groups') }}...'});
$('#search-author').select2({
multiple: 1,
placeholder: '{{ _('Authors') }}...',
@ -98,8 +96,7 @@
delay: 250,
cache: true,
}
})
.css({'visibility': 'visible'});
});
// This is incredibly nasty to do but it's needed because otherwise the select2 steals the focus
$search.keypress(function (e) {
@ -157,8 +154,7 @@
$(".edit-btn").on('click', function() {
var pid = $(this).attr('pid');
$('#volunteer-types-' + pid).css({'width': '100%'});
$('#volunteer-types-' + pid).select2({multiple: 1, placeholder: '{{ _('Add types...') }}'})
.css({'visibility': 'visible'});
$('#volunteer-types-' + pid).select2({multiple: 1, placeholder: '{{ _('Add types...') }}'});
$('#form-' + pid).show();
$('#submit-' + pid).show();

View file

@ -47,7 +47,7 @@
</div>
{% endif %}
<div class="filter-form-group">
<label class="bold-text margin-label" for="type"><i class="non-italics">{{ _('Author') }}</i></label>
<label class="bold-text margin-label" for="search-author"><i class="non-italics">{{ _('Author') }}</i></label>
<select id="search-author" name="authors" multiple>
{% for author in author_query %}
<option value="{{ author.id }}" selected>