File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
flask_admin/templates/bootstrap4/admin Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -211,23 +211,23 @@ <h3>{{ text }}</h3>
211
211
212
212
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
213
213
{% if is_modal %}
214
- < input type ="submit " class ="btn btn-primary " value ="{{ _gettext('Save') }} " />
214
+ < input type ="submit " class ="btn btn-primary mr-1 mb-1 " value ="{{ _gettext('Save') }} " />
215
215
{% if extra %}
216
216
{{ extra }}
217
217
{% endif %}
218
218
{% if cancel_url %}
219
- < a href ="{{ cancel_url }} " class ="btn btn-danger " role ="button " {% if is_modal %}data-dismiss ="modal "{% endif %} > {{ _gettext('Cancel') }}</ a >
219
+ < a href ="{{ cancel_url }} " class ="btn btn-danger mr-1 mb-1 " role ="button " {% if is_modal %}data-dismiss ="modal "{% endif %} > {{ _gettext('Cancel') }}</ a >
220
220
{% endif %}
221
221
{% else %}
222
222
< hr >
223
223
< div class ="form-group ">
224
224
< div class ="col-md-offset-2 col-md-10 submit-row ">
225
- < input type ="submit " class ="btn btn-primary " value ="{{ _gettext('Save') }} " />
225
+ < input type ="submit " class ="btn btn-primary mr-1 mb-1 " value ="{{ _gettext('Save') }} " />
226
226
{% if extra %}
227
227
{{ extra }}
228
228
{% endif %}
229
229
{% if cancel_url %}
230
- < a href ="{{ cancel_url }} " class ="btn btn-danger " role ="button " {% if is_modal %}data-dismiss ="modal "{% endif %} > {{ _gettext('Cancel') }}</ a >
230
+ < a href ="{{ cancel_url }} " class ="btn btn-danger mr-1 mb-1 " role ="button " {% if is_modal %}data-dismiss ="modal "{% endif %} > {{ _gettext('Cancel') }}</ a >
231
231
{% endif %}
232
232
</ div >
233
233
</ div >
@@ -284,9 +284,9 @@ <h3>{{ text }}</h3>
284
284
285
285
{% macro extra() %}
286
286
{% if admin_view.can_create %}
287
- < input name ="_add_another " type ="submit " class ="btn btn-secondary " value ="{{ _gettext('Save and Add Another') }} " />
287
+ < input name ="_add_another " type ="submit " class ="btn btn-secondary mr-1 mb-1 " value ="{{ _gettext('Save and Add Another') }} " />
288
288
{% endif %}
289
289
{% if admin_view.can_edit %}
290
- < input name ="_continue_editing " type ="submit " class ="btn btn-secondary " value ="{{ _gettext('Save and Continue Editing') }} " />
290
+ < input name ="_continue_editing " type ="submit " class ="btn btn-secondary mr-1 mb-1 " value ="{{ _gettext('Save and Continue Editing') }} " />
291
291
{% endif %}
292
292
{% endmacro %}
You can’t perform that action at this time.
0 commit comments