forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5566 from nyaruka/base_list_template
Base list template
- Loading branch information
Showing
6 changed files
with
305 additions
and
339 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "smartmin/list.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
{% block pre-table %} | ||
{% endblock pre-table %} | ||
{% if view.search_fields %} | ||
<form method="get" action="{{ request.path }}" id="search-form"> | ||
<temba-textinput placeholder="{% trans "Search" %}" name="search" value="{{ search }}" class="w-full"> | ||
</temba-textinput> | ||
<input type="submit" class="hide"> | ||
</form> | ||
{% endif %} | ||
<div class="mt-4 shadow rounded-lg rounded-bl-none rounded-br-none bg-white">{% include "includes/short_pagination.html" %}</div> | ||
<div class="flex-grow overflow-y-auto shadow"> | ||
{% block table %} | ||
{% endblock table %} | ||
</div> | ||
{% endblock content %} | ||
{% block extra-style %} | ||
{{ block.super }} | ||
<style type="text/css"> | ||
tr:hover .delete-link { | ||
visibility: visible !important; | ||
} | ||
</style> | ||
{% endblock extra-style %} |
Oops, something went wrong.