Skip to content

Commit 66ef58b

Browse files
committed
Some Template improve.
1 parent 9e620d3 commit 66ef58b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

xadmin/templates/xadmin/base.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
{% view_block 'extrahead' %}
3030
</head>
3131
<body class="{% block bodyclass %}{% endblock %}">
32-
{% block body %}{% endblock body %}
32+
{% block body %}
33+
<div id="content-block" class="col-sm-12">
34+
{% block content %}{% endblock content %}
35+
</div>
36+
{% endblock body %}
3337
{% vendor 'jquery-ui-sortable.js' 'bootstrap.js' 'xadmin.main.js' 'xadmin.responsive.js' %}
3438
{{ media.js }}
3539
{% block extrabody %}{% endblock %}

xadmin/templates/xadmin/views/form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
{% view_block 'after_fieldsets' %}
2828

2929
<div class="form-actions well well-sm clearfix">
30-
<button type="submit" class="default btn btn-primary" name="_save" data-loading-text="{% trans "Saving.." %}"/><i class="fa fa-save"></i> {% trans 'Save' %}</button>
31-
{% view_block 'submit_line' %}
30+
<button type="submit" class="default btn btn-primary show-xs col-xs-12" name="_save" data-loading-text="{% trans "Saving.." %}"/><i class="fa fa-save"></i> {% trans 'Save' %}</button>
31+
<button type="submit" class="default btn btn-primary hide-xs" name="_save" data-loading-text="{% trans "Saving.." %}"/><i class="fa fa-save"></i> {% trans 'Save' %}</button>
3232
</div>
3333

3434
</form>

0 commit comments

Comments
 (0)