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:
authorLeonardo Strozzi <laps15@inf.ufpr.br>2018-05-10 17:45:28 +0300
committerLeonardo Strozzi <laps15@inf.ufpr.br>2018-05-10 17:45:28 +0300
commitc634200564397759217735d24f24a1a938e2a77b (patch)
tree142406465abee83611e9d6680997204366c44aa4 /templates
parent1967db6ae13154d04c6800e99a41f3a1f1d15fb9 (diff)
Addapt getHtmlForTableRow to twig template
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
Diffstat (limited to 'templates')
-rw-r--r--templates/database/central_columns/table_row.twig60
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/database/central_columns/table_row.twig b/templates/database/central_columns/table_row.twig
new file mode 100644
index 0000000000..0514d2c935
--- /dev/null
+++ b/templates/database/central_columns/table_row.twig
@@ -0,0 +1,60 @@
+<tr data-rownum="{{ row_num }}" id="{{ 'f_' ~ row_num }}">
+ {{ Url_getHiddenInputs(db) }}
+ <input type="hidden" name="edit_save" value="save">
+ <td class="nowrap">
+ <input type="checkbox" class="checkall" name="selected_fld[]"
+ value="{{ row['col_name']|raw }}" id="{{ 'checkbox_row_' ~ row_num }}"/>
+ </td>
+ <td id="{{ 'edit_' ~ row_num }}" class="edit center">
+ <a href="#"> {{ Util_getIcon('b_edit', 'Edit'|trans) |raw }}</a>
+ </td>
+ <td class="del_row" data-rownum = "{{ row_num }}">
+ <a hrf="#">{{ Util_getIcon('b_drop', 'Delete'|trans) }}</a>
+ <input type="submit" data-rownum = "{{ row_num }}" class="edit_cancel_form" value="Cancel">
+ </td>
+ <td id="{{ 'save_' ~ row_num }}" class="hide">
+ <input type="submit" data-rownum="{{ row_num }}" class="edit_save_form" value="Save">
+ </td>
+ <td name="col_name" class="nowrap">
+ <span>{{ row['col_name'] |raw }}</span>
+ <input name="orig_col_name" type="hidden" value="{{ row['col_name'] |raw }}">
+ {{ column_name |raw }}
+ </td>
+ <td name = "col_type" class="nowrap">
+ <span>{{ row['col_type'] |raw }}</span>
+ {{ column_type |raw }}
+ </td>
+ <td class="nowrap" name="col_length">
+ <span>{{ (row['col_length']?(row['col_length'] | raw):'') }}</span>
+ {{ column_length |raw }}
+ </td>
+ <td class="nowrap" name="col_default">
+ {% if row['col_default'] is defined %}
+ <span>{{ row['col_default'] }}</span>
+ {% else %}
+ <span>None</span>
+ {% endif %}
+ {{ column_default |raw }}
+ </td>
+ <td name="collation" class="nowrap">
+ <span>{{ row['col_collation'] |raw }}</span>
+ {{ Charsets_getCollationDropdownBox(
+ dbi,
+ disableIs,
+ 'field_collation[' ~ row_num ~ ']',
+ 'field_' ~ row_num ~ '_4', row['col_collation'], false
+ ) |raw }}
+ </td>
+ <td class="nowrap" name="col_attribute">
+ <span>{{ row['col_attribute']?(row['col_attribute'] |raw):"" }}</span>
+ {{ column_attribute |raw }}
+ </td>
+ <td class="nowrap" name="col_isNull">
+ <span>{{ row['col_isNull'] ? 'Yes' |trans : 'No' |trans }}</span>
+ {{ column_null |raw }}
+ </td>
+ <td class="nowrap" name="col_extra">
+ <span>{{ row['col_extra'] |raw }}</span>
+ {{ column_extra |raw }}
+ </td>
+</tr>