jamesturk/django-markupfield

Render inside form-tools formwizard

Closed this issue · 3 comments

I'm using form-tools and I cannot seem to get the Markdown Field to show up on the page:

image

image

{% block formpart %}
    {{ form.errors }}
    <span class="title" style="font-size: 1.5em;">Name of <span class="highlight">The Project</span></span>
    <div class="formElems">
        {{ form.name|attr:"class:descript"|attr:"rows:5"|attr:"placeholder:Project Name" }}
    </div>
    <span class="title" style="font-size: 1.5em;">What are your <span class="highlight">Project Objectives?</span></span>
    <div class="formElems">
        {{ form.objective.rendered }}
    </div>
    <span class="title" style="font-size: 1.5em;">What is the <span class="highlight">Background</span> for your project?</span>
    <div class="formElems">
        {{ form.background|attr:"class:descript"|attr:"rows:5"|attr:"placeholder:Project Background" }}
    </div>
{% endblock %}

Sorry I'm not familiar with this library, you may want to just be using the
form instead of the . rendered property though. it might be helpful to try
to debug with Django debug toolbar or simply printing the field within your
view for more insight.

On Sep 16, 2016 17:18, "Aymon Fournier" notifications@github.com wrote:

I'm using form-tools https://github.com/django/django-formtools and I
cannot seem to get the Markdown Field to show up on the page:

[image: image]
https://cloud.githubusercontent.com/assets/1996089/18601558/88b99862-7c31-11e6-896c-41675cd52bca.png

[image: image]
https://cloud.githubusercontent.com/assets/1996089/18601574/9ad90eba-7c31-11e6-8cc1-befb749a3fae.png

{% block formpart %}
{{ form.errors }}
Name of The Project


{{ form.name|attr:"class:descript"|attr:"rows:5"|attr:"placeholder:Project Name" }}

What are your Project Objectives?

{{ form.objective.rendered }}

What is the Background for your project?

{{ form.background|attr:"class:descript"|attr:"rows:5"|attr:"placeholder:Project Background" }}
{% endblock %}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#41, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAAfYnSnoqezkHLSvtGeXxWtSKxfbbj1ks5qqwewgaJpZM4J_W83
.

pinging to see if this is still an issue

going to close this out for now