##// END OF EJS Templates
FUNCIONAL Se actualizó el header y footer, ademas de añadir fuentes
FUNCIONAL Se actualizó el header y footer, ademas de añadir fuentes

File last commit:

r356:fae7c72f4b68
r362:8d13a1930079
Show More
base_edit.html
42 lines | 1.2 KiB | text/html | HtmlDjangoLexer
{% extends "base.html" %}
{% load django_bootstrap5 %}
{% load static %}
{% load main_tags %}
{% block content-title %}{{title}}{% endblock %}
{% block content-suptitle %}{{suptitle}}{% endblock %}
{% block content %}
{% if form.is_multipart %}
<form class="form" enctype="multipart/form-data" method="post" action="{{action}}">
{% else %}
<form class="form" method="post" action="{{action}}">
{% endif %}
{% csrf_token %}
{% if device_dds == 'dds_rest' %}
{% block dds_rest%}
{% endblock %}
{% else %}
{% bootstrap_form form layout='horizontal' size='md' %}
{% endif %}
<div style="clear: both;"></div>
<br>
{% if extra_button %}
<div class="pull-left">
<button type="button" class="btn btn-primary" id="bt_{{extra_button}}">{{extra_button}}</button>
</div>
{% endif %}
{% if button %}
<div class="pull-right">
<button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">{% if cancel %}{{cancel}}{% else %}Cancel{% endif %}</button>
<button type="submit" class="btn btn-primary">{{button}}</button>
</div>
{% endif %}
</form>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}