migrated the templates to frappe_theme

- now org requires frappe_theme (see hooks.py)
- footer is kept in templates since io and org have different footer
This commit is contained in:
Raghavendra Kamath
2018-04-27 12:01:08 +05:30
parent 46032b2d75
commit a933345755
32 changed files with 6 additions and 4123 deletions

View File

@@ -36,7 +36,7 @@ web_include_css = "/assets/foundation/css/style.css"
# application home page (will override Website Settings)
home_page = "index"
template_apps = ['foundation', 'erpnext', 'frappe']
template_apps = ['foundation', 'frappe_theme', 'erpnext', 'frappe']
website_context = {
# "navbar_search": 1,
"brand_html": "<img class='mr-1 d-inline-block align-top' width='30px' height='30px' src='/assets/foundation/img/erpnext-logo.svg' alt='Oensource ERP Software'/>ERPNext.org",

File diff suppressed because it is too large Load Diff

View File

@@ -1,367 +0,0 @@
/*!
* this reset is a copy of bootstrap's reboot.css which is inturn a fork of normalise*
*
*
* Bootstrap Reboot v4.0.0-beta.3 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
line-height: 1.62;
font-size: 14px;
}
@media screen and (min-width: 1199px) {
html {
font-size: 16px;
}
}
@-ms-viewport {
width: device-width;
}
article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
display: block;
}
body {
margin: 0;
font-weight: 400;
text-align: left;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", "Noto", "Oxygen-Sans", "Noto Sans", "Ubuntu", "Cantarell", sans-serif, "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: #36414c;
font-feature-settings: "kern" 1;
font-kerning: normal;
text-rendering: optimizeLegibility;
}
[ tabindex = "-1" ]:focus {
outline: 0;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 1rem;
margin-top: 0;
font-weight: 500;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[ title ],
abbr[ data-original-title ] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
dfn {
font-style: italic;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
a {
text-decoration: none;
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
a:hover {
text-decoration: underline;
}
a:not([ href ]):not([ tabindex ]) {
text-decoration: none;
}
a:not([ href ]):not([ tabindex ]):focus,
a:not([ href ]):not([ tabindex ]):hover {
text-decoration: none;
}
a:not([ href ]):not([ tabindex ]):focus {
outline: 0;
}
pre,
code,
kbd,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
max-width: 100%;
border-radius: 0.25em;
}
svg:not(:root) {
overflow: hidden;
}
a,
area,
button,
[ role = "button" ],
input:not([ type = "range" ]),
label,
select,
summary,
textarea {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: none;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: 0.5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}

View File

@@ -1,159 +0,0 @@
.navbar {
padding: 0.5rem 0;
}
.media-img {
max-width: 150px;
}
.stars {
width: 125px;
}
.breadcrumb {
background-color: #fff;
margin: 0 -1rem;
}
img,
.img {
max-width: 100%;
}
/* avatar */
.avatar {
display: inline-block;
vertical-align: middle;
width: 50px;
height: 50px;
}
.avatar-frame {
display: inline-block;
width: 100%;
height: 0;
padding: 50% 0;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
border-radius: 4px;
}
.avatar img {
max-width: 100%;
max-height: 100%;
border-radius: 4px;
}
.avatar-empty {
border: 1px dashed #d1d8dd;
border-radius: 4px;
}
.avatar-small {
margin-right: 5px;
width: 24px;
height: 24px;
}
.avatar-small .standard-image {
font-size: 14px;
}
.avatar-small .avatar-frame {
border-radius: 3px;
}
.avatar-medium {
margin-right: 5px;
width: 36px;
height: 36px;
}
.avatar-medium .standard-image {
font-size: 18px;
}
.avatar-large {
margin-right: 10px;
width: 72px;
height: 72px;
}
.avatar-large .standard-image {
font-size: 36px;
}
.avatar-xl {
margin-right: 10px;
width: 108px;
height: 108px;
}
.avatar-xl .standard-image {
font-size: 72px;
}
.avatar-xs {
margin-right: 3px;
margin-top: -2px;
width: 17px;
height: 17px;
border: none;
border-radius: 3px;
}
.avatar-xs .standard-image {
font-size: 9px;
}
.avatar-text {
display: inline;
width: 100%;
height: 0;
padding-bottom: 100%;
}
.standard-image {
width: 100%;
height: 0;
padding: 50% 0;
display: inline-block;
text-align: center;
border-radius: 4px;
font-size: 14px;
line-height: 0;
color: #d1d8dd;
border: 1px solid #d1d8dd;
font-weight: normal;
margin-top: -1px;
}
/* comments */
.comment-header {
border-bottom: 1px solid #ebeff2;
padding: 30px 0 15px;
}
.comment-row {
margin: 0 -15px;
padding: 15px;
}
.pull-right {
float: right;
}
.inline-block {
display: inline-block;
}
.comment-row h6 {
font-size: 0.75rem;
}
.hidden {
display:none;
}

View File

@@ -1,219 +0,0 @@
/*utilities*/
.align-items-center {
align-items: center;
}
.hide,
.hidden {
display: none;
visibility: hidden;
}
.top-zero {
margin-top: 0;
}
.bottom-zero {
margin-bottom: 0;
}
.top-spacer {
margin-top: 2.5rem;
}
.bottom-spacer {
margin-bottom: 2.5rem;
}
.top-spacer-4 {
margin-top: 4rem;
}
.bottom-spacer-4 {
margin-bottom: 4rem;
}
.gray-bg {
background-color: @light-bg;
}
.dark-bg {
background-color: @text-dark;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-muted {
color: @text-muted;
}
.text-light {
color: @text-light;
}
.text-white {
color: #fff;
}
.text-normal {
font-size: 1rem;
}
.text-medium {
font-size: 1.5rem;
}
.text-small {
font-size: 0.5rem;
}
.centered {
margin-left: auto;
margin-right: auto;
}
.bold {
font-weight: bold;
}
.list-unstyled {
padding: 0;
li {
list-style: none;
}
}
.list-circle {
list-style: circle;
}
.bullet {
&::before {
content: "\2022";
display: inline-block;
width: 1em;
font-size: 1.25rem;
}
}
.half-width {
max-width: 50%;
}
.border {
border: @border;
}
.border-top {
border-top: @border;
}
.border-top-light {
border-top: @border-light;
}
.saturate {
filter: grayscale(100%);
&:hover {
filter: grayscale(0%);
}
}
/* colors */
.green-bullet {
&::before {
color: @indicator-green;
}
}
/* components */
.grid-of-four,
.grid-of-three {
grid-gap: 2.5rem;
display: grid;
}
.grid-of-four {
grid-template-columns: repeat(1, 1fr);
@media screen and (min-width: @screen-palm) {
grid-template-columns: repeat(2, 1fr);
}
@media screen and (min-width: @screen-xs) {
grid-template-columns: repeat(3, 1fr);
}
@media screen and (min-width: @screen-sm) {
grid-template-columns: repeat(4, 1fr);
}
}
.grid-of-three {
grid-template-columns: repeat(1, 1fr);
@media screen and (min-width: @screen-palm) {
grid-template-columns: repeat(2, 1fr);
}
@media screen and (min-width: @screen-xs) {
grid-template-columns: repeat(3, 1fr);
}
}
.columns {
display: flex;
justify-content: space-between;
flex-direction: column;
@media screen and (min-width: @screen-xs) {
flex-direction: inherit;
}
}
.column {
margin-bottom: 1rem;
@media screen and (min-width: @screen-xs) {
margin: 0;
}
}
.three-column {
max-width: 100%;
@media screen and (min-width: @screen-xs) {
max-width: 33%;
}
}
.copyright {
font-size: 1rem;
@media screen and (min-width: @screen-xs) {
font-size: 0.75rem;
}
}
.flex-wrap {
flex-wrap: wrap;
justify-content: flex-start;
}
.grid-center {
justify-items: center;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,88 +0,0 @@
@import "../../../../frappe/frappe/public/less/variables.less";
.indicator,
.indicator-right {
background: none;
font-size: 12px;
vertical-align: middle;
font-weight: bold;
color: #6c7680;
}
.indicator::before,
.indicator-right::after {
content: "";
display: inline-block;
height: 8px;
width: 8px;
border-radius: 8px;
}
.indicator::before {
margin: 0 4px 0 0;
}
.indicator-right::after {
margin: 0 0 0 4px;
}
.indicator.grey::before,
.indicator-right.grey::after {
background: @btn-bg;
}
.indicator.blue::before,
.indicator-right.blue::after {
background: @indicator-blue;
}
.indicator.red::before,
.indicator-right.red::after {
background: @indicator-red;
}
.indicator.green::before,
.indicator-right.green::after {
background: @indicator-green;
}
.indicator.orange::before,
.indicator-right.orange::after {
background: @indicator-orange;
}
.indicator.purple::before,
.indicator-right.purple::after {
background: @indicator-purple;
}
.indicator.darkgrey::before,
.indicator-right.darkgrey::after {
background: @indicator-darkgrey;
}
.indicator.black::before,
.indicator-right.black::after {
background: @text-color;
}
.indicator.yellow::before,
.indicator-right.yellow::after {
background: @indicator-yellow;
}
.indicator.light-blue::before,
.indicator-right.light-blue::after {
background: @indicator-light-blue;
}
.indicator.lightblue::before,
.indicator-right.lightblue::after {
background: @indicator-light-blue;
}
.modal-header .indicator {
float: left;
margin-top: 7.5px;
margin-right: 3px;
}

View File

@@ -1,13 +0,0 @@
@import "../../../../frappe/frappe/public/less/variables.less";
@brand-primary: #7575ff;
@screen-sm-min: 768px;
@screen-xs-max: (@screen-sm-min - 1);
@button-primary-hover: darken(desaturate(@brand-primary, 50%), 15%);
@button-secondary-hover: lighten(@light-bg, 15%);
@primary-link-color: lighten(@brand-primary, 5%);
@border: 1px solid @border-color;
@border-light: 1px solid @light-border-color;
@transition: 0.3s ease-out;
@screen-palm: 500px;
@dark-border-color: darken(@border-color, 60%);

View File

@@ -1,67 +0,0 @@
<!DOCTYPE html>
<!-- Built on Frappe. https://frappe.io/ -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} {{ title | striptags }} {% endblock %}</title>
<meta name="generator" content="frappe">
{% block favicon %}
<link rel="shortcut icon"
href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}"
type="image/x-icon">
<link rel="icon"
href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}"
type="image/x-icon">
{% endblock %}
{%- block head -%}
{% block meta_block %}{% endblock %}
<link href="/assets/bootstrap-4/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/foundation/css/style.css" rel="stylesheet">
{% if path == 'login' or template == 'website/doctype/web_form/templates/web_form.html' %}
<link type="text/css" rel="stylesheet" href="/assets/css/frappe-web.css">
{% endif %}
{%- endblock -%}
{%- block head_include %}{{ head_include or "" }}{% endblock -%}
{%- block style %}{%- endblock -%}
<script>
window.frappe = {};
frappe.ready_events = [];
frappe.ready = function(fn) {
frappe.ready_events.push(fn);
}
window.dev_server = {{ dev_server }};
</script>
</head>
<body data-path="{{ path }}">
<div class="container">
{%- block navbar -%}{% include "templates/includes/navbar/navbar.html" %}{%- endblock -%}
{% block content %}
{{ content }}
{% endblock %}
{%- block footer -%}{% include "templates/includes/footer/footer.html" %}{%- endblock -%}
</div>
{% block base_scripts %}
<!-- js should be loaded in body! -->
<script type="text/javascript"
src="/assets/frappe/js/lib/jquery/jquery.min.js"></script>
<script type="text/javascript"
src="/assets/js/frappe-web.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="/assets/bootstrap-4/js/bootstrap.min.js"></script>
{% endblock %}
{%- if js_globals is defined %}
<script>
{%- for key, value in js_globals.iteritems() %}
window.{{ key }} = "{{ value[0] }}";
{%- endfor -%}
</script>
{% endif -%}
{%- for link in web_include_js %}
<script type="text/javascript" src="{{ link|abs_url }}"></script>
{%- endfor -%}
{%- block script %}{%- endblock %}
<!-- csrf_token -->
{%- block body_include %}{{ body_include or "" }}{% endblock -%}
</body>
</html>

View File

@@ -1,19 +0,0 @@
{% extends "templates/web.html" %}
{% block title %}{{ blog_title or _("Blog") }}{% endblock %}
{% block header %}<h1>{{ blog_title or _("Blog") }}</h1>{% endblock %}
{% block hero %}{% endblock %}
{% block page_content %}
<!-- no-header -->
<!-- no-breadcrumbs -->
<div class="blog-list-content">
<div id="blog-list">
{% include "templates/includes/list/list.html" %}
</div>
</div>
{% endblock %}
{% block script %}
<script>{% include "templates/includes/list/list.js" %}</script>
{% endblock %}

View File

@@ -1,13 +0,0 @@
<div class="row mt-4">
<div class="col-xs-12 col-sm-1">
<div class="avatar avatar-large">
<img itemprop="thumbnailUrl" src="{{ blogger_info.avatar or "/assets/frappe/images/default-avatar.png" }}" />
</div>
</div>
<div class="col-xs-12 col-sm-8">
<h4 class="text-muted">
<a href="/blog?blogger={{ blogger_info.name }}">{{ blogger_info.full_name }}</a>
</h4>
<p class="text-muted">{%if blogger_info.bio %}{{ blogger_info.bio }}{% endif %}</p>
</div>
</div>

View File

@@ -1,12 +0,0 @@
{% if blog_title and not (frappe.local.form_dict.txt or frappe.local.form_dict.by) %}
<div class="page-hero border-bottom">
<div class="container">
<h1 class="page-title">
{{ blog_title }}
</h1>
{% if blog_introduction -%}
<p class="blog-introduction">{{ blog_introduction }}</p>
{%- endif %}
</div>
</div>
{% endif %}

View File

@@ -1,12 +0,0 @@
{% if parents and parents|length > 0 %}
<ul class="breadcrumb mb-4" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
{% for parent in parents %}
<li class="breadcrumb-item">
<a href="{{ url_prefix }}{{ parent.route | abs_url }}" itemprop="url">
<span itemprop="title">{{ parent.title or parent.label or parent.name or "" }} </span>
</a>
</li>
{% endfor %}
<li class="breadcrumb-item active"><span itemprop="title">{{ title or "" }}</span></li>
</ul>
{% endif %}

View File

@@ -1,5 +0,0 @@
<div class="feature text-center">
<form class="email-subcription">
<label class="email">Stay Updated<input class="email-input" type="email" placeholder="Email"></label>
</form>
</div>

View File

@@ -1,26 +0,0 @@
{% if sub_title %}
<h4 class="text-muted">{{ sub_title }}</h4>
{% endif %}
{% if not result -%}
<div class="text-muted no-results">
<i class="mega-octicon octicon-telescope"></i>
{{ no_result_message or _("Nothing to show") }}
</div>
{% else %}
<div class="website-list" data-doctype="{{ doctype }}"
data-txt="{{ txt or '[notxt]' }}">
<!-- {% if not hide_filters -%}
{% include "templates/includes/list/filters.html" %}
{%- endif %} -->
{% if result_heading_template %}{% include result_heading_template %}{% endif %}
<div class="result row">
{% for item in result %}
{{ item }}
{% endfor %}
</div>
<div class="more-block mb-4 {% if not show_more -%} hide {%- endif %}">
<button class="btn btn-more btn-secondary">{{ _("More") }}</button>
</div>
</div>
{%- endif %}

View File

@@ -1,15 +0,0 @@
{% macro media(title, content, image, link) %}
<div class="media my-3 bg-light p-4 {% if link %}clickable{% endif %}"
{% if link %}style="cursor: pointer;"{% endif %}
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
<a href="{{ link or "#" }}">
<img class="mr-3 media-img"
src="{% if image %}{% if not '/' in image %}/assets/foundation/img/{% endif %}{{ image }}{% else %}/assets/foundation/img/frappe-bird-grey.svg{% endif %}"
style="{% if image and not '/' in image %}opacity: 0.4{% endif %}">
</a>
<div class="media-body mt-0">
{% if title %}<h4 class="media-heading">{{ title }}</h4>{% endif %}
{{ content }}
</div>
</div>
{% endmacro %}

View File

@@ -1,17 +0,0 @@
<ul class="nav-bar nav ml-auto mt-2 mt-lg-0">
{% if top_bar_items -%}
{%- for page in top_bar_items -%}
{% if not page.parent_label and not page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
{%- endif %}
{%- for page in top_bar_items -%}
{% if not page.parent_label and page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
{% block navbar_right_extension %}{% endblock %}
{% include "templates/includes/navbar/navbar_search.html" %}
{% include "templates/includes/navbar/dropdown_login.html" %}
</ul>

View File

@@ -1,17 +0,0 @@
<!-- post login tools -->
{% if not only_static %}
{%- for child in post_login -%}
<li {% if child.label %}data-label="{{ child.label }}" {% endif %}
class="{% if child.class %} {{ child.class }} {% endif %} logged-in" >
{%- if child.url -%}
<a href="{{ child.url | abs_url }}" {{ child.target or '' }}
rel="nofollow">
{{ child.label }}
</a>
{%- endif -%}
</li>
{%- endfor -%}
{% if not hide_login %}
<li class="btn-login-area"><a href="/login">{{ _("Login") }}</a></li>
{% endif %}
{% endif %}

View File

@@ -1,11 +0,0 @@
<nav class="navbar navbar-expand-lg border-bottom navbar-light" role="navigation">
<a class="navbar-brand" href="{{ url_prefix }}{{ home_page or "/"}}">
<span>{{ brand_html or (frappe.get_hooks("brand_html") or ["Home"])[0] }}</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
{% include "templates/includes/navbar/navbar_items.html" %}
</div>
</nav>

View File

@@ -1,21 +0,0 @@
{% if top_bar_items -%}
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
{%- for page in top_bar_items -%}
{% if not page.parent_label and not page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
</ul>
{%- endif %}
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
{%- for page in top_bar_items -%}
{% if not page.parent_label and page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
{% if not only_static %}
{% block navbar_right_extension %}{% endblock %}
{% endif %}
{% include "templates/includes/navbar/navbar_search.html" %}
{% include "templates/includes/navbar/navbar_login.html" %}
</ul>

View File

@@ -1,13 +0,0 @@
<li class="nav-item {% if page.child_items %} dropdown {% endif %}" data-label='{{ page.label }}'>
<a {% if not page.child_items -%} class="nav-link" href="{{ (page.url or '')|abs_url }}" {%- endif %}
{% if page.child_items %} class="nav-link dropdown-toggle" data-toggle="dropdown" id="navbarDropdownMenuLink" role="button" aria-haspopup="true" aria-expanded="false" {% endif %}
{{ page.target or ''}}>
{{ page.label }}
</a>
<div class="dropdown-menu" role="menu">
{%- for child in page.child_items -%}
<a class="dropdown-item" data-label='{{ child.label }}' href="{{ child.url | abs_url }}" {{ child.target or '' }}>{{ child.label }}</a>
{%- endfor -%}
</div>
</a>
</li>

View File

@@ -1,25 +0,0 @@
<!-- post login tools -->
{% if not only_static %}
<li class="nav-item dropdown logged-in" id="website-post-login"
data-label="website-post-login" style="display: none">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
<span class="user-image-wrapper"></span>
<span class="full-name"></span>
<b class="caret"></b>
</a>
<div class="dropdown-menu" role="menu">
{%- for child in post_login -%}
{%- if child.url -%}
<a class="dropdown-item" href="{{ child.url | abs_url }}" {{ child.target or '' }}
rel="nofollow">
{{ child.label }}
</a>
{%- endif -%}
{%- endfor -%}
<a class="dropdown-item" href="/desk">{{ _('Switch To Desk') }}</a>
</div>
</li>
{% if not hide_login %}
<li class="nav-item btn-login-area"><a class="nav-link" href="/login">{{ _("Login") }}</a></li>
{% endif %}
{% endif %}

View File

@@ -1,9 +0,0 @@
{% if navbar_search %}
<li>
<form action='/search'>
<input name='q' class='form-control navbar-search' type='text'
value='{{ frappe.form_dict.q or ''}}'
{% if not frappe.form_dict.q%}placeholder="{{ _("Search...") }}"{% endif %}>
</form>
</li>
{% endif %}

View File

@@ -1,42 +0,0 @@
<section class="sponsor">
<div class="grid-of-three">
<div class="box text-center top-spacer" >
<a href="https://frappe.io/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/frappe-bird-black.svg" alt="Frappe"/>
</a>
</div>
<div class="box text-center top-spacer" >
<a href="https://mntechnique.com/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/conf/sponsors/mnt-logo.png" alt="MNT"/>
</a>
</div>
<div class="box text-center top-spacer" >
<a href="http://fogliasana.com/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/conf/sponsors/shs-logo.png" alt="SHS"/>
</a>
</div>
<div class="box text-center top-spacer" >
<a href="https://www.cloude8.com/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/conf/sponsors/cloude8.png" alt="Cloude8"/>
</a>
</div>
<div class="box text-center top-spacer" >
<a href="https://digithinkit.com/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/conf/sponsors/digithinkit.png" alt="DigiThinkIT"/>
</a>
</div>
<div class="box text-center top-spacer" >
<a href="http://www.indictranstech.com/" class="no-decoration" target="_blank">
<img src="/assets/foundation/img/conf/sponsors/indictrans.png">
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div style="margin-top: 40px;">
<p>Become a patron for the conference and get associated with a global community<br>
of tens of thousands of users and developers. Sponsors also get 5 complimentary passes for the full conference!</p>
<a href="mailto:foundation@erpnext.org" style="color:white" class="btn btn-primary disabled">Become A Sponsor</a>
</div>
</div>
</div>
</section>

View File

@@ -1,53 +0,0 @@
{% extends base_template_path %}
{% block hero %}{% endblock %}
{% block content %}
<div class="page">
<div class="row" id="page-{{ name or route }}" data-path="{{ pathname }}" {%- if page_or_generator=="Generator" %} data-doctype="{{ doctype }}"{% endif %}>
{% if show_sidebar %}
<div class="pt-4 col-sm-2 border-right">
{% include "templates/includes/web_sidebar.html" %}
</div>
{% endif %}
<div class="pt-3 {% if show_sidebar %}px-3 col-sm-10{% else %} col-sm-12 {% endif %}">
<div class="page-content-wrapper">
<div class="row page-head">
<div class='col-sm-12'>
{% if not no_breadcrumbs and parents %}
<div class="page-breadcrumbs">
{% block breadcrumbs %}
{% include 'templates/includes/breadcrumbs.html' %}
{% endblock %}
</div>
{% endif %}
</div>
{% if doctype != 'Blog Post' %}
<div class="col-sm-8 col-xs-6">
{% block header %}{% endblock %}
</div>
{% endif %}
<div class="col-sm-4 col-xs-6">
{% if show_search %}
<div class="page-search-block">
{% block search %}
{% include
'templates/includes/search_box.html' %}
{% endblock %}
</div>
{% endif %}
{% if self.header_actions() %}
<div class="page-header-actions-block">
{% block header_actions %}{% endblock %}
</div>
{% endif %}
</div>
</div>
<div class="page_content">
{%- block page_content -%}{%- endblock -%}
</div>
</div>
<!-- sidebar ends -->
</div>
</div>
</div>
{% endblock %}

View File

@@ -1,52 +0,0 @@
.introduction {
border-bottom: 1px solid #e1e9f0;
padding: 15px;
padding-top: 0px;
margin-left: -15px;
margin-right: -15px;
margin-bottom: 15px;
}
.form-group label {
font-weight: normal;
}
input[type='checkbox'] {
margin-top: 3px;
}
.checkbox label {
font-size: 12px;
}
.web-form-page, .web-form-page .section {
padding: 20px 0px;
}
.web-form-grid-row input, .web-form-grid-row select {
border: 0px;
padding: 0px;
}
.web-form-grid-row input:focus, .web-form-grid-row select:focus {
box-shadow: none;
}
.web-form-grid-row .form-group {
margin: 0px;
}
.slide-progress {
/*border-top: 1px solid #d1d8dd;*/
margin-top: -10px;
}
.slide-progress .fa-fw {
vertical-align: middle;
margin-right: 9px;
padding-left: 2px;
cursor: pointer;
}
.slide-progress .icon-circle-blank {
font-size: 12px;
}
.slide-progress .icon-circle {
font-size: 14px;
}

View File

@@ -1,34 +0,0 @@
{% extends "templates/web.html" %}
{% block meta_block %}
{% include "templates/includes/meta_block.html" %}
{% endblock %}
{% block page_content %}
<article class="blog-content" itemscope itemtype="http://schema.org/BlogPosting">
<!-- begin blog content -->
<div class="blog-info">
<h1 itemprop="headline" class="blog-header">{{ title }}</h1>
<p class="post-by text-muted">
<a href="/blog?blogger={{ blogger }}" class="no-decoration">{{ _("By") }} {{ blogger_info and blogger_info.full_name or full_name }}</a>
<i class="spacer-dot"></i> {{ frappe.format_date(published_on) }}
<i class="spacer-dot"></i> <a href="/blog?blog_category={{ blog_category }}" class="no-decoration">{{ category.title }}</a>
<i class="spacer-dot"></i> {{ comment_text }}
</p>
</div>
<div itemprop="articleBody" class="longform blog-text">
{{ content }}
</div>
<!-- end blog content -->
</article>
{% if blogger_info %}
{% include "templates/includes/blog/blogger.html" %}
{% endif %}
<div class="border-top mt-4 pt-4 blog-comments">
{% include 'templates/includes/comments/comments.html' %}
</div>
<script>
frappe.ready(function() { frappe.set_search_path("/blog"); })
</script>
{% endblock %}
{% block style %}
{% endblock %}

View File

@@ -1,16 +0,0 @@
{%- set post = doc -%}
<div class="blog-list-item mb-4 col-sm-12">
<h3 class="font-weight-normal"><a href="/{{ post.route }}">{{ post.title }}</a></h3>
<p class="post-description">{{ post.intro }}</p>
<div>
<p class="small">
<a href="/blog?blogger={{ post.blogger }}">{{ post.full_name }}</a>
<span class="text-muted">{{ frappe.format_date(post.published_on) }}</span>
</p>
</div>
</div>

View File

@@ -2,7 +2,7 @@
{% block title %}About ERPNext Foundation{% endblock %}
{% from "foundation/templates/includes/macros.html" import media %}
{% from "templates/includes/macros.html" import media %}
{% block content%}
<div class="page">

View File

@@ -1,4 +1,4 @@
{% extends "foundation/templates/base.html" %}
{% extends "templates/base.html" %}
{% block title %} Get Started - ERPNext Foundation{% endblock %}
{% block content %}
<section class="my-5 text-center">

View File

@@ -1,4 +1,4 @@
{% extends "foundation/templates/base.html" %}
{% extends "templates/base.html" %}
{% block title %}ERPNext Foundation - Open Source ERP Software{% endblock %}
{% block content %}
<section class='my-5'>

View File

@@ -1,6 +1,6 @@
{% extends "foundation/templates/web.html" %}
{% extends "templates/web.html" %}
{% from "foundation/templates/includes/macros.html" import media %}
{% from "templates/includes/macros.html" import media %}
{% macro gold_member(m) %}
<div class="media mb-4 {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">