Django模板问题 [英] Django template issues

查看:118
本文介绍了Django模板问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我不知道我的模板有什么问题。我的模板被分解为3种类型的单选按钮:长,短,长和短当我点击每个单选按钮时,会出现一个表单。直到现在一切都还好。但我想用长短的单选按钮的形式,两个手风琴一个叫做长,另一个是短的。我不知道它不起作用的代码有什么问题。

两个手风琴没有出现在模板中



模板图片的链接是:

问题代码项目 - Imgur相册 [ ^ ]



我尝试过:



Hello i don't know what is the problem with my template. My template is decomposed into 3 types of radio buttons : Long, short, long and short When i click on each radio button a form appears. Till now everything is okay. But i want to put in the form of radio button "long and short", two accordions one is called long and the other is short. I don't know what is the problem with the code it didn't work.
The two accordions don't appear in the template

The link of the template picture is :
problem code project - Album on Imgur[^]

What I have tried:

<div id="tab3" class="tab">
 
  
  <section class="box">
   Long
   
   <div class="box-content">
    
            {% csrf_token %}

            {% include 'tags/parameters_form.html' %}
            <br>
            {% include 'tags/parameters_backtest_form.html' %}
            <br>
            {% include 'tags/parameters_filters_form.html' %}
            <br>
            {% if user.is_authenticated %}
            
              {% if user.profile.is_active %}
                    Name: {{ form.title }} 
              {% else %}
                    <p>Expired account! you need to reactivate in order to save parameters.</p>
              {% endif %}
                
         </div> 
        </section>    

            
      
            {% else %}
                                     Please <a href="%7B%25%20url%20'auth_login'%20%25%7D">login</a> in order to Run backtesting!
                 <br>
                 Our system needs your email in order to notify you once one or more of your simulations are done. This is a safer way for you to keep track of your previous simulations (/jobs).   

            {% endif %}
         
       </div>

推荐答案

问题代码项目 - Imgur专辑 [ ^ ]


这篇关于Django模板问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆