Skip to content

Commit

Permalink
modificado: atvirtual/atvirtual/web_form/registro/registro.json
Browse files Browse the repository at this point in the history
	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
pibico committed Feb 22, 2021
1 parent 6409759 commit 4d6bd2a
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 6 deletions.
4 changes: 2 additions & 2 deletions atvirtual/atvirtual/web_form/registro/registro.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"docstatus": 0,
"doctype": "Web Form",
"idx": 0,
"introduction_text": "<style>\n #page-registro .form-control {\n font-size: 11pt;\n margin: 0px;\n margin-bottom: 3px;\n padding: 1px;\n padding-left: 3px;\n } \n</style>\n<div id=\"main\">\n <div class=\"container mt-6\">\n <div class=\"card bg-transparent\">\n <img alt=\"pibiTRAINING\" class=\"card-img\" src=\"assets/atvirtual/assets/images/web_form.png\" width=\"600px\">\n <div class=\"card-img-overlay\">\n <p class=\"card-text\">Complete the data to send the message.</p>\n <p class=\"card-text\">pibi<small><strong>TRAINING</strong> a MIoT App</small></p>\n </div>\n </div>\n </div>\n</div>",
"introduction_text": "<style>\n #page-registro .form-control {\n font-size: 11pt;\n margin: 0px;\n margin-bottom: 3px;\n padding: 1px;\n padding-left: 3px;\n } \n</style>\n<div id=\"main\">\n <div class=\"container mt-6\">\n <div class=\"card bg-transparent\">\n <img alt=\"pibiTRAINING\" class=\"card-img\" src=\"assets/atvirtual/assets/images/web_form.png\" width=\"600px\">\n <div class=\"card-img-overlay\">\n <p class=\"card-text\">Fill the Data.</p>\n <p class=\"card-text\">pibi<small><strong>TRAINING</strong> a MIoT App</small></p>\n </div>\n </div>\n </div>\n</div>",
"is_standard": 1,
"login_required": 1,
"max_attachment_size": 45,
"modified": "2021-02-22 18:45:12.904358",
"modified": "2021-02-22 20:22:50.711740",
"modified_by": "Administrator",
"module": "Atvirtual",
"name": "registro",
Expand Down
96 changes: 96 additions & 0 deletions atvirtual/templates/base.html
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>
39 changes: 39 additions & 0 deletions atvirtual/templates/includes/footer/footer.html
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 %}
&copy; {{ 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>
20 changes: 20 additions & 0 deletions atvirtual/templates/includes/navbar/navbar.html
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>
63 changes: 63 additions & 0 deletions atvirtual/templates/web.html
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 %}
2 changes: 1 addition & 1 deletion atvirtual/www/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
display: none;
}
.container-fluid {
background-image: url('/assets/atvirtual/assets/images/404-bg.png');
/*background-image: url('/assets/atvirtual/assets/images/404-bg.png');*/
height: 100vh;
margin-top: -60px;
margin-bottom: -72px;
Expand Down
2 changes: 0 additions & 2 deletions atvirtual/www/index_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,6 @@ <h5 class="card-title"><a href="">The Developer</a></h5>
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- All Jquery -->
<!-- ============================================================== -->
<script src="/assets/atvirtual/assets/libs/jquery/dist/jquery.min.js"></script>
Expand Down
1 change: 0 additions & 1 deletion atvirtual/www/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
display: none;
}
.container-fluid {
background-image: url('/assets/atvirtual/assets/images/background/sea-bg.jpg');
height: 100vh;
margin-top: -60px;
margin-bottom: -72px;
Expand Down

0 comments on commit 4d6bd2a

Please sign in to comment.