|
@@ -102,8 +102,14 @@ a different object you can just set your own variables prior to calling parent()
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block formactions %}
|
|
{% block formactions %}
|
|
- <input class="btn btn-success" type="submit" name="btn_preview_approve" value="{{ 'btn_preview_approve'|trans({}, 'SonataAdminBundle') }}"/>
|
|
|
|
- <input class="btn btn-danger" type="submit" name="btn_preview_decline" value="{{ 'btn_preview_decline'|trans({}, 'SonataAdminBundle') }}"/>
|
|
|
|
|
|
+ <button class="btn btn-success" type="submit" name="btn_preview_approve">
|
|
|
|
+ <i class="glyphicon glyphicon-ok"></i>
|
|
|
|
+ {{ 'btn_preview_approve'|trans({}, 'SonataAdminBundle') }}
|
|
|
|
+ </button>
|
|
|
|
+ <button class="btn btn-danger" type="submit" name="btn_preview_decline">
|
|
|
|
+ <i class="glyphicon glyphicon-remove"></i>
|
|
|
|
+ {{ 'btn_preview_decline'|trans({}, 'SonataAdminBundle') }}
|
|
|
|
+ </button>
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
Keep in mind that the whole edit form will now appear in your view.
|
|
Keep in mind that the whole edit form will now appear in your view.
|
|
@@ -112,7 +118,7 @@ Hiding the fieldset tags with css (display:none) will be enough to only show the
|
|
|
|
|
|
.. code-block:: css
|
|
.. code-block:: css
|
|
|
|
|
|
- div.sonata-preview-form fieldset {
|
|
|
|
|
|
+ .sonata-preview-form .row {
|
|
display: none;
|
|
display: none;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -121,7 +127,7 @@ Or if you prefer less:
|
|
.. code-block:: sass
|
|
.. code-block:: sass
|
|
|
|
|
|
div.sonata-preview-form {
|
|
div.sonata-preview-form {
|
|
- fieldset {
|
|
|
|
|
|
+ .row {
|
|
display: none;
|
|
display: none;
|
|
};
|
|
};
|
|
}
|
|
}
|