chore: whitespace cleanup from codebase

This commit is contained in:
Ankush Menat
2021-08-19 14:33:03 +05:30
parent e536f6d13f
commit 9bb69e711a
1218 changed files with 1391 additions and 1643 deletions

View File

@@ -22,4 +22,4 @@
<span>{{ reminder_text }}</span>
<p class="text-muted">{{ message }}</p>
</div>
</div>
</div>

View File

@@ -43,4 +43,4 @@
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr height="20"></tr>
</table>
{% endfor %}
{% endfor %}

View File

@@ -52,4 +52,4 @@
</div>
</tr>
</table>
{% endif %}
{% endif %}

View File

@@ -21,4 +21,4 @@
</button>
</p>
{% endif %}
{% endif %}

View File

@@ -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>

View File

@@ -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 %}

View File

@@ -74,4 +74,4 @@ frappe.ready(() => {
d.show();
});
});
});

View File

@@ -11,4 +11,4 @@
</table>
</div>
</div>
{%- endif %}
{%- endif %}

View File

@@ -159,4 +159,4 @@
});
});
</script>
{% endblock %}
{% endblock %}

View File

@@ -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 %}

View File

@@ -14,7 +14,7 @@
{%- if introduction -%}
<div>{{ introduction }}</div>
{% endif %}
{% endif %}
{%- if doc.enable_admission_application -%}
<p>

View File

@@ -9,4 +9,4 @@
</p>
<a href="/addresses?name={{address.name}}" class="card-link">{{ _('Edit') }}</a>
</div>
</div>
</div>

View File

@@ -1,4 +1,3 @@
<div class="mb-3 frappe-card p-5" data-section="shipping-address">
<h6>{{ _("Shipping Address") }}</h6>
</div>

View File

@@ -9,4 +9,4 @@
{{ d.get_formatted("amount") }}
</div>
</div>
{% endfor %}
{% endfor %}

View File

@@ -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 %}

View File

@@ -43,4 +43,4 @@
{% endfor %}
</tbody>
</table>
</div>
</div>

View File

@@ -120,4 +120,4 @@
{% endif %}
</div>
<a href="/{{ url or '#' }}" class="stretched-link"></a>
{%- endmacro -%}
{%- endmacro -%}

View File

@@ -9,4 +9,4 @@
<span class="badge badge-primary cart-badge" id="cart-count"></span>
</a>
</li>
{% endblock %}
{% endblock %}

View File

@@ -40,4 +40,4 @@
</div>
</div>
</div>
{% endmacro %}
{% endmacro %}

View File

@@ -86,4 +86,4 @@
.progress-hg{
margin-bottom: 30!important;
height:2px;
}
}

View File

@@ -27,4 +27,4 @@ frappe.ready(function() {
});
$(".form-search").on("submit", function() { return false; });
});
</script>
</script>

View File

@@ -16,4 +16,4 @@
</tr>
{% endfor %}
</tbody>
</table>
</table>

View File

@@ -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>

View File

@@ -1,2 +1,2 @@
<div>{{doc.terms}}</div>
<div>{{doc.terms}}</div>

View File

@@ -8,4 +8,4 @@
<p class="post-description"> {{ intro }} </p>
{% endblock %}
{% endblock %}

View File

@@ -17,4 +17,3 @@ def get_context(context):
context.doc = course
context.sidebar_title = sidebar_title
context.intro = course.course_intro

View File

@@ -6,4 +6,4 @@
padding: 10rem 0;
}
{% endif %}
/* csslint ignore:end */
/* csslint ignore:end */

View File

@@ -72,4 +72,4 @@
{{ render_homepage_section(section) }}
{% endfor %}
</main>
{% endblock %}
{% endblock %}

View File

@@ -13,4 +13,4 @@
<span class='gocardless-loading'>{{ _("Loading Payment System") }}</span>
</p>
{% endblock %}
{% endblock %}

View File

@@ -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'}

View File

@@ -13,4 +13,4 @@
<span class='gocardless-loading'>{{ _("Payment Confirmation") }}</span>
</p>
{% endblock %}
{% endblock %}

View File

@@ -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())

View File

@@ -71,4 +71,4 @@
{% endfor %}
</div>
</div>
{% endblock %}
{% endblock %}

View File

@@ -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

View File

@@ -56,4 +56,4 @@
{% endif %}
{% endblock %}
{% endblock %}

View File

@@ -39,4 +39,4 @@
});
})
</script>
{% endblock %}
{% endblock %}

View File

@@ -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)

View File

@@ -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]

View File

@@ -117,4 +117,4 @@ frappe.ready(function() {
})
return false;
}
});
});

View File

@@ -147,4 +147,4 @@
});
</script>
{% endblock %}
{% endblock %}

View File

@@ -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

View File

@@ -45,4 +45,4 @@
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@@ -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

View File

@@ -12,4 +12,3 @@
{%- endif %}
{{ doc.get_formatted("qty", doc) }}
{%- endif %}