Skip to content

Commit

Permalink
Merge pull request #47 from maykinmedia/fix/preview-form-menu
Browse files Browse the repository at this point in the history
Changed preview_form to extend from admin/change_form
  • Loading branch information
Bartvaderkin authored Feb 28, 2024
2 parents 5f0f847 + 327c7dc commit ec8a84a
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions mail_editor/templates/admin/mail_editor/preview_form.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{% extends "admin/base_site.html" %}
{% extends "admin/change_form.html" %}
{% load i18n admin_urls static admin_modify %}

{# NOTE: this started as a copy of admin/change_form.html but is stripped and modified. #}

{% block extrahead %}{{ block.super }}
<script src="{% url 'admin:jsi18n' %}"></script>
{{ media }}
{% endblock %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %}

{% block coltype %}colM{% endblock %}

{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %}

{% if not is_popup %}
{% block breadcrumbs %}
<div class="breadcrumbs">
Expand All @@ -26,8 +13,6 @@
{% endif %}

{% block content %}<div id="content-main">
{% block object-tools %}
{% endblock %}
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}{% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.model_name }}_form" novalidate>{% csrf_token %}{% block form_top %}{% endblock %}
<div>
{% if errors %}
Expand Down Expand Up @@ -60,7 +45,7 @@
<div>
<style>
#id_recipient {
width: 300px;
width: 300px;
}
.mailtemplate__preview {
max-width: 800px;
Expand Down

0 comments on commit ec8a84a

Please sign in to comment.