Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change red links to blue

Paweł Kowalewski516ba0403221
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index dcae7509ec..c15fe1b26a 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -37,7 +37,7 @@ class CapturePaymentForm(ManagePaymentForm):
def clean(self):
if self.payment.status != 'preauth':
raise forms.ValidationError(
- _('Only preauthorized payments can be captured'))
+ _('Only pre-authorized payments can be captured'))
def capture(self):
amount = self.cleaned_data['amount']
@@ -73,7 +73,7 @@ class ReleasePaymentForm(forms.Form):
def clean(self):
if self.payment.status != 'preauth':
raise forms.ValidationError(
- _('Only preauthorized payments can be released'))
+ _('Only pre-authorized payments can be released'))
def release(self):
try:
diff --git a/saleor/dashboard/templates/dashboard/order/modal_capture.html b/saleor/dashboard/templates/dashboard/order/modal_capture.html
index b1cc03e3d8..6d5a2d2f8c 100644
--- a/saleor/dashboard/templates/dashboard/order/modal_capture.html
+++ b/saleor/dashboard/templates/dashboard/order/modal_capture.html
@@ -11,7 +11,7 @@
<h5>{% trans "Capture payment" %}</h5>
<div class="row">
- {{ form.amount|materializecss }}
+ {{ form|materializecss }}
</div>
<h5>{% trans "Before this action" %}</h5>
diff --git a/saleor/dashboard/templates/dashboard/order/modal_refund.html b/saleor/dashboard/templates/dashboard/order/modal_refund.html
index aea4672e05..000ccba4ec 100644
--- a/saleor/dashboard/templates/dashboard/order/modal_refund.html
+++ b/saleor/dashboard/templates/dashboard/order/modal_refund.html
@@ -11,7 +11,7 @@
<h5>{% trans "Refund payment" %}</h5>
<div class="row">
- {{ form.amount|materializecss }}
+ {{ form|materializecss }}
</div>
<h5>{% trans "Before this action" %}</h5>
diff --git a/saleor/dashboard/templates/dashboard/order/modal_release.html b/saleor/dashboard/templates/dashboard/order/modal_release.html
index e966447911..c49e859b2e 100644
--- a/saleor/dashboard/templates/dashboard/order/modal_release.html
+++ b/saleor/dashboard/templates/dashboard/order/modal_release.html
@@ -11,9 +11,8 @@
<form id="release-form" method="post" role="form" class="form-async"
action="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}">
{% csrf_token %}
- <input type="hidden" name="{{ form.amount.name }}" value="0">
- <button type="submit" class="modal-action btn-flat red-text">{% trans "Release" %}</button>
+ <button type="submit" class="modal-action btn-flat blue-text">{% trans "Release" %}</button>
<a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>
</form>
</div>
diff --git a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html
index 6c970638e7..7d9fcf153e 100644
--- a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html
+++ b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html
@@ -40,7 +40,7 @@
</div>
<div class="card-action">
- <button type="submit" class="card-link red-text">{% trans "Delete" %}</button>
+ <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>
</div>
</div>
</div>
diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.html
index 066a7265f3..be528153c5 100644
--- a/saleor/dashboard/templates/dashboard/product/product_form.html
+++ b/saleor/dashboard/templates/dashboard/product/product_form.html
@@ -117,7 +117,7 @@
{% trans "Add" %}
</a>
- <a href="#modal-product-variant-delete" class="modal-trigger btn-data-table btn-show-when-checked red-text" hidden>
+ <a href="#modal-product-variant-delete" class="modal-trigger btn-data-table btn-show-when-checked blue-text" hidden>
{% trans "Delete" %}
</a>
@@ -199,7 +199,7 @@
{% trans "Add" %}
</a>
- <a href="#modal-product-stock-delete" class="modal-trigger btn-data-table btn-show-when-checked red-text" hidden>
+ <a href="#modal-product-stock-delete" class="modal-trigger btn-data-table btn-show-when-checked blue-text" hidden>
{% trans "Delete" %}
</a>
diff --git a/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html
index 9ba9dc5db9..ea3aa023c4 100644
--- a/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html
+++ b/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html
@@ -32,14 +32,14 @@
<div class="card">
<div class="card-content">
{% if is_only_variant %}
- <p class="red-text">{% trans 'This is the only variant. Deleting it will make the product unavailable for your customers.' %}</p>
+ <p>{% trans 'This is the only variant. Deleting it will make the product unavailable for your customers.' %}</p>
{% endif %}
<h5>{{ variant }}{% if variant.name %} {{ variant.name }}{% endif %} </h5>
</div>
<div class="card-action">
- <button type="submit" class="card-link red-text">{% trans "Delete" %}</button>
+ <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>
</div>
</li>
</ul>
diff --git a/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html
index 4e6c1a14f1..c94b13d591 100644
--- a/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html
+++ b/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html
@@ -37,7 +37,7 @@
</div>
<div class="card-action">
- <button type="submit" class="card-link red-text">{% trans "Delete" %}</button>
+ <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>
</div>
</div>
</div>