Skip to content

Commit 0575103

Browse files
author
Wim Vandersmissen
committed
Merge pull request #120 from kimausloos/master
Don't show choose template when there is only one
2 parents 381cc09 + 24ee829 commit 0575103

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Resources/views/FormWidgets/PageTemplateWidget/widget.html.twig

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
{% endfor %}
2121
</div>
2222
{% endfor %}
23+
{% if resource.pagetemplates|length > 1 %}
2324
<button class="btn" data-keyboard="true" data-toggle="modal" data-target="#change-template-modal{{id}}" name="change-template-button"><i class="icon-align-justify"></i> Change template</button>
2425
<!--Change template modal-->
2526
<div id="change-template-modal{{id}}" class="modal hide fade change-template-modal">
@@ -56,6 +57,7 @@
5657
</div>
5758
</div>
5859
</div>
60+
{% endif %}
5961
</section>
6062
<script>
6163
PageTemplateEditor = {

0 commit comments

Comments
 (0)