Skip to content

Commit

Permalink
Replace form-control with form-select
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Lacaci <juersio@gmail.com>
  • Loading branch information
serjlc committed Sep 21, 2022
1 parent d0b71b7 commit 5272c32
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion templates/columns_definitions/column_definitions_form.twig
Expand Up @@ -110,7 +110,7 @@
</td>
<td width="25">&nbsp;</td>
<td>
<select class="form-control" name="tbl_storage_engine" aria-label="{% trans 'Storage engine' %}">
<select class="form-select" name="tbl_storage_engine" aria-label="{% trans 'Storage engine' %}">
{% for engine in storage_engines %}
<option value="{{ engine.name }}"{% if engine.comment is not empty %} title="{{ engine.comment }}"{% endif %}
{{- engine.name|lower == tbl_storage_engine|lower or (tbl_storage_engine is empty and engine.is_default) ? ' selected' }}>
Expand Down
2 changes: 1 addition & 1 deletion templates/database/operations/index.twig
Expand Up @@ -196,7 +196,7 @@
<div class="mb-3 row g-3">
<div class="col-auto">
<label class="visually-hidden" for="select_db_collation">{% trans 'Collation' %}</label>
<select class="form-control" lang="en" dir="ltr" name="db_collation" id="select_db_collation">
<select class="form-select" lang="en" dir="ltr" name="db_collation" id="select_db_collation">
<option value=""></option>
{% for charset in charsets %}
<optgroup label="{{ charset.getName() }}" title="{{ charset.getDescription() }}">
Expand Down
4 changes: 2 additions & 2 deletions templates/sql/query.twig
Expand Up @@ -60,7 +60,7 @@
<div class="col-xl-2 col-lg-3">
<div class="mb-3">
<label class="visually-hidden" for="fieldsSelect">{% trans 'Columns' %}</label>
<select class="form-control resize-vertical" id="fieldsSelect" name="dummy" size="{{ textarea_rows }}" ondblclick="Functions.insertValueQuery()" multiple>
<select class="form-select resize-vertical" id="fieldsSelect" name="dummy" size="{{ textarea_rows }}" ondblclick="Functions.insertValueQuery()" multiple>
{% for field in columns_list %}
<option value="{{ backquote(field['Field']) }}"
{{- field['Field'] is not null and field['Comment'] is not null and field['Field']|length > 0 ? ' title="' ~ field['Comment'] ~ '"' }}>
Expand Down Expand Up @@ -160,7 +160,7 @@
<label class="form-label" for="id_bookmark">{% trans 'Bookmark:' %}</label>
</div>
<div class="col-6">
<select class="form-control" name="id_bookmark" id="id_bookmark">
<select class="form-select" name="id_bookmark" id="id_bookmark">
<option value="">&nbsp;</option>
{% for bookmark in bookmarks %}
<option value="{{ bookmark.id }}" data-varcount="{{ bookmark.variable_count }}">
Expand Down
16 changes: 8 additions & 8 deletions templates/table/operations/index.twig
Expand Up @@ -11,7 +11,7 @@
<div class="row g-3">
<div class="col-auto">
<label class="visually-hidden" for="tableOrderFieldSelect">{% trans 'Column' %}</label>
<select id="tableOrderFieldSelect" class="form-control" name="order_field" aria-describedby="tableOrderFieldSelectHelp">
<select id="tableOrderFieldSelect" class="form-select" name="order_field" aria-describedby="tableOrderFieldSelectHelp">
{% for column in columns %}
<option value="{{ column.Field }}">{{ column.Field }}</option>
{% endfor %}
Expand Down Expand Up @@ -53,7 +53,7 @@
<div class="col-auto">
<div class="input-group">
{% if database_list is not empty %}
<select id="moveTableDatabaseInput" class="form-control" name="target_db" aria-label="{% trans 'Database' %}">
<select id="moveTableDatabaseInput" class="form-select" name="target_db" aria-label="{% trans 'Database' %}">
{% for each_db in database_list %}
<option value="{{ each_db.name }}"{{ each_db.is_selected ? ' selected' }}>{{ each_db.name }}</option>
{% endfor %}
Expand Down Expand Up @@ -135,7 +135,7 @@
</label>
</div>
<div class="col-6">
<select class="form-control" name="new_tbl_storage_engine" id="newTableStorageEngineSelect">
<select class="form-select" name="new_tbl_storage_engine" id="newTableStorageEngineSelect">
{% for engine in storage_engines %}
<option value="{{ engine.name }}"{% if engine.comment is not empty %} title="{{ engine.comment }}"{% endif %}
{{- engine.name|lower == storage_engine|lower or (storage_engine is empty and engine.is_default) ? ' selected' }}>
Expand All @@ -151,7 +151,7 @@
<label for="collationSelect">{% trans 'Collation' %}</label>
</div>
<div class="col-6">
<select class="form-control" id="collationSelect" lang="en" dir="ltr" name="tbl_collation">
<select class="form-select" id="collationSelect" lang="en" dir="ltr" name="tbl_collation">
<option value=""></option>
{% for charset in charsets %}
<optgroup label="{{ charset.getName() }}" title="{{ charset.getDescription() }}">
Expand All @@ -177,7 +177,7 @@
<label for="new_pack_keys">PACK_KEYS</label>
</div>
<div class="col-6">
<select class="form-control" name="new_pack_keys" id="new_pack_keys">
<select class="form-select" name="new_pack_keys" id="new_pack_keys">
<option value="DEFAULT"{{ pack_keys == 'DEFAULT' ? ' selected' }}>DEFAULT</option>
<option value="0"{{ pack_keys == '0' ? ' selected' }}>0</option>
<option value="1"{{ pack_keys == '1' ? ' selected' }}>1</option>
Expand Down Expand Up @@ -227,7 +227,7 @@
<label for="new_row_format">ROW_FORMAT</label>
</div>
<div class="col-12">
<select class="form-control" id="new_row_format" name="new_row_format">
<select class="form-select" id="new_row_format" name="new_row_format">
{% for row_format in row_formats %}
<option value="{{ row_format }}"{{ row_format == row_format_current|upper ? ' selected' }}>{{ row_format }}</option>
{% endfor %}
Expand All @@ -254,7 +254,7 @@
<div class="col-auto">
<div class="input-group">
{% if database_list is not empty %}
<select class="form-control" name="target_db" aria-label="{% trans 'Database' %}">
<select class="form-select" name="target_db" aria-label="{% trans 'Database' %}">
{% for each_db in database_list %}
<option value="{{ each_db.name }}"{{ each_db.is_selected ? ' selected' }}>{{ each_db.name }}</option>
{% endfor %}
Expand Down Expand Up @@ -478,7 +478,7 @@
<div class="card-body">
<div class="mb-3">
<label for="partition_name">{% trans 'Partition' %}</label>
<select class="form-control resize-vertical" id="partition_name" name="partition_name[]" multiple required>
<select class="form-select resize-vertical" id="partition_name" name="partition_name[]" multiple required>
{% for partition in partitions %}
<option value="{{ partition }}"{{ loop.first ? ' selected' }}>{{ partition }}</option>
{% endfor %}
Expand Down

0 comments on commit 5272c32

Please sign in to comment.