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">
<option value="">All Locations</option>
{% 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 %}
</select>

View File

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