diff options
author | Leonardo Strozzi <laps15@inf.ufpr.br> | 2018-03-23 06:34:26 +0300 |
---|---|---|
committer | Leonardo Strozzi <laps15@inf.ufpr.br> | 2018-03-23 06:34:26 +0300 |
commit | eb6e40f053ae55c85ef1baab96b13d0a7cb177f0 (patch) | |
tree | 2b5aa11c5d625a847735f5a55a1818cd897317d0 /templates | |
parent | 2c7f3613ee8e4a2660bec672d2158f6695656d6b (diff) |
Addapt getHtmlForTableNavigation to twig template
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/database/central_columns/table_navigation.twig | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/database/central_columns/table_navigation.twig b/templates/database/central_columns/table_navigation.twig new file mode 100644 index 0000000000..3897cf085b --- /dev/null +++ b/templates/database/central_columns/table_navigation.twig @@ -0,0 +1,42 @@ +<table style="display:inline-block;max-width:49%" class="navigation nospacing nopadding"> + <tr> + <td class="navigation_separator"></td> + {% if pos - max_rows >= 0 %} + <td> + <form action="db_central_columns.php" method="post"> + {{ Url_getHiddenInputs(db) }} + <input type="hidden" name="pos" value="{{ pos - max_rows }}" /> + <input type="hidden" name="total_rows" value="{{ total_rows }}"/> + <input type="submit" name="navig" class="ajax" value="<" /> + </form> + </td> + {% endif %} + {% if nb_total_page > 1 %} + <td> + <form action="db_central_columns.php" method="post"> + {{ Url_getHiddenInputs(db) }} + <input type="hidden" name="total_rows" value="{{ total_rows }}"/> + {{ page_selector|raw }} + </form> + </td> + {% endif %} + {% if pos + max_rows < total_rows %} + <td> + <form action="db_central_columns.php" method="post"> + {{ Url_getHiddenInputs(db) }} + <input type="hidden" name="pos" value="{{ pos + max_rows }}"/> + <input type="hidden" name="total_rows" value="{{ total_rows }}"/> + <input type="submit" name="navig" class="ajax" value=">" /> + </form> + </td> + {% endif %} + </form> + </td> + <td class="navigation_separator"></td> + <td> + <span>{% trans 'Filter rows' %}:</span> + <input type="text" class="filter_rows" placeholder="{% trans 'Search this table' %}"> + </td> + <td class="navigation_separator"></td> + </tr> +</table> |