Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move Customer Notes to bigger card
michal16d8092c2d0b
diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex f847494522..87e1a7c8a0 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -69,7 +69,6 @@</a>{% endif %}</div>-</div><div class="card">@@ -125,6 +124,37 @@</div>{% endif %}</div>++ <div class="card">+ <div class="card-content">+ <span class="card-title">+ {% trans "Customer notes" context "Customer notes card title" %}+ </span>+ <div class="row">+ {% if notes %}+ <ul class="list">+ {% for note in notes %}+ <li class="list-item list-item--spaced">+ <small class="list-item-author">{{ note.user }} - {{ note.date }}</small>+ <p>{{ note.content }}</p>+ </li>+ {% endfor %}+ </ul>+ {% else %}+ <div>+ {% trans "There are no notes associated with this customer" context "Customer without notes message" %}+ </div>+ {% endif %}+ </div>+ </div>+ {% if perms.account.edit_user %}+ <div class="card-action">+ <a data-href="{% url "dashboard:customer-add-note" customer_pk=customer.pk %}" class="modal-trigger-custom btn-flat waves-effect" href="#base-modal">+ {% trans "Add note" context "Customer notes card action" %}+ </a>+ </div>+ {% endif %}+ </div></div>@@ -168,36 +198,6 @@</div></div></div>- <div class="col s12 m6 p6 l12">- <div class="card equal-height-on-med">- <div class="card-content">- <span class="card-title black-text">- {% trans "Customer notes" context "Customer notes card title" %}- </span>- {% if notes %}- <ul class="list">- {% for note in notes %}- <li class="list-item list-item--spaced">- <small class="list-item-author">{{ note.user }} - {{ note.date }}</small>- <p>{{ note.content }}</p>- </li>- {% endfor %}- </ul>- {% else %}- <div>- {% trans "There are no notes associated with this customer" context "Customer without notes message" %}- </div>- {% endif %}- {% if perms.account.edit_user %}- <div class="card-action">- <a data-href="{% url "dashboard:customer-add-note" customer_pk=customer.pk %}" class="modal-trigger-custom btn-flat waves-effect" href="#base-modal">- {% trans "Add note" context "Customer notes card action" %}- </a>- </div>- {% endif %}- </div>- </div>- </div></div></div></div>