Skip to content

Commit

Permalink
Merge pull request #413 from woutervandamme/feature/confirmation
Browse files Browse the repository at this point in the history
[TranslatorBundle] add confirmation box to force import
  • Loading branch information
krispypen committed May 19, 2015
2 parents 7584a46 + e960399 commit 30010f9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
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>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</a>
</li>
<li>
<a href="{{ path('KunstmaanTranslatorBundle_command_import_forced') }}" >
<a data-toggle="modal" data-target="#import-force-modal" >
{{ 'settings.translator.import_translations_forced' | trans }}
</a>
</li>
Expand All @@ -78,6 +78,9 @@
{% endblock %}
</div>
</header>

{% include 'KunstmaanTranslatorBundle:Modals:_modals.html.twig' %}

{% endblock %}


Expand Down

0 comments on commit 30010f9

Please sign in to comment.