Port table/structure/partition_definition_form to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
fa5c45444e
commit
43bf9e5e78
@ -537,7 +537,7 @@ class TableStructureController extends TableController
|
||||
array(
|
||||
'db' => $this->db,
|
||||
'table' => $this->table,
|
||||
'partitionDetails' => $partitionDetails
|
||||
'partition_details' => $partitionDetails,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
<form action="tbl_structure.php" method="post">
|
||||
<?= PhpMyAdmin\Url::getHiddenInputs($db, $table); ?>
|
||||
<input type="hidden" name="edit_partitioning" value="true" />
|
||||
|
||||
<fieldset>
|
||||
<legend><?= __('Edit partitioning'); ?></legend>
|
||||
<?= PhpMyAdmin\Template::get('columns_definitions/partitions')
|
||||
->render(array('partition_details' => $partitionDetails)); ?>
|
||||
</fieldset>
|
||||
<fieldset class="tblFooters">
|
||||
<input type="submit" name="save_partitioning" value="<?= __('Save'); ?>">
|
||||
</fieldset>
|
||||
</form>
|
||||
14
templates/table/structure/partition_definition_form.twig
Normal file
14
templates/table/structure/partition_definition_form.twig
Normal file
@ -0,0 +1,14 @@
|
||||
<form action="tbl_structure.php" method="post">
|
||||
{{ Url_getHiddenInputs(db, table) }}
|
||||
<input type="hidden" name="edit_partitioning" value="true" />
|
||||
|
||||
<fieldset>
|
||||
<legend>{% trans 'Edit partitioning' %}</legend>
|
||||
{% include 'columns_definitions/partitions.twig' with {
|
||||
'partition_details': partition_details
|
||||
} only %}
|
||||
</fieldset>
|
||||
<fieldset class="tblFooters">
|
||||
<input type="submit" name="save_partitioning" value="{% trans 'Save' %}">
|
||||
</fieldset>
|
||||
</form>
|
||||
Loading…
Reference in New Issue
Block a user