mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-17 02:10:45 +02:00
first commit
This commit is contained in:
0
foundation/templates/__init__.py
Normal file
0
foundation/templates/__init__.py
Normal file
0
foundation/templates/generators/__init__.py
Normal file
0
foundation/templates/generators/__init__.py
Normal file
43
foundation/templates/generators/portal_job.html
Normal file
43
foundation/templates/generators/portal_job.html
Normal file
@@ -0,0 +1,43 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% from "foundation/templates/includes/macros.html" import media %}
|
||||
|
||||
{% block page_content %}
|
||||
<p><a href="/jobs">All ERPNext Jobs</a></p>
|
||||
<h1>{{ title }}</h1>
|
||||
{% if frappe.user == owner %}
|
||||
<p><a class='btn btn-primary btn-sm' href="/my-jobs?name={{ name }}">Edit Job</a></p>
|
||||
{% endif %}
|
||||
<br>
|
||||
<table class='table table-bordered small' style='max-width: 400px; margin-bottom: 0px;'>
|
||||
<tr>
|
||||
<td style='width: 38.2%'>Company Name</td>
|
||||
<td>{{ company_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Job Type</td>
|
||||
<td>{{ job_type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Country</td>
|
||||
<td>{{ country }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h3>Details</h3>
|
||||
<p>{{ description }}</p>
|
||||
<h3>Contact</h3>
|
||||
{% if is_member %}
|
||||
<table class='table table-bordered small' style='max-width: 400px; margin-bottom: 0px;'>
|
||||
<tr>
|
||||
<td style='width: 38.2%'>Email</td>
|
||||
<td>{{ owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phone (optional)</td>
|
||||
<td>{{ contact_number }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% else %}
|
||||
<p><a class='green-btn button' href="/membership">Become an ERPNext Foundation member to view contact details</a></p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
52
foundation/templates/generators/service_provider.html
Normal file
52
foundation/templates/generators/service_provider.html
Normal file
@@ -0,0 +1,52 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% from "foundation/templates/includes/macros.html" import media %}
|
||||
|
||||
{% block page_content %}
|
||||
<section>
|
||||
<h1 class="media-heading">{{ title }}</h1>
|
||||
<p><a href="/service-providers?country={{ country }}">
|
||||
All ERPNext Serivce Providers in {{ country }}</a></p>
|
||||
<div class="media" style="margin: 45px 0px; ">
|
||||
<div class="media-left">
|
||||
<a href="#">
|
||||
<img class="media-object"
|
||||
src="{{ image }}"
|
||||
style="width: 80px; height: 80px; max-width: 80px; ">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
{{ introduction }}
|
||||
</div>
|
||||
</div>
|
||||
<table class='table table-bordered small' style='max-width: 400px; margin-bottom: 0px;'>
|
||||
<tr>
|
||||
<td style='width: 38.2%'>Country</td>
|
||||
<td>{{ country }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Address</td>
|
||||
<td>{{ address.replace('\n', '<br>') }}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<td>Phone</td>
|
||||
<td>{{ phone }}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<td>Email</td>
|
||||
<td><a href="mailto:{{ email }}" target="_blank">{{ email }}</a></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<td>Website</td>
|
||||
<td><a href="{{ website }}" target="_blank">{{ website }}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section>
|
||||
{{ details }}
|
||||
</section>
|
||||
<section>
|
||||
<p><a class='green-btn button' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
17
foundation/templates/includes/macros.html
Normal file
17
foundation/templates/includes/macros.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% macro media(title, content, image, link) %}
|
||||
<div class="media"
|
||||
style="margin: 45px 0px; {% if link %}cursor: pointer;{% endif %}"
|
||||
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
|
||||
<div class="media-left">
|
||||
<a href="{{ link or "#" }}">
|
||||
<img class="media-object"
|
||||
src="{% if image %}{% if not '/' in image %}/assets/foundation/img/{% endif %}{{ image }}{% else %}/assets/foundation/img/frappe-bird-grey.svg{% endif %}"
|
||||
style="width: 64px; height: 64px; max-width: 64px; {% if image and not '/' in image %}opacity: 0.4{% endif %}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
{% if title %}<h4 class="media-heading">{{ title }}</h4>{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
5
foundation/templates/includes/portal_job.html
Normal file
5
foundation/templates/includes/portal_job.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div style='margin-bottom: 30px; max-width: 600px;'>
|
||||
<a href="/{{ doc.route }}"><h3>{{ doc.title }}</h3></a>
|
||||
<p class='text-muted small'>{{ doc.country }} | {{ doc.job_type }}</p>
|
||||
<p>{{ html2text(doc.description[:200]) }}{% if doc.description|len > 200 %}...{% endif %}</p>
|
||||
</div>
|
||||
0
foundation/templates/pages/__init__.py
Normal file
0
foundation/templates/pages/__init__.py
Normal file
Reference in New Issue
Block a user