Markdown enable generic note fields

This commit is contained in:
2022-02-15 12:13:50 +00:00
parent d9664422c5
commit e4cfaba57d
3 changed files with 25 additions and 3 deletions

View File

@@ -1,6 +1,27 @@
{% extends override|default:"base_rigs.html" %}
{% load button from filters %}
{% load widget_tweaks %}
{% load static %}
{% block css %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static 'css/easymde.min.css' %}">
{% endblock %}
{% block preload_js %}
{{ block.super }}
<script src="{% static 'js/easymde.min.js' %}"></script>
<script src="{% static 'js/interaction.js' %}"></script>
{% endblock %}
{% block js %}
{{ block.super }}
<script>
$(document).ready(function () {
setupMDE('.md-enabled');
});
</script>
{% endblock %}
{% block content %}
<div class="col">
@@ -43,7 +64,7 @@
<label for="{{ form.notes.id_for_label }}"
class="col-sm-2 control-label">{{ form.notes.label }}</label>
<div class="col-sm-10">
{% render_field form.notes class+="form-control" placeholder=form.notes.label %}
{% render_field form.notes class+="form-control md-enabled" placeholder=form.notes.label %}
</div>
</div>
{% if form.three_phase_available is not None %}