forked from pibico/atvirtual
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modificado: atvirtual/atvirtual/web_form/registro/registro.json
nuevo archivo: atvirtual/templates/base.html nuevo archivo: atvirtual/templates/includes/footer/footer.html nuevo archivo: atvirtual/templates/includes/navbar/navbar.html nuevo archivo: atvirtual/templates/web.html modificado: atvirtual/www/404.html modificado: atvirtual/www/index_en.html modificado: atvirtual/www/login.html
- Loading branch information
Showing
8 changed files
with
221 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<!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, shrink-to-fit=no"> | ||
<meta name="generator" content="frappe"> | ||
|
||
{% block meta_block %} | ||
{% include "templates/includes/meta_block.html" %} | ||
{% endblock %} | ||
|
||
<title>{% block title %}{{ title | striptags }}{% endblock %}</title> | ||
|
||
{% block favicon %} | ||
<link | ||
rel="shortcut icon" | ||
href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}" | ||
type="image/x-icon" | ||
> | ||
{% endblock %} | ||
|
||
<link rel="canonical" href="{{ canonical }}"> | ||
|
||
{%- block head -%} | ||
{% if head_html is defined -%} | ||
{{ head_html or "" }} | ||
{%- endif %} | ||
|
||
{% if theme.theme_url %} | ||
<link type="text/css" rel="stylesheet" href="{{ theme.theme_url }}"> | ||
{% else %} | ||
<link type="text/css" rel="stylesheet" href="/assets/css/frappe-web-b4.css"> | ||
|
||
{%- for link in web_include_css %} | ||
<link type="text/css" rel="stylesheet" href="{{ link|abs_url }}"> | ||
{%- endfor -%} | ||
{% 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 }}; | ||
window.socketio_port = {{ (frappe.socketio_port or 'null') }}; | ||
</script> | ||
</head> | ||
|
||
<body frappe-session-status="{{ 'logged-in' if frappe.session.user != 'Guest' else 'logged-out'}}" data-path="{{ path | e }}" {%- if template and template.endswith('.md') %} frappe-content-type="markdown" {% endif -%}> | ||
{%- block banner -%} | ||
{% include "templates/includes/banner_extension.html" ignore missing %} | ||
|
||
{% if banner_html -%} | ||
{{ banner_html or "" }} | ||
{%- endif %} | ||
{%- endblock -%} | ||
|
||
{%- block navbar -%} | ||
{% include "templates/includes/navbar/navbar.html" %} | ||
{%- endblock -%} | ||
|
||
{% block content %} | ||
{{ content }} | ||
{% endblock %} | ||
|
||
{%- block footer -%} | ||
{% include "templates/includes/footer/footer.html" %} | ||
{%- endblock -%} | ||
|
||
{% 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 type="text/javascript" src="/assets/js/bootstrap-4-web.min.js"></script> | ||
|
||
{% endblock %} | ||
|
||
{%- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<footer class="web-footer"> | ||
<section class="footer-links"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-6 text-left"> | ||
{% if footer_items -%} | ||
<div class="row"> | ||
{% include "templates/includes/footer/footer_items.html" %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="col-sm-6 text-right"> | ||
{% block extension %} | ||
{% include "templates/includes/footer/footer_extension.html" %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
<div class="row footer-bottom-line mt-5"> | ||
<div class="text-muted small col-sm-6 col-12"> | ||
{% if copyright %} | ||
© {{ copyright }} | ||
{% endif %} | ||
{% if footer_address %} | ||
{% if copyright %}<br>{% endif %} | ||
{{ footer_address }} | ||
{% endif %} | ||
</div> | ||
{# powered #} | ||
<div class="text-muted small col-sm-6 col-12 | ||
text-right footer-powered"> | ||
{% block powered %} | ||
{% include "templates/includes/footer/footer_powered.html" %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<nav class="navbar navbar-light bg-white navbar-expand-lg sticky-top shadow-sm"> | ||
<div class="container"> | ||
<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="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
{% include "templates/includes/navbar/navbar_items.html" %} | ||
</div> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends base_template_path %} | ||
|
||
{% block hero %}{% endblock %} | ||
|
||
{% block content %} | ||
{% macro main_content() %} | ||
<div class="page-content-wrapper"> | ||
<!-- breadcrumbs --> | ||
<div class="page-breadcrumbs"> | ||
{% block breadcrumbs %} | ||
{% include 'templates/includes/breadcrumbs.html' %} | ||
{% endblock %} | ||
</div> | ||
|
||
{% block page_container %} | ||
<main class="container my-5"> | ||
<div class="d-flex justify-content-between align-items-center"> | ||
<div class="page-header"> | ||
{% block header %}{% endblock %} | ||
</div> | ||
|
||
{% if self.header_actions() %} | ||
<div class="page-header-actions-block"> | ||
{% block header_actions %}{% endblock %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="page_content"> | ||
{%- block page_content -%}{%- endblock -%} | ||
</div> | ||
|
||
<div class="page-footer"> | ||
{%- block page_footer -%}{%- endblock -%} | ||
</div> | ||
</main> | ||
{% endblock %} | ||
</div> | ||
{% endmacro %} | ||
|
||
{% macro container_attributes() %} | ||
id="page-{{ name or route | e }}" data-path="{{ pathname | e }}" {%- if page_or_generator=="Generator" %}source-type="Generator" data-doctype="{{ doctype }}"{% endif %} | ||
{% endmacro %} | ||
|
||
{% if show_sidebar %} | ||
<div class="container"> | ||
<div class="row" {{ container_attributes() }}> | ||
<div class="pt-4 col-sm-2 border-right sidebar-column d-none d-sm-block"> | ||
{% block page_sidebar %} | ||
{% include "templates/includes/web_sidebar.html" %} | ||
{% endblock %} | ||
</div> | ||
<div class="col-sm-10 main-column"> | ||
{{ main_content() }} | ||
</div> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div {{ container_attributes() }}> | ||
{{ main_content() }} | ||
</div> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters