Skip to content

Commit

Permalink
Merge pull request #225 from OpenUpSA/small-ui-fix
Browse files Browse the repository at this point in the history
Fixed search bar placeholder
  • Loading branch information
paulmwatson authored Aug 6, 2024
2 parents 3af1122 + 4d3f72f commit 59dba67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>People at {{ object.name }}</h2>
<form action="{% url "core_search" %}">
<div class="inline-search-box people-list-inline-search">
<label for="id_q" class="inline-search-box__label">Find a person by name</label>
<input id="id_q" name="q" class="search-autocomplete-name" type="text" value="{{ query }}" placeholder="e.g. Thandi Modise" data-source="/search/autocomplete/?model=person">
<input id="id_q" name="q" class="search-autocomplete-name" type="text" value="{{ query }}" placeholder="Search" data-source="/search/autocomplete/?model=person">
<input type="hidden" name="section" value="persons">
<input type="submit" value="Search" class="button">
</div>
Expand Down
2 changes: 1 addition & 1 deletion pombola/south_africa/templates/core/position_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="page-title">{{ page_title }}</h1>
<form action="{% url "core_search" %}">
<div class="inline-search-box people-list-inline-search">
<label for="id_q" class="inline-search-box__label">Find a person by name</label>
<input id="id_q" name="q" class="search-autocomplete-name" type="text" value="{{ query }}" placeholder="e.g. Thandi Modise" data-source="/search/autocomplete/?model=person">
<input id="id_q" name="q" class="search-autocomplete-name" type="text" value="{{ query }}" placeholder="Search" data-source="/search/autocomplete/?model=person">
<input type="hidden" name="section" value="persons">
<input type="submit" value="Search" class="button">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="page-title">Members of Parliament</h1>
<form action="{% url "core_search" %}">
<div class="inline-search-box people-list-inline-search">
<label for="id_q" class="inline-search-box__label">Find a person by name</label>
<input id="id_q" name="q" class="js-mp-profiles-live-filter" type="text" value="{{ query }}" placeholder="e.g. Thandi Modise">
<input id="id_q" name="q" class="js-mp-profiles-live-filter" type="text" value="{{ query }}" placeholder="Search">
<input type="hidden" name="section" value="persons">
<input type="submit" value="Search" class="button">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h2>People</h2>

<form action="{% url "core_search" %}" class="inline-search-box people-list-inline-search" style="margin-top: 0">
<label for="core_search">Find a person by name</label>
<input class="search-autocomplete-name" id="core_search" data-source="/search/autocomplete/?model=person" type="text" name="q" value="" placeholder="e.g. Thandi Modise">
<input class="search-autocomplete-name" id="core_search" data-source="/search/autocomplete/?model=person" type="text" name="q" value="" placeholder="Search">
<input type="hidden" name="section" value="persons">
<input type="submit" value="Search" class="button">
<a href="{% url 'organisation_people' slug=object.slug %}">Or browse an A-Z list of all members</a>
Expand Down

0 comments on commit 59dba67

Please sign in to comment.