Skip to content

Commit

Permalink
Add fixed list of resource types
Browse files Browse the repository at this point in the history
Resource types are used sometimes to write logic in the templates. As a result, they should be consistent. Only those types that have several engage pages and have been correctly used are kept now.
  • Loading branch information
Carlos Wu Fei authored and carkod committed Jan 4, 2024
1 parent 722fea2 commit 997e8bd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions templates/engage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ <h1>Engage pages</h1>
<label for="resource-selector">Select resource type:</label>
<select name="resource-selector" id="resource-selector" class="u-no-margin--bottom">
<option value="all">All resource types</option>
{% for resource in resource_types %}
<option value="{{ resource }}">{{ resource | capitalize }}</option>
{% endfor %}
<option value="blog">Blog</option>
<option value="case+study">Case study</option>
<option value="ebook">Ebook</option>
<option value="event">Event</option>
<option value="form">Form</option>
<option value="webinar">Webinar</option>
<option value="whitepaper">Whitepaper</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 997e8bd

Please sign in to comment.