From 3cd22f05d254c15a5e225cd98ea2943836b616a2 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Wed, 29 Nov 2023 11:39:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8F=90=E7=A4=BA=E6=B6=88=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/tickets/_msg_ticket.html | 33 ++-- .../tickets/approve_check_password.html | 144 +++++++++++++----- 2 files changed, 117 insertions(+), 60 deletions(-) diff --git a/apps/tickets/templates/tickets/_msg_ticket.html b/apps/tickets/templates/tickets/_msg_ticket.html index f26d17e5f..b781e1738 100644 --- a/apps/tickets/templates/tickets/_msg_ticket.html +++ b/apps/tickets/templates/tickets/_msg_ticket.html @@ -1,34 +1,31 @@ {% load i18n %}
-

+

{{ title | safe }} -

+

{% for child in content %} -

{{ child.title }}

- {% for item in child.content %} -
  • - {{ item.title }} - {{ item.value }} -
  • - {% endfor %} +
    +

    {{ child.title }}

    + {% for item in child.content %} +

    + {{ item.title }}: + {{ item.value }} +

    + {% endfor %} +
    {% endfor %}
    -
    -
    - + +
    diff --git a/apps/tickets/templates/tickets/approve_check_password.html b/apps/tickets/templates/tickets/approve_check_password.html index fe256bc1c..b82ef76cc 100644 --- a/apps/tickets/templates/tickets/approve_check_password.html +++ b/apps/tickets/templates/tickets/approve_check_password.html @@ -5,55 +5,115 @@ {% block content %} -
    -
    -
    -

    {% trans 'Ticket information' %}

    -

    -
    +
    +
    +
    +

    {% trans 'Ticket information' %}

    {% for child in content %} -

    {{ child.title }}

    -
    - {% for item in child.content %} -
  • - {{ item.title }}: {{ item.value }} -
  • - {% endfor %} +
    +

    {{ child.title }}

    + {% for item in child.content %} +

    + {{ item.title }}: + {{ item.value }} +

    + {% endfor %} +
    {% endfor %}
    -
    -
    -
    - -

    {% trans 'Ticket approval' %}

    -

    +
    -

    - {% trans 'Hello' %} {{ user.name }}, -

    -

    - {{ prompt_msg }} -

    -
    -
    - {% csrf_token %} -
    - - -
    -
    + +

    {% trans 'Ticket approval' %}

    +

    +
    +

    + {% trans 'Hello' %} {{ user.name }}, +

    +

    + {{ prompt_msg }} +

    +
    +
    + {% csrf_token %} +
    + + +
    +
    +
    -
    - + .ticket-container { + flex-shrink: 0; + border-radius: 4px; + background: #FFF; + font-style: normal; + font-weight: 400; + line-height: 24px; /* 150% */ + + + .card { + .child_title { + padding-top: 16px; + margin: 0 0 12px 16px; + display: inline-flex; + flex-direction: column; + align-items: flex-start; + color: #1F2329; + font-size: 16px; + font-style: normal; + font-weight: 500; + } + + @media (max-width: 400px) { + margin: 8px + } + margin: 24px 0 0 24px; + width: 95%; + display: inline-block; + border-radius: 4px; + background: #F5F6F7; + } + + .card:last-child { + margin-bottom: 24px; + } + + .field-group { + font-size: 14px; + padding-inline-start: 0; + margin: 0; + width: 95%; + + .field-name { + margin: 4px 0 4px 16px; + color: #646A73; + display: inline-block; + + :is(strong) { + font-weight: 400 !important; + } + } + + .field-value { + color: #1F2329; + display: inline-block; + } + } + } + {% endblock %}