Opened 5 years ago

Closed 5 years ago

#31457 closed Cleanup/optimization (invalid)

Docker container django html page was {{form.first_name}}.

Reported by: javvadigihub Owned by: nobody
Component: Template system Version: 3.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mariusz Felisiak)

Hi team,

Sign-Up Page Form Template was not rendering ({{form.first_name.label}{{form.first_name}}) labels was not rendering .

While using django in testing env, the form template was working, this is image was trying to re-deploy in docker getting error.

Html template was not responding.

======================================Signup====================================

{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Sign Up Form</title>
  <!-- Font Icon -->
  <link rel="stylesheet" href="{% static 'fonts/material-icon/css/material-design-iconic-font.min.css' %}">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

  <!-- Main css -->
  <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>


  <div class="container">
    <!-- Sign up form -->
    <section class="signup">
      <div class="signup-content">
        <div class="signup-form">
          <h2 class="form-title">Sign up</h2>
          <form method="POST" class="register-form" id="register-form">
            {% csrf_token %}
            <div class="form-group">
              <label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>
              {{form.first_name.label}}
              {{form.first_name}}
            </div>
            <div class="form-group">
              <label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>
              {{form.last_name.label}}
              {{form.last_name}}
            </div>
            <div class="form-group">
              <label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>
              {{form.username.label}}
              {{form.username}}
            </div>
            <div class="form-group">
              <label for="email"><i class="zmdi zmdi-email"></i></label>
              {{form.email.label}}
              {{form.email}}
            </div>
            <div class="form-group">
              <label for="pass"><i class="zmdi zmdi-lock"></i></label>
              {{form.password1.label}}
              {{form.password1}}
            </div>
            <div class="form-group">
              <label for="re-pass"><i class="zmdi zmdi-lock-outline"></i></label>
              {{form.password2.label}}
              {{form.password2}}
            </div>
            <div class="form-group form-button">
              <input type="submit" name="signup" id="signup" class="form-submit" value="Signup"/>
              <a href="{% url 'login' %}"></a>

            </div>
          </form>
        </div>

        {{form.errors}}

        <div class="signup-image">
          <figure><img src="{% static 'images/signup-image.jpg' %}" alt="sing up image"></figure>
            <a href="{% url 'login' %}" class="signup-image-link">I am already member 👍</a>
        </div>
      </div>
    </section>
  </div>

  <!-- JS -->
  <script src="{% static 'vendor/jquery/jquery.min.js' %} "></script>
  <script src="{% static 'js/main.js' %} "></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>

===========================================================================

Attachments (2)

register.html (3.1 KB ) - added by javvadigihub 5 years ago.
forms.py (456 bytes ) - added by javvadigihub 5 years ago.

Download all attachments as: .zip

Change History (4)

by javvadigihub, 5 years ago

Attachment: register.html added

by javvadigihub, 5 years ago

Attachment: forms.py added

comment:1 by javvadigihub, 5 years ago

Type: UncategorizedCleanup/optimization

comment:2 by Mariusz Felisiak, 5 years ago

Description: modified (diff)
Resolution: invalid
Severity: Release blockerNormal
Status: newclosed
Summary: docker container django html page was {{form.first_name}}Docker container django html page was {{form.first_name}}.
UI/UX: unset

Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top