Skip to content

Commit

Permalink
Fix firefox fieldlayout
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Jan 6, 2016
1 parent ef45243 commit 42c2b3b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions AmFormsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function getName()
*/
public function getVersion()
{
return '1.3.0';
return '1.3.1';
}

/**
* @return string
*/
public function getSchemaVersion()
{
return '1.3.0';
return '1.3.1';
}

/**
Expand Down
39 changes: 19 additions & 20 deletions templates/forms/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
] %}

{% set tabs = {
form: {
label: "General"|t,
url: '#form'
},
formfields: {
label: "Fields"|t,
url: '#designer'
Expand All @@ -37,30 +41,25 @@
<input type="hidden" name="redirect" value="amforms/forms/edit/{id}">
{% if formId is defined -%}<input type="hidden" name="formId" value="{{ formId }}">{% endif %}

<div class="grid first">
<div class="item first" data-position="left" data-min-colspan="2" data-max-colspan="3">
<div class="pane">
{% include "_includes/tabs" %}
<div class="pane">
{% include "_includes/tabs" %}

<div id="designer">
{% include 'amforms/forms/_fields/designer' %}
</div>
<div id="form">
{% include 'amforms/forms/_fields/form' %}
</div>

<div id="notification" class="hidden">
{% include 'amforms/forms/_fields/notifications' %}
</div>
<div id="designer" class="hidden">
{% include 'amforms/forms/_fields/designer' %}
</div>

{% if currentUser.admin -%}
<div id="templates" class="hidden">
{% include 'amforms/forms/_fields/templates' %}
</div>
{% endif %}
</div>
<div id="notification" class="hidden">
{% include 'amforms/forms/_fields/notifications' %}
</div>
<div class="item" data-position="right" data-colspan="1">
<div class="pane">
{% include 'amforms/forms/_fields/form' %}

{% if currentUser.admin -%}
<div id="templates" class="hidden">
{% include 'amforms/forms/_fields/templates' %}
</div>
</div>
{% endif %}
</div>
{% endblock %}

0 comments on commit 42c2b3b

Please sign in to comment.