Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract actions from /table/row-action route
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
8a21647
commit 0e88a5b
Showing
5 changed files
with
112 additions
and
88 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
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,25 @@ | ||
<form action="{{ url('/table/row-action/delete') }}" method="post"> | ||
{{ get_hidden_inputs(hidden_inputs) }} | ||
|
||
<fieldset class="confirmation"> | ||
<legend> | ||
{% trans 'Do you really want to execute the following query?' %} | ||
</legend> | ||
|
||
<ul> | ||
{% for row in selected %} | ||
<li><code>DELETE FROM {{ backquote(table) }} WHERE {{ row }};</code></li> | ||
{% endfor %} | ||
</ul> | ||
</fieldset> | ||
|
||
<fieldset class="tblFooters"> | ||
<div id="foreignkeychk"> | ||
<input type="checkbox" name="fk_checks" id="fk_checks" value="1"{{ is_foreign_key_check ? ' checked' }}> | ||
<label for="fk_checks">{% trans 'Enable foreign key checks' %}</label> | ||
</div> | ||
|
||
<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> |