mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
chore: whitespace cleanup from codebase
This commit is contained in:
@@ -22,4 +22,4 @@
|
||||
<span>{{ reminder_text }}</span>
|
||||
<p class="text-muted">{{ message }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -43,4 +43,4 @@
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr height="20"></tr>
|
||||
</table>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -52,4 +52,4 @@
|
||||
</div>
|
||||
</tr>
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
</button>
|
||||
</p>
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<h4>{{_("Update Response")}}</h4>
|
||||
{% if not self_study %}
|
||||
<p>{{_("Please update your status for this training event")}}:</p>
|
||||
<form action="{{ confirm_link }}"><input style="display:inline-block" type="submit" value="Confirm Attendance" /></form>
|
||||
<form action="{{ confirm_link }}"><input style="display:inline-block" type="submit" value="Confirm Attendance" /></form>
|
||||
<form action="{{ reject_link }}"><input style="display:inline-block" type="submit" value="Reject Invitation" /></form>
|
||||
{% else %}
|
||||
<p>{{_("Please confirm once you have completed your training")}}:</p>
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
<script type="text/javascript" src="/assets/js/control.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/dialog.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/bootstrap-4-web.min.js"></script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -74,4 +74,4 @@ frappe.ready(() => {
|
||||
|
||||
d.show();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
@@ -159,4 +159,4 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -14,17 +14,17 @@
|
||||
<div>{{ description }}</div>
|
||||
{% endif %}
|
||||
|
||||
{%- if publish_salary_range -%}
|
||||
{%- if publish_salary_range -%}
|
||||
<div><b>{{_("Salary range per month")}}: </b>{{ frappe.format_value(frappe.utils.flt(lower_range), currency=currency) }} - {{ frappe.format_value(frappe.utils.flt(upper_range), currency=currency) }}</div>
|
||||
{% endif %}
|
||||
|
||||
<p style='margin-top: 30px'>
|
||||
{%- if job_application_route -%}
|
||||
<a class='btn btn-primary'
|
||||
<a class='btn btn-primary'
|
||||
href='/{{job_application_route}}?new=1&job_title={{ doc.name }}'>
|
||||
{{ _("Apply Now") }}</a>
|
||||
{% else %}
|
||||
<a class='btn btn-primary'
|
||||
<a class='btn btn-primary'
|
||||
href='/job_application?new=1&job_title={{ doc.name }}'>
|
||||
{{ _("Apply Now") }}</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
{%- if introduction -%}
|
||||
<div>{{ introduction }}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{%- if doc.enable_admission_application -%}
|
||||
<p>
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
</p>
|
||||
<a href="/addresses?name={{address.name}}" class="card-link">{{ _('Edit') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<div class="mb-3 frappe-card p-5" data-section="shipping-address">
|
||||
<h6>{{ _("Shipping Address") }}</h6>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
{{ d.get_formatted("amount") }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{% macro back_link(doc) %}&back-to=/courses?course={{ doc.name }}&back-to-title={{ doc.course_name }}{% endmacro %}
|
||||
{% macro back_link(doc) %}&back-to=/courses?course={{ doc.name }}&back-to-title={{ doc.course_name }}{% endmacro %}
|
||||
|
||||
@@ -43,4 +43,4 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -120,4 +120,4 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="/{{ url or '#' }}" class="stretched-link"></a>
|
||||
{%- endmacro -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
<span class="badge badge-primary cart-badge" id="cart-count"></span>
|
||||
</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -40,4 +40,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -86,4 +86,4 @@
|
||||
.progress-hg{
|
||||
margin-bottom: 30!important;
|
||||
height:2px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,4 @@ frappe.ready(function() {
|
||||
});
|
||||
$(".form-search").on("submit", function() { return false; });
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="web-list-item">
|
||||
<div class="web-list-item">
|
||||
<div class="row">
|
||||
<a href = "/topics?topic={{ doc.name }}">
|
||||
<div class="col-xs-12">
|
||||
@@ -6,4 +6,4 @@
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
|
||||
<div>{{doc.terms}}</div>
|
||||
<div>{{doc.terms}}</div>
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
|
||||
<p class="post-description"> {{ intro }} </p>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -17,4 +17,3 @@ def get_context(context):
|
||||
context.doc = course
|
||||
context.sidebar_title = sidebar_title
|
||||
context.intro = course.course_intro
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
padding: 10rem 0;
|
||||
}
|
||||
{% endif %}
|
||||
/* csslint ignore:end */
|
||||
/* csslint ignore:end */
|
||||
|
||||
@@ -72,4 +72,4 @@
|
||||
{{ render_homepage_section(section) }}
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
<span class='gocardless-loading'>{{ _("Loading Payment System") }}</span>
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -74,4 +74,4 @@ def check_mandate(data, reference_doctype, reference_docname):
|
||||
|
||||
except Exception as e:
|
||||
frappe.log_error(e, "GoCardless Payment Error")
|
||||
return {"redirect_to": '/integrations/payment-failed'}
|
||||
return {"redirect_to": '/integrations/payment-failed'}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
<span class='gocardless-loading'>{{ _("Payment Confirmation") }}</span>
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -86,4 +86,4 @@ def create_mandate(data):
|
||||
}).insert(ignore_permissions=True)
|
||||
|
||||
except Exception:
|
||||
frappe.log_error(frappe.get_traceback())
|
||||
frappe.log_error(frappe.get_traceback())
|
||||
|
||||
@@ -71,4 +71,4 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -19,7 +19,7 @@ def get_context(context):
|
||||
|
||||
if not frappe.has_website_permission(context.doc):
|
||||
frappe.throw(_("Not Permitted"), frappe.PermissionError)
|
||||
|
||||
|
||||
default_print_format = frappe.db.get_value('Property Setter', dict(property='default_print_format', doc_type=frappe.form_dict.doctype), "value")
|
||||
if default_print_format:
|
||||
context.print_format = default_print_format
|
||||
@@ -45,5 +45,5 @@ def get_more_items_info(items, material_request):
|
||||
item.delivered_qty = flt(frappe.db.sql("""select sum(transfer_qty)
|
||||
from `tabStock Entry Detail` where material_request = %s
|
||||
and item_code = %s and docstatus = 1""",
|
||||
(material_request, item.item_code))[0][0])
|
||||
return items
|
||||
(material_request, item.item_code))[0][0])
|
||||
return items
|
||||
|
||||
@@ -56,4 +56,4 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -39,4 +39,4 @@
|
||||
});
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -32,9 +32,9 @@ def get_context(context):
|
||||
|
||||
if not frappe.has_website_permission(context.doc):
|
||||
frappe.throw(_("Not Permitted"), frappe.PermissionError)
|
||||
|
||||
|
||||
# check for the loyalty program of the customer
|
||||
customer_loyalty_program = frappe.db.get_value("Customer", context.doc.customer, "loyalty_program")
|
||||
customer_loyalty_program = frappe.db.get_value("Customer", context.doc.customer, "loyalty_program")
|
||||
if customer_loyalty_program:
|
||||
from erpnext.accounts.doctype.loyalty_program.loyalty_program import get_loyalty_program_details_with_points
|
||||
loyalty_program_details = get_loyalty_program_details_with_points(context.doc.customer, customer_loyalty_program)
|
||||
|
||||
@@ -47,4 +47,3 @@ def get_product_list(search=None, start=0, limit=12):
|
||||
set_product_info_for_website(item)
|
||||
|
||||
return [get_item_for_list_in_html(r) for r in data]
|
||||
|
||||
|
||||
@@ -117,4 +117,4 @@ frappe.ready(function() {
|
||||
})
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -147,4 +147,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,8 +7,8 @@ def get_context(context):
|
||||
context.no_cache = 1
|
||||
|
||||
task = frappe.get_doc('Task', frappe.form_dict.task)
|
||||
|
||||
|
||||
context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'},
|
||||
fields=['subject', 'sender_full_name', 'communication_date'])
|
||||
|
||||
context.doc = task
|
||||
|
||||
context.doc = task
|
||||
|
||||
@@ -45,4 +45,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,5 +7,5 @@ def get_context(context):
|
||||
context.no_cache = 1
|
||||
|
||||
timelog = frappe.get_doc('Time Log', frappe.form_dict.timelog)
|
||||
|
||||
context.doc = timelog
|
||||
|
||||
context.doc = timelog
|
||||
|
||||
@@ -12,4 +12,3 @@
|
||||
{%- endif %}
|
||||
{{ doc.get_formatted("qty", doc) }}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user