Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
- Loading branch information
1 parent
574ac65
commit a35f879
Showing
42 changed files
with
265 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/* vim: set expandtab sw=4 ts=4 sts=4: */ | ||
/** | ||
* hold PMA\libraries\twig\SanitizeExtension class | ||
* | ||
* @package PMA\libraries\twig | ||
*/ | ||
namespace PMA\libraries\twig; | ||
|
||
use Twig_Extension; | ||
use Twig_SimpleFunction; | ||
|
||
/** | ||
* Class SanitizeExtension | ||
* | ||
* @package PMA\libraries\twig | ||
*/ | ||
class SanitizeExtension extends Twig_Extension | ||
{ | ||
/** | ||
* Returns a list of functions to add to the existing list. | ||
* | ||
* @return Twig_SimpleFunction[] | ||
*/ | ||
public function getFunctions() | ||
{ | ||
return array( | ||
new Twig_SimpleFunction( | ||
'Sanitize_escapeJsString', | ||
'PMA\libraries\Sanitize::escapeJsString', | ||
array('is_safe' => array('html')) | ||
), | ||
); | ||
} | ||
} |
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
18 changes: 0 additions & 18 deletions
18
templates/columns_definitions/column_adjust_privileges.phtml
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
templates/columns_definitions/column_adjust_privileges.twig
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,16 @@ | ||
{% if privs_available %} | ||
<input name="field_adjust_privileges[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
checked="checked" | ||
type="checkbox" | ||
value="NULL" | ||
class="allow_null"/> | ||
{% else %} | ||
<input name="field_adjust_privileges[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
disabled | ||
type="checkbox" | ||
value="NULL" | ||
class="allow_null" | ||
title="{% trans "You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details" %}"/> | ||
{% endif %} |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
<input name="field_extra[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
{% if columnMeta['Extra'] is defined and columnMeta['Extra']|lower == 'auto_increment' -%} | ||
checked="checked" | ||
{%- endif %} | ||
type="checkbox" | ||
value="AUTO_INCREMENT" /> |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
<input name="col_extra[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
{% if columnMeta['Extra'] is not empty and columnMeta['Extra'] == 'auto_increment' -%} | ||
checked="checked" | ||
{%- endif %} | ||
type="checkbox" | ||
value="auto_increment" /> |
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
<select name="field_key[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" data-index=""> | ||
<option value="none_{{ columnNumber }}">---</option> | ||
<option value="primary_{{ columnNumber }}" title="{% trans "Primary" %}" | ||
{{- columnMeta['Key'] is defined and columnMeta['Key'] == 'PRI' ? ' selected="selected"' }}> | ||
PRIMARY | ||
</option> | ||
<option value="unique_{{ columnNumber }}" title="{% trans "Unique" %}" | ||
{{- columnMeta['Key'] is defined and columnMeta['Key'] == 'UNI' ? ' selected="selected"' }}> | ||
UNIQUE | ||
</option> | ||
<option value="index_{{ columnNumber }}" title="{% trans "Index" %}" | ||
{{- columnMeta['Key'] is defined and columnMeta['Key'] == 'MUL' ? ' selected="selected"' }}> | ||
INDEX | ||
</option> | ||
<option value="fulltext_{{ columnNumber }}" title="{% trans "Fulltext" %}" | ||
{{- columnMeta['Key'] is defined and columnMeta['Key'] == 'FULLTEXT' ? ' selected="selected"' }}> | ||
FULLTEXT | ||
</option> | ||
<option value="spatial_{{ columnNumber }}" title="{% trans "Spatial" %}" | ||
{{- columnMeta['Key'] is defined and columnMeta['Key'] == 'SPATIAL' ? ' selected="selected"' }}> | ||
SPATIAL | ||
</option> | ||
</select> |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
<input id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
type="text" | ||
name="field_length[{{ columnNumber }}]" | ||
size="{{ length_values_input_size }}" | ||
value="{{ length_to_display }}" | ||
class="textfield" /> | ||
<p class="enum_notice" id="enum_notice_{{ columnNumber }}_{{ ci - ci_offset }}"> | ||
<a href="#" class="open_enum_editor"> | ||
{% trans 'Edit ENUM/SET values' %} | ||
</a> | ||
</p> |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
<input name="field_null[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
{% if columnMeta['Null'] is not empty and columnMeta['Null'] != 'NO' and columnMeta['Null'] != 'NOT NULL' -%} | ||
checked="checked" | ||
{%- endif %} | ||
type="checkbox" | ||
value="NULL" | ||
class="allow_null" /> |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
<select class="column_type" | ||
name="field_type[{{ columnNumber }}]" | ||
id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
{%- if columnMeta['column_status'] is defined and not columnMeta['column_status']['isEditable'] -%} | ||
disabled="disabled" | ||
{%- endif %}> | ||
{{ Util_getSupportedDatatypes(true, type_upper) }} | ||
</select> |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
{% set options_key = type_prefix ~ 'transformation_options' %} | ||
<input id="field_{{ columnNumber }}_{{ ci - ci_offset }}" | ||
type="text" | ||
name="field_{{ options_key }}[{{ columnNumber }}]" | ||
size="16" | ||
class="textfield" | ||
value="{% if columnMeta['Field'] is defined and mime_map[columnMeta['Field']][options_key] is defined -%} | ||
{{- mime_map[columnMeta['Field']][options_key] -}} | ||
{%- endif %}" /> |
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
2 changes: 1 addition & 1 deletion
2
templates/database/designer/canvas.phtml → templates/database/designer/canvas.twig
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div id="osn_tab"> | ||
<canvas class="pmd" id="canvas" width="100" height="100" ></canvas> | ||
</div> | ||
</div> |
Oops, something went wrong.