Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 01:01:17 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 01:01:17 +0300
commitde57539fb71beacba54b18283893ca3cba6f01cf (patch)
tree5b349c3a0b3c33e96d4bd25bd316705e2c31c8a5 /templates
parentc23bec2dee77f4b9af19f04f58d78db7cc75f5c4 (diff)
Build "tables list" in JS
This will allow to have the list generation in only one place, as the tables can now be added on the fly. So JS also needs to add items to this list. Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/database/designer/table_list.twig35
1 files changed, 2 insertions, 33 deletions
diff --git a/templates/database/designer/table_list.twig b/templates/database/designer/table_list.twig
index c69b0382ff..4534d55a50 100644
--- a/templates/database/designer/table_list.twig
+++ b/templates/database/designer/table_list.twig
@@ -18,42 +18,11 @@
</a>
</div>
<div id="id_scroll_tab" class="scroll_tab">
- <table width="100%" style="padding-left: 3px;">
- {% for i in 0..table_names|length - 1 %}
- <tr>
- <td title="{% trans 'Structure' %}"
- width="1px"
- class="L_butt2_1">
- <img alt=""
- db="{{ db }}"
- table_name="{{ table_names_small_url[i] }}"
- class="scroll_tab_struct"
- src="{{ theme.getImgPath('designer/exec.png') }}"/>
- </td>
- <td width="1px">
- <input class="scroll_tab_checkbox"
- title="{% trans 'Hide' %}"
- id="check_vis_{{ table_names_url[i]|url_encode }}"
- style="margin:0;"
- type="checkbox"
- value="{{ table_names_url[i]|url_encode }}"
- {% if (tab_pos[table_names[i]] is defined
- and tab_pos[table_names[i]]['H'])
- or display_page == -1 -%}
- checked="checked"
- {%- endif %} />
- </td>
- <td class="designer_Tabs"
- designer_url_table_name="{{ table_names_url[i]|url_encode }}">
- {{ table_names_out[i]|raw }}
- </td>
- </tr>
- {% endfor %}
- </table>
+ <table width="100%" style="padding-left: 3px;"></table>
</div>
{# end id_scroll_tab #}
<div class="center">
- {% trans 'Number of tables:' %} {{ table_names|length }}
+ {% trans 'Number of tables:' %} <span id="tables_counter">0</span>
</div>
<div id="layer_menu_sizer">
<div class="floatleft">