-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor candidate list plugin
- Loading branch information
1 parent
77f2ffa
commit f47829b
Showing
8 changed files
with
110 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 26 additions & 14 deletions
40
app/eleicao/templates/eleicao/filters/candidate_list_filter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
<form class="flex flex-wrap gap-4 items-end pb-12 w-full filters"> | ||
<div class="form-control"> | ||
<label class="label"> | ||
<span class="font-bold label-text">{{ form.uf.label }}</span> | ||
</label> | ||
{{ form.uf }} | ||
</div> | ||
<div class="form-control"> | ||
<label class="label"> | ||
<span class="font-bold label-text">{{ form.city.label }}</span> | ||
</label> | ||
{{ form.city }} | ||
</div> | ||
<form method="get" action="" class="flex flex-wrap gap-4 items-end pb-12 w-full filters"> | ||
{% if form.city %} | ||
<div class="form-control"> | ||
<label class="label"> | ||
<span class="font-bold label-text">{{ form.uf.label }}</span> | ||
</label> | ||
{{ form.uf }} | ||
</div> | ||
{% endif %} | ||
{% if form.city %} | ||
<div class="form-control"> | ||
<label class="label"> | ||
<span class="font-bold label-text">{{ form.city.label }}</span> | ||
</label> | ||
{{ form.city }} | ||
</div> | ||
{% endif %} | ||
{% if form.place %} | ||
<div class="form-control"> | ||
<label class="label"> | ||
<span class="font-bold label-text">{{ form.place.label }}</span> | ||
</label> | ||
{{ form.place }} | ||
</div> | ||
{% endif %} | ||
<input class="btn btn-primary" type="submit" value="Buscar" /> | ||
</form> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters