mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-18 08:55:53 +00:00
56 lines
1.9 KiB
Django/Jinja
56 lines
1.9 KiB
Django/Jinja
{%- macro header(title, close=False, url="") -%}
|
|
<div class="p-4 bg-primary text-white">
|
|
{%- if close -%}
|
|
<button type="button" class="btn-close" aria-label="Close" onclick="location.href = '{{url}}'"></button>
|
|
{%- endif -%}
|
|
<h1 class="alternate-font">{{ title }}</h1>
|
|
</div>
|
|
{%- endmacro -%}
|
|
{%- macro get_table_class() -%}
|
|
table table-striped table-hover table-bordered
|
|
{%- endmacro -%}
|
|
{%- macro icon(icon_name) -%}
|
|
<i class="mdi mdi-{{icon_name}}"></i>
|
|
{%- endmacro -%}
|
|
{%- macro get_button(text, action) -%}
|
|
<button class="btn btn-primary btn-small" onclick="{{ action }}">{{ text|safe }}</button>
|
|
{%- endmacro -%}
|
|
{%- macro get_button_class() -%}
|
|
button btn-primary btn-small
|
|
{%- endmacro %}
|
|
{%- macro get_button_tag(icon_name, method, visible=True, name="") -%}
|
|
<button class="btn btn-primary btn-small" onclick="{{ method }}" {{ "" if visible else "hidden='true'" }} {{ "" if name=="" else "name='" + name +"'"}}><i class="mdi mdi-{{ icon_name }}"></i></button>
|
|
{%- endmacro -%}
|
|
{%- macro get_button_reset() -%}
|
|
<button class="btn btn-primary btn-small btn-danger" onclick="setCheckBoxes(false)"><i class="mdi mdi-checkbox-multiple-blank"></i></button>
|
|
{%- endmacro -%}
|
|
{%- macro get_button_all() -%}
|
|
<button class="btn btn-primary btn-small btn-success" onclick="setCheckBoxes(true)"><i class="mdi mdi-checkbox-multiple-marked"></i></button>
|
|
{%- endmacro -%}
|
|
{%- macro get_tag_class() -%}
|
|
badge bg-info bg-small
|
|
{%- endmacro -%}
|
|
{%- macro get_container_class() -%}
|
|
container-fluid
|
|
{%- endmacro -%}
|
|
{%- macro selected() -%}
|
|
selected
|
|
{%- endmacro -%}
|
|
{%- macro get_level_class() -%}
|
|
navbar
|
|
{%- endmacro -%}
|
|
{%- macro get_align_right() -%}
|
|
text-end
|
|
{%- endmacro -%}
|
|
{%- macro get_left_position() -%}
|
|
float-left
|
|
{%- endmacro -%}
|
|
{%- macro get_right_position() -%}
|
|
float-right
|
|
{%- endmacro -%}
|
|
{%- macro get_row_head_class() -%}
|
|
bg-primary text-white
|
|
{%- endmacro -%}
|
|
{%- macro get_align_center() -%}
|
|
text-center
|
|
{%- endmacro -%} |