Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Put the order details notes inside the notes container
NyanKiyoshi63df6bd7f9a7
diff --git a/templates/order/details.html b/templates/order/details.htmlindex 84ece277be..372acf5cc4 100644--- a/templates/order/details.html+++ b/templates/order/details.html@@ -62,43 +62,43 @@{% endif %}{% endif %}{% include "order/_ordered_items_table.html" %}- {% if notes %}- <h2 class="order-notes__header">{% trans "Notes" context "Order notes list" %}</h2>- {% for note in notes %}- <small>- {% if note.user %}- {% if note.user == user %}- {% blocktrans with date=note.date %}- {{ date }} by you- {% endblocktrans %}- {% elif note.user.is_staff %}- {% trans 'staff' context 'Order note author is staff' as note_author_staff %}- {% blocktrans with author=note_author_staff date=note.date %}- {{ date }} by <span class="text-muted">{{ author }}</span>- {% endblocktrans %}- {% else %}- {% blocktrans with author=note.user date=note.date %}- {{ date }} by {{ author }}- {% endblocktrans %}- {% endif %}- {% else %}+ <div class="order-notes">+ {% if notes %}+ <h2 class="order-notes__header">{% trans "Notes" context "Order notes list" %}</h2>+ {% for note in notes %}+ <small>+ {% if note.user %}+ {% if note.user == user %}{% blocktrans with date=note.date %}- {{ date }} by anonymous customer+ {{ date }} by you+ {% endblocktrans %}+ {% elif note.user.is_staff %}+ {% trans 'staff' context 'Order note author is staff' as note_author_staff %}+ {% blocktrans with author=note_author_staff date=note.date %}+ {{ date }} by <span class="text-muted">{{ author }}</span>+ {% endblocktrans %}+ {% else %}+ {% blocktrans with author=note.user date=note.date %}+ {{ date }} by {{ author }}{% endblocktrans %}{% endif %}- </small>- <p>{{ note.content }}</p>- {% endfor %}- {% endif %}+ {% else %}+ {% blocktrans with date=note.date %}+ {{ date }} by anonymous customer+ {% endblocktrans %}+ {% endif %}+ </small>+ <p>{{ note.content }}</p>+ {% endfor %}+ {% endif %}{% if order.is_open %}- <div class="order-notes">- <form method="post" class="form-group">- {% csrf_token %}- {% bootstrap_form note_form display_labels=False %}- <input type="submit" value="Submit" class="btn primary" />- </form>- </div>+ <form method="post" class="form-group">+ {% csrf_token %}+ {% bootstrap_form note_form display_labels=False %}+ <input type="submit" value="Submit" class="btn primary" />+ </form>{% endif %}+ </div></div></div>{% endblock content %}