-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from woutervandamme/feature/confirmation
[TranslatorBundle] add confirmation box to force import
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/Kunstmaan/TranslatorBundle/Resources/views/Modals/_modals.html.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,30 @@ | ||
<!-- MODALS --> | ||
|
||
<!-- Modal - Import forced --> | ||
<div id="import-force-modal" class="modal fade"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
|
||
<!-- Head --> | ||
<div class="modal-header"> | ||
<button class="close" data-dismiss="modal"> | ||
<i class="fa fa-times"></i> | ||
</button> | ||
<h3>Are you sure you want to force an import?</h3> | ||
</div> | ||
|
||
<!-- Body --> | ||
<div class="modal-body"> | ||
<p>All existing translations will be overwritten.</p> | ||
</div> | ||
<!-- Footer --> | ||
<div class="modal-footer"> | ||
|
||
<form action="{{ path('KunstmaanTranslatorBundle_command_import_forced') }}" method="post" novalidate="novalidate"> | ||
<button type="submit" name="submit" class="btn btn-danger btn--raise-on-hover">Import</button> | ||
<button class="btn btn-default btn--raise-on-hover" data-dismiss="modal">Cancel</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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