mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 23:42:14 +00:00
Markdown enable generic note fields
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user