Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract drop confirmation action from index action
Extracts the /table/structure/drop-confirm route from the /table/structure route. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
73290bc
commit ff86a0b
Showing
5 changed files
with
81 additions
and
22 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
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,22 @@ | ||
<form action="{{ url('/table/structure') }}" method="post"> | ||
{{ get_hidden_inputs(url_params) }} | ||
|
||
<fieldset class="confirmation"> | ||
<legend> | ||
{% trans 'Do you really want to execute the following query?' %} | ||
</legend> | ||
|
||
<code> | ||
ALTER TABLE {{ backquote(table) }}<br> | ||
{% for field in fields %} | ||
DROP {{ backquote(field) }} | ||
{%- if loop.last %};{% else %},<br>{% endif %} | ||
{% endfor %} | ||
</code> | ||
</fieldset> | ||
|
||
<fieldset class="tblFooters"> | ||
<input id="buttonYes" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'Yes' %}"> | ||
<input id="buttonNo" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'No' %}"> | ||
</fieldset> | ||
</form> |
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