Guillermo Espinoza 8 rokov pred
rodič
commit
6ebd2648ab

+ 7 - 5
Resources/views/Audit/compare.html.twig

@@ -36,7 +36,7 @@
                 <div class="box-header">
                     <h4 class="box-title"> {{ 'Detalle de campos'|trans({}, 'AuditBundle') }}: </h4>
                 </div>
-                <table class="table table-bordered table-striped sonata-ba-list">
+                <table class="table table-bordered table-striped sonata-ba-list" style="margin-bottom: 0px;">
                     <tbody>
                         <tr class="filter inactive">
                             <td class="filter-title" width="180"><b>{{ 'Campo'|trans({}, 'AuditBundle') }}</b></td>
@@ -80,10 +80,12 @@
                         {% endfor %}
                     </tbody>
                 </table>
-                <a class="btn btn-small btn-primary" href="{{ path('entity_audit') }}">{{ 'Regresar'|trans({}, 'AuditBundle') }}</a>
+                <div style="width: 100%; min-height: 64px; background-color: #ffffff;">
+                    <div style="float: right; padding: 15px;">
+                        <a class="btn btn-small btn-primary" href="{{ path('entity_audit') }}">{{ 'Regresar'|trans({}, 'AuditBundle') }}</a>
+                    </div>
+                </div>
             </div>
         </div>
     </fieldset>
-{% endblock %}
-
-{% block content %}{% endblock %}
+{% endblock %}

+ 6 - 0
Resources/views/Audit/revs.html.twig

@@ -46,6 +46,12 @@
         .filter-value {
             width: 400px;
         }
+        input[type='text']:focus {
+            border-color: #66afe9 !important;
+            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
+            outline: 0 none;
+            transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
+        }
         input[type='text'] {
             width: inherit;
             padding: 4px;

+ 20 - 13
Resources/views/Audit/view.html.twig

@@ -84,8 +84,8 @@
                     <h4 class="box-title"> {{ 'Revisiones efectuadas'|trans({}, 'AuditBundle') }} ({{ data.revisions|length }}): </h4>
                 </div>
                 <form action="{{ path('entity_audit_compare_revs', { 'className': data.className, 'id': data.id }) }}" method="get">
-                    <div style="display:block; height:200px; overflow:auto; margin-bottom:10px">
-                        <table class="table table-bordered table-striped sonata-ba-list" style="width:100%;margin-top:0px;margin-bottom:0px">
+                    <div style="display:block; height:200px; overflow:auto;">
+                        <table class="table table-bordered table-striped sonata-ba-list" style="width:100%; margin-top:0px; margin-bottom:0px">
                             <tbody>
                                 <tr class="filter inactive">
                                     <td class="filter-title" style="width:90px;"><b>{{ 'Revisión'|trans({}, 'AuditBundle') }}</b></td>
@@ -98,23 +98,30 @@
                             <tbody>
                                 {% for revision in data.revisions %}
                                     <tr class="filter inactive">
-                                        <td class="filter-value" style="text-align:center;"><a href="{{ path('entity_audit_view_details', { 'className': data.className, 'id': data.id, 'rev': revision.rev }) }}">{{ revision.rev }}</a></td>
+                                        <td class="filter-value" style="text-align:center;">
+                                            <a href="{{ path('entity_audit_view_details', { 'className': data.className, 'id': data.id, 'rev': revision.rev }) }}">{{ revision.rev }}</a>
+                                        </td>
                                         <td class="filter-value">{{ revision.timestamp | date("d/m/Y \\a \\l\\a\\s h:m:s") }}</td>
                                         <td class="filter-value">{{ revision.username|default('(anonymous)') }}</td>
-
-                                        <td class="filter-value" style="text-align:center"><input type="radio" name="oldRev" value="{{ revision.rev }}"{% if loop.index == 2 %} checked="checked"{% endif %} /></td>
-                                        <td class="filter-value" style="text-align:center"><input type="radio" name="newRev" value="{{ revision.rev }}"{% if loop.index == 1 %} checked="checked"{% endif %} /></td>
+                                        <td class="filter-value" style="text-align:center">
+                                            <input type="radio" name="oldRev" value="{{ revision.rev }}"{% if loop.index == 2 %} checked="checked"{% endif %} />
+                                        </td>
+                                        <td class="filter-value" style="text-align:center">
+                                            <input type="radio" name="newRev" value="{{ revision.rev }}"{% if loop.index == 1 %} checked="checked"{% endif %} />
+                                        </td>
                                     </tr>
                                 {% endfor %}
                             </tbody>
                         </table>
                     </div>
-                    <input class="btn btn-small btn-primary" type="submit" value="{{ 'Comparar'|trans({}, 'AuditBundle') }}" />
-                    <a class="btn btn-small btn-default" href="{{ path('entity_audit') }}">{{ 'Regresar'|trans({}, 'AuditBundle') }}</a>
+                    <div style="width: 100%; min-height: 64px; background-color: #ffffff;">
+                        <div style="float: right; padding: 15px;">
+                            <input class="btn btn-small btn-primary" type="submit" value="{{ 'Comparar'|trans({}, 'AuditBundle') }}" />
+                            <a class="btn btn-small btn-default" href="{{ path('entity_audit') }}">{{ 'Regresar'|trans({}, 'AuditBundle') }}</a>
+                        </div>
+                    </div>
+                </form>
             </div>
         </div>
-    </form>	    
-</fieldset>
-{% endblock %}
-
-{% block content %}{% endblock %}
+    </fieldset>
+{% endblock %}