Explorar o código

Merge pull request #2329 from Green-Cat/patch-1

Updates preview documentation
Thomas %!s(int64=10) %!d(string=hai) anos
pai
achega
d168e538e3
Modificáronse 1 ficheiros con 10 adicións e 4 borrados
  1. 10 4
      Resources/doc/reference/preview_mode.rst

+ 10 - 4
Resources/doc/reference/preview_mode.rst

@@ -102,8 +102,14 @@ a different object you can just set your own variables prior to calling parent()
     {% endblock %}
 
     {% 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 %}
 
 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
 
-    div.sonata-preview-form fieldset {
+    .sonata-preview-form .row {
         display: none;
     };
 
@@ -121,7 +127,7 @@ Or if you prefer less:
 .. code-block:: sass
 
     div.sonata-preview-form {
-      fieldset {
+      .row {
         display: none;
       };
     }