add icon unicode hex for eventlocations in bootstrap script

This commit is contained in:
Thomas Steen Rasmussen 2017-03-14 23:24:05 +01:00
parent 2a78b70171
commit 9632cc3ec7
2 changed files with 5 additions and 7 deletions

View File

@ -39,7 +39,7 @@
<select id="location" name="location" class="fa-select form-control filter-control"> <select id="location" name="location" class="fa-select form-control filter-control">
<option value="">All Locations</option> <option value="">All Locations</option>
{% for loc in camp.event_locations %} {% for loc in camp.event_locations %}
<option value="{{ loc.slug }}" {% if location and location == loc %}selected{% endif %}>{{ loc.icon }} {{ loc.name }}</option> <option value="{{ loc.slug }}" {% if location and location == loc %}selected{% endif %}>&#x{{ loc.icon }}; {{ loc.name }}</option>
{% endfor %} {% endfor %}
</select> </select>

View File

@ -191,29 +191,27 @@ class Command(BaseCommand):
speakers_tent = EventLocation.objects.create( speakers_tent = EventLocation.objects.create(
name='Speakers Tent', name='Speakers Tent',
slug='speakers-tent', slug='speakers-tent',
icon='speakertent.png', icon='f075',
camp=camp camp=camp
) )
workshop_room = EventLocation.objects.create( workshop_room = EventLocation.objects.create(
name='Workshop rooms', name='Workshop rooms',
slug='workshop-rooms', slug='workshop-rooms',
icon='workshop.png', icon='f0b1',
camp=camp camp=camp
) )
bar_area = EventLocation.objects.create( bar_area = EventLocation.objects.create(
name='Bar Area', name='Bar Area',
slug='bar-area', slug='bar-area',
icon='bararea.png', icon='f000',
camp=camp camp=camp
) )
food_area = EventLocation.objects.create( food_area = EventLocation.objects.create(
name='Food Area', name='Food Area',
slug='food-area', slug='food-area',
icon='foodarea.png', icon='f0f5',
camp=camp camp=camp
) )
# local food event
# taste each others food
self.output('Creating news for {}...'.format(year)) self.output('Creating news for {}...'.format(year))
NewsItem.objects.create( NewsItem.objects.create(