2020-04-24 18:08:09 +02:00
|
|
|
{% extends "layouts/app.twig" %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
|
2023-11-23 17:37:06 +01:00
|
|
|
{% block title %}{{ __('design.title') }}{% endblock %}
|
2020-04-24 18:08:09 +02:00
|
|
|
|
|
|
|
{% set colors=['success', 'info', 'warning', 'danger'] %}
|
2021-04-29 21:58:20 +02:00
|
|
|
{% set types=[
|
|
|
|
'primary',
|
|
|
|
'secondary',
|
|
|
|
'success',
|
|
|
|
'danger',
|
|
|
|
'warning',
|
|
|
|
'info',
|
|
|
|
'light',
|
|
|
|
'dark'
|
|
|
|
]
|
|
|
|
%}
|
2021-08-05 01:00:12 +02:00
|
|
|
{% set types_buttons=['link']|merge(types) %}
|
2021-07-25 21:41:57 +02:00
|
|
|
{% set shortsum='Lorem ipsum dolor…' %}
|
2020-04-24 18:08:09 +02:00
|
|
|
{% set lipsum='Lorem ipsum dolor sit amet, consectetur adipisici elit…' %}
|
2023-12-06 21:10:00 +01:00
|
|
|
{% set linksum='Lorem ipsum! Dolor <a href="#" class="prevent-default">link</a> amet, consectetur adipisici elit!' %}
|
2020-04-24 18:08:09 +02:00
|
|
|
|
|
|
|
{% block content %}
|
2021-04-17 14:47:01 +02:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="container">
|
2021-07-29 21:05:45 +02:00
|
|
|
<h1 class="mb-4">
|
|
|
|
{{ block('title') }} <small class="text-muted">{{ themes[themeId]['name'] }}</small>
|
|
|
|
</h1>
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="elements" class="ref-id"></span>
|
|
|
|
<h2>Elements <small class="text-muted">small</small> <a href="#elements" class="ref-link">{{ m.icon('link') }}</a></h2>
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="row">
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-6 col-lg-2 mb-4">
|
2021-04-17 14:49:53 +02:00
|
|
|
<h3>Headings <small class="text-muted">small</small></h3>
|
|
|
|
<h4>H4 <small class="text-muted">small</small></h4>
|
|
|
|
<h5>H5 <small class="text-muted">small</small></h5>
|
|
|
|
<h6>H6 <small class="text-muted">small</small></h6>
|
2021-04-10 17:02:34 +02:00
|
|
|
</div>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-6 mb-4">
|
2021-04-10 17:02:34 +02:00
|
|
|
<h3>Lists</h3>
|
|
|
|
<p>
|
|
|
|
This page should be used when creating and testing new designs to find usability and/or design issues.
|
|
|
|
{{ lipsum|replace({'…': '.'}) }}
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>Unordered</li>
|
|
|
|
<li>List</li>
|
|
|
|
<li>Items</li>
|
|
|
|
</ul>
|
|
|
|
<ol>
|
|
|
|
<li>Ordered</li>
|
|
|
|
<li>List</li>
|
|
|
|
<li>Items</li>
|
|
|
|
</ol>
|
|
|
|
<p>{{ linksum|raw }} {{ lipsum }}</p>
|
|
|
|
</div>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-lg-4 mb-4">
|
2021-04-10 17:02:34 +02:00
|
|
|
<h3>Themes</h3>
|
|
|
|
<ul>
|
2021-04-29 21:58:20 +02:00
|
|
|
{% for id,theme in themes %}
|
2021-04-10 17:02:34 +02:00
|
|
|
<li>
|
2023-11-13 16:56:52 +01:00
|
|
|
<a href="{{ url('/design', {'theme': id}) }}"
|
2021-08-09 23:32:24 +02:00
|
|
|
{%- if id == themeId %} class="text-info"{% endif %}>
|
2021-04-29 21:58:20 +02:00
|
|
|
{{ theme['name'] }}
|
2021-04-10 17:02:34 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2021-04-10 17:02:34 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="tables" class="ref-id"></span>
|
|
|
|
<h3>Tables <a href="#tables" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
<th>Header 1</th>
|
|
|
|
<th>Header 2</th>
|
|
|
|
<th>Header 3</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Table content</td>
|
|
|
|
<td>{{ lipsum }}</td>
|
2021-07-22 21:22:21 +02:00
|
|
|
<td><span class="text-success">{{ m.icon('check-lg') }}</span></td>
|
2020-04-24 18:08:09 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Another content</td>
|
2022-07-11 23:22:22 +02:00
|
|
|
<td>Lorem ipsum</td>
|
2021-07-22 21:22:21 +02:00
|
|
|
<td><span class="text-danger">{{ m.icon('x-lg') }}</span></td>
|
2020-04-24 18:08:09 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
2021-04-10 17:02:34 +02:00
|
|
|
<h3>Navigation Tabs</h3>
|
|
|
|
<ul class="nav nav-tabs">
|
2021-04-17 14:49:53 +02:00
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link active prevent-default" href="#">Lorem</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link prevent-default" href="#">Ipsum</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link prevent-default" href="#">Dolor</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
2021-04-10 17:02:34 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
2021-04-10 17:02:34 +02:00
|
|
|
<h3>Navigation Pills</h3>
|
2021-04-17 14:49:53 +02:00
|
|
|
<ul class="nav nav-pills flex-column">
|
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link active prevent-default" href="#">Some</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link prevent-default" href="#">Test</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="nav-link prevent-default" href="#">Menu</a>
|
2021-04-17 14:49:53 +02:00
|
|
|
</li>
|
2021-04-10 17:02:34 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2020-12-07 18:55:09 +01:00
|
|
|
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="row">
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-6 col-md-12 mb-4">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="texts" class="ref-id"></span>
|
|
|
|
<h3>Texts <a href="#texts" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
<p>
|
|
|
|
{{ linksum|raw }}<br>
|
|
|
|
{{ lipsum }} {{ lipsum|replace({'…': '.'}) }} {{ lipsum|replace({'…': '.'}) }} {{ lipsum }}
|
|
|
|
</p>
|
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2020-04-24 18:08:09 +02:00
|
|
|
{% for color in types %}
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-12 col-md-3">
|
2020-04-24 18:08:09 +02:00
|
|
|
<p class="text-{{ color }}">{{ color|capitalize }}: {{ linksum|raw }}</p>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-07 18:55:09 +01:00
|
|
|
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="row">
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-6 col-md-12 mb-4">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="badges" class="ref-id"></span>
|
|
|
|
<h3>Badges <a href="#badges" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
<p>
|
2023-07-24 18:49:32 +02:00
|
|
|
{% for type in types %}
|
|
|
|
<span class="badge bg-{{ type }}">{{ type|capitalize }}</span>
|
2020-04-24 18:08:09 +02:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-6 col-md-12 mb-4">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="buttons" class="ref-id"></span>
|
|
|
|
<h3>Buttons <a href="#buttons" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
<p>
|
|
|
|
{% for type in types_buttons %}
|
|
|
|
{{ f.button(type|capitalize, {'btn_type': type, 'name': 'button-' ~ type}) }}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-21 13:08:29 +01:00
|
|
|
<div class="col-6 col-md-12 mb-4">
|
|
|
|
<span id="icons" class="ref-id"></span>
|
|
|
|
<h3>Icons <a href="#icons" class="ref-link">{{ m.icon('link') }}</a></h3>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
|
|
|
cancel: {{ m.icon('x-lg') }}<br>
|
|
|
|
delete: {{ m.icon('trash', 'danger') }}<br>
|
|
|
|
edit: {{ m.icon('pencil') }}<br>
|
|
|
|
preview: {{ m.icon('eye','info') }}<br>
|
|
|
|
reset: {{ m.icon('arrow-counterclockwise') }}<br>
|
|
|
|
save: {{ m.icon('save', 'primary') }}<br>
|
|
|
|
<br>
|
|
|
|
{{ f.button('Cancel', {'icon_left': 'x-lg'}) }}<br class="mb-3">
|
|
|
|
{{ f.delete('Delete') }}<br class="mb-3">
|
|
|
|
{{ f.button('Edit', {'icon_left': 'pencil'}) }}<br class="mb-3">
|
|
|
|
{{ f.button('Reset', {'icon_left': 'arrow-counterclockwise'}) }}<br class="mb-3">
|
|
|
|
{{ f.submit('Save', {'icon_left': 'save'}) }}<br class="mb-3">
|
|
|
|
{{ f.button('View', {'icon_left': 'eye', 'btn_type': 'info'}) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
|
|
|
angel: {{ m.angel() }}<br>
|
|
|
|
dashboard: {{ m.icon('speedometer2') }}<br>
|
|
|
|
documentation: {{ m.icon('question-circle') }}<br>
|
|
|
|
drivers license / ifsg: {{ m.icon('card-checklist') }}<br>
|
|
|
|
form required: {{ f.entry_required() }}<br>
|
|
|
|
heading add / add anything else: {{ m.icon('plus-lg') }}<br>
|
|
|
|
heading back: {{ m.icon('chevron-left') }}<br>
|
|
|
|
info: {{ m.icon('info-circle') }} / {{ m.icon('info-circle-fill', 'info') }}<br>
|
|
|
|
info hidden: {{ m.icon('eye-slash') }}<br>
|
|
|
|
language: {{ m.icon('translate') }}<br>
|
|
|
|
location: {{ m.icon('pin-map-fill') }}<br>
|
|
|
|
remove / substract: {{ m.icon('dash-lg') }}<br>
|
|
|
|
requires introduction: {{ m.icon('mortarboard-fill') }}<br>
|
|
|
|
search: {{ m.icon('search') }}<br>
|
|
|
|
settings: {{ m.icon('gear-fill') }}<br>
|
|
|
|
sign off / leave: {{ m.icon('box-arrow-right') }}<br>
|
|
|
|
sign up / import: {{ m.icon('box-arrow-in-right') }}<br>
|
|
|
|
sign up allowed: {{ m.icon('pencil-square') }}<br>
|
|
|
|
yes / no: {{ m.iconBool(true) }} / {{ m.iconBool(false) }}<br>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6 col-lg-4 mb-4">
|
|
|
|
angeltypes: {{ m.icon('person-lines-fill') }}<br>
|
|
|
|
arrived: {{ m.icon('house') }}<br>
|
|
|
|
comment: {{ m.icon('chat-left-text') }}<br>
|
|
|
|
email: {{ m.icon('envelope') }}<br>
|
|
|
|
iCal: {{ m.icon('calendar-week') }}<br>
|
|
|
|
json export: {{ m.icon('braces') }}<br>
|
|
|
|
lists: {{ m.icon('list') }}<br>
|
|
|
|
logout: {{ m.icon('box-arrow-left') }}<br>
|
|
|
|
message: {{ m.icon('envelope') }}<br>
|
|
|
|
next shift: {{ m.icon('clock') }}<br>
|
2024-02-17 22:46:36 +01:00
|
|
|
night shift: {{ m.icon('moon-stars') }}<br>
|
2023-12-21 13:08:29 +01:00
|
|
|
occupancy: {{ m.icon('person-fill-slash') }}<br>
|
|
|
|
password: {{ m.icon('key-fill') }}<br>
|
|
|
|
phone: {{ m.icon('phone') }}<br>
|
|
|
|
T-shirt / goodie: {{ m.icon('person') }}<br>
|
|
|
|
supporter: {{ m.icon('patch-check') }}<br>
|
|
|
|
user settings: {{ m.icon('person-fill-gear') }}<br>
|
|
|
|
voucher: {{ m.icon('valentine') }}<br>
|
|
|
|
worklog / history: {{ m.icon('clock-history') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-07 18:55:09 +01:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2021-07-25 21:41:57 +02:00
|
|
|
<div class="col">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="alerts" class="ref-id"></span>
|
|
|
|
<h3>Alerts <a href="#alerts" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{% for color in colors %}
|
2021-07-25 21:41:57 +02:00
|
|
|
<div class="col">
|
2020-04-24 18:08:09 +02:00
|
|
|
<h4>{{ color|capitalize }}</h4>
|
2022-05-17 18:32:06 +02:00
|
|
|
{{ m.alert(linksum, color, true) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-07 18:55:09 +01:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2021-07-25 21:41:57 +02:00
|
|
|
<div class="col-md-12 mb-3">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="cards" class="ref-id"></span>
|
|
|
|
<h3>Cards <a href="#cards" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2021-07-25 21:41:57 +02:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{% for type in types %}
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col mb-3">
|
2021-07-25 21:41:57 +02:00
|
|
|
<div class="card border-{{ type }} {{ m.type_bg_class() }}">
|
|
|
|
<h4 class="card-header bg-{{ type }}">{{ type|capitalize }}</h4>
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="card-text">{{ shortsum }}</p>
|
2023-12-06 21:10:00 +01:00
|
|
|
<p class="card-text"><a href="#" class="card-link prevent-default">Some link</a></p>
|
2021-07-25 21:41:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="card-footer text-muted">
|
|
|
|
Footer
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-05 00:46:48 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-3 col-md-6 mb-2">
|
|
|
|
<span id="modal" class="ref-id"></span>
|
|
|
|
<h3>Modal <a href="#modal" class="ref-link">{{ m.icon('link') }}</a></h3>
|
|
|
|
<div class="modal position-static d-block" tabindex="-1">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content {{ m.type_bg_class() }}">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title">Title</h5>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>{{ lipsum }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
|
|
<button type="button" class="btn btn-primary">Save</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="col-md-12">
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="forms" class="ref-id"></span>
|
|
|
|
<h3>Forms <a href="#forms" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2020-04-24 18:08:09 +02:00
|
|
|
|
|
|
|
<div class="row">
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Text</h5>
|
|
|
|
<code>f.input(id, label, opt)</code>
|
|
|
|
{{ f.input('form-input-text', 'Text field', {
|
|
|
|
'value': 'Value',
|
|
|
|
}) }}
|
|
|
|
{{ f.input('form-input-text-label-icons', 'Text field with required and info icon', {
|
|
|
|
'value': 'Value',
|
|
|
|
'required_icon': true,
|
|
|
|
'info': 'Very important field info!',
|
|
|
|
}) }}
|
|
|
|
{{ f.input('form-input-text-hidden-label', 'Hidden label', {
|
|
|
|
'value': 'Hidden label',
|
|
|
|
'hide_label': true,
|
|
|
|
}) }}
|
|
|
|
{{ f.input('form-input-text-disabled', 'Disabled', {
|
|
|
|
'disabled': true,
|
|
|
|
'value': 'Value',
|
|
|
|
}) }}
|
|
|
|
{{ f.input('form-input-text-readonly', null, {
|
|
|
|
'type': 'Readonly',
|
|
|
|
'readonly': true,
|
|
|
|
'value': 'w/o label',
|
|
|
|
}) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Password</h5>
|
|
|
|
<code>f.password(id, label, opt)</code>
|
|
|
|
{{ f.input('form-input-password', 'Password', {
|
|
|
|
'type': 'password',
|
|
|
|
'value': 'Value',
|
|
|
|
}) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Number</h5>
|
|
|
|
<code>f.number(id, label, opt)</code>
|
|
|
|
{{ f.number('form-input-number', 'Number field', {
|
|
|
|
'type': 'number',
|
|
|
|
'value': 42,
|
|
|
|
}) }}
|
|
|
|
{{ f.number('form-input-number-label-icons', 'Number field with required and info icon', {
|
|
|
|
'type': 'number',
|
|
|
|
'value': 42,
|
|
|
|
'required_icon': true,
|
|
|
|
'info': 'Very important field info!',
|
|
|
|
}) }}
|
|
|
|
{{ f.number('form-input-number-disabled', 'Disabled', {
|
|
|
|
'disabled': true,
|
|
|
|
'value': 42,
|
|
|
|
}) }}
|
|
|
|
{{ f.number('form-input-number-readonly', 'Readonly', {
|
|
|
|
'readonly': true,
|
|
|
|
'value': 42,
|
|
|
|
}) }}
|
|
|
|
{{ f.number('form-input-number-wo-label', null, {
|
|
|
|
'type': 'number',
|
|
|
|
'value': 42,
|
|
|
|
}) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Textarea</h5>
|
|
|
|
<code>f.textarea(id, label, opt)</code>
|
|
|
|
{{ f.textarea('form-input-textarea', 'Textarea', {
|
|
|
|
'rows': 2,
|
|
|
|
'value': lipsum,
|
|
|
|
}) }}
|
|
|
|
{{ f.textarea('form-input-textarea-label-icons', 'Textarea with required and info icon', {
|
|
|
|
'required_icon': true,
|
|
|
|
'info': 'Very important field info!',
|
|
|
|
'rows': 2,
|
|
|
|
'value': lipsum,
|
|
|
|
}) }}
|
|
|
|
{{ f.textarea('form-input-textarea-wo-label', null, {
|
|
|
|
'required_icon': true,
|
|
|
|
'rows': 2,
|
|
|
|
'value': 'w/o label',
|
|
|
|
}) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Select</h5>
|
|
|
|
<code>f.textarea(id, label, data, opt)</code>
|
|
|
|
{{ f.select('form-input-select-1', 'Select 1', {
|
|
|
|
'opt1': 'Option 1',
|
|
|
|
'opt2': 'Option 2',
|
|
|
|
'opt3': 'Another option',
|
|
|
|
'opt4': 'A looooooooong item item item item',
|
|
|
|
}) }}
|
|
|
|
{{ f.select(
|
|
|
|
'form-input-select-2',
|
|
|
|
'Select 2',
|
|
|
|
{
|
|
|
|
'sh': 'Bash',
|
|
|
|
'js': 'JavaScript',
|
|
|
|
'p': 'PHP',
|
|
|
|
'py': 'Python',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'selected': 'js',
|
|
|
|
},
|
|
|
|
) }}
|
|
|
|
{{ f.select('form-input-select-2', 'Select 3', selectOptions, {
|
|
|
|
'selected': 'option_7',
|
|
|
|
}) }}
|
|
|
|
{{ f.select('date-select', 'Date select', dateSelectOptions) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Buttons</h5>
|
|
|
|
<code>f.button(label, opt)</code>
|
|
|
|
<div class="mb-3">
|
2021-07-29 20:18:40 +02:00
|
|
|
{{ f.button('Button') }}
|
2021-04-29 21:58:20 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
<div class="mb-3">
|
2023-05-11 16:57:45 +02:00
|
|
|
{{ f.button('sm button with icons', {
|
2023-04-19 22:34:08 +02:00
|
|
|
'size': 'sm',
|
|
|
|
'icon_left': 'check',
|
|
|
|
'icon_right': 'info',
|
|
|
|
'title': 'Click me!',
|
|
|
|
}) }}
|
|
|
|
</div>
|
2023-11-05 01:27:12 +01:00
|
|
|
<code>f.submit(label, opt)</code>
|
|
|
|
<form class="prevent-default">
|
2023-04-19 22:34:08 +02:00
|
|
|
{{ f.submit('Go!') }}
|
2022-11-29 21:47:26 +01:00
|
|
|
</form>
|
2023-11-05 01:27:12 +01:00
|
|
|
<code>f.delete(label, opt)</code>
|
2024-01-29 10:54:41 +01:00
|
|
|
<form id="delete-form">
|
2023-11-05 01:27:12 +01:00
|
|
|
{{ f.delete('Delete it', {'confirm_title': 'Delete some item'}) }}
|
|
|
|
</form>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2022-11-29 21:47:26 +01:00
|
|
|
<div id="checkboxes" class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Checkbox</h5>
|
|
|
|
<code>f.checkbox(id, label, opt)</code>
|
|
|
|
{{ f.checkbox('form-input-checkbox', 'Checkbox 1', {
|
|
|
|
'checked': true, 'value': '1',
|
|
|
|
}) }}
|
|
|
|
{{ f.checkbox('form-input-checkbox-2', 'Checkbox 2', {
|
|
|
|
'checked': false, 'value': '2',
|
|
|
|
}) }}
|
|
|
|
{{ f.checkbox('form-input-checkbox-3', 'Checkbox 3', {
|
|
|
|
'checked': false, 'value': '3',
|
|
|
|
}) }}
|
2022-11-29 21:47:26 +01:00
|
|
|
<div class="d-grid gap-2">
|
2023-04-01 15:14:32 +02:00
|
|
|
<button type="button" class="btn btn-secondary d-print-none checkbox-selection" data-id="checkboxes" data-value="true">
|
2022-11-29 21:47:26 +01:00
|
|
|
Select all
|
2023-04-01 15:14:32 +02:00
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-secondary d-print-none checkbox-selection" data-id="checkboxes" data-value="[2,3]">
|
2022-11-29 21:47:26 +01:00
|
|
|
Select 2, 3
|
2023-04-01 15:14:32 +02:00
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-secondary d-print-none checkbox-selection" data-id="checkboxes" data-value="false">
|
2022-11-29 21:47:26 +01:00
|
|
|
Unselect all
|
2023-04-01 15:14:32 +02:00
|
|
|
</button>
|
2022-11-29 21:47:26 +01:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
<hr>
|
|
|
|
{{ f.checkbox('form-input-checkbox-disabled', 'Disabled', {
|
|
|
|
'disabled': true,
|
|
|
|
}) }}
|
|
|
|
{{ f.checkbox('form-input-checkbox-raw-label', '<i>Raw label</i>', {
|
|
|
|
'raw_label': true,
|
|
|
|
}) }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="checkboxes" class="col-md-3 col-lg-2">
|
|
|
|
<h5>Switch</h5>
|
|
|
|
<code>f.switch(id, label, opt)</code>
|
|
|
|
{{ f.switch('form-switch', 'Switch') }}
|
|
|
|
{{ f.switch('form-switch-checked', 'Switch (checked)', {
|
|
|
|
'checked': true,
|
|
|
|
}) }}
|
|
|
|
{{ f.switch('form-switch-disabled', 'Switch (disabled)', {
|
|
|
|
'disabled': true,
|
|
|
|
}) }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
|
|
|
<div class="col-md-3 col-lg-2">
|
|
|
|
<h5>Hidden</h5>
|
|
|
|
<code>hidden(name, value)</code>
|
|
|
|
<p>
|
|
|
|
{{ f.hidden('hidden-name', 'hidden value') | escape }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="col-md-3 col-lg-2 checkbox-inline">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Radio</h5>
|
2022-11-30 00:43:30 +01:00
|
|
|
<div class="form-check form-check-inline">
|
|
|
|
<input class="form-check-input" type="radio" id="yey" checked="checked" name="form-input-radio" value="1">
|
|
|
|
<label class="form-check-label" for="yey">Yey</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-check-inline">
|
|
|
|
<input class="form-check-input" type="radio" id="nay" name="form-input-radio">
|
|
|
|
<label class="form-check-label" for="nay">Nay</label>
|
|
|
|
</div>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-04-19 22:34:08 +02:00
|
|
|
|
2023-01-24 19:48:42 +01:00
|
|
|
<div class="col-md-3 col-lg-2">
|
2023-04-19 22:34:08 +02:00
|
|
|
<h5>Date / time</h5>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="input_date">Date</label>
|
|
|
|
<input id="input_date" type="date" placeholder="YYYY-MM-DD" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" name="design-date" class="form-control" value="2021-09-15">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="input_datetime_local">Datetime</label>
|
|
|
|
<input id="input_datetime_local" type="datetime-local" placeholder="YYYY-MM-DD HH:MM" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2} ([01][0-9]|2[0-3]):[0-5][0-9]" name="design-datetime" class="form-control" value="2021-09-15T13:37">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="input_time">Time</label>
|
|
|
|
<input type="time" class="form-control" id="input_time" name="input_time" size="5" pattern="^\d{1,2}:\d{2}$" placeholder="HH:MM" maxlength="5" value="13:37">
|
|
|
|
</div>
|
2023-01-24 19:48:42 +01:00
|
|
|
</div>
|
2021-09-11 10:46:21 +02:00
|
|
|
</div>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="other" class="ref-id"></span>
|
|
|
|
<h3>Other <a href="#other" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2021-07-25 21:41:57 +02:00
|
|
|
<div class="col">
|
2020-12-07 18:55:09 +01:00
|
|
|
<h4>Code</h4>
|
|
|
|
<p>
|
2021-07-25 21:41:57 +02:00
|
|
|
<code>3.1415926535897932384626433832795</code>
|
2020-12-07 18:55:09 +01:00
|
|
|
</p>
|
2023-08-03 19:11:54 +02:00
|
|
|
<pre><code>Li Europan lingues es membres del sam familie.
|
|
|
|
Lor separat existentie es un myth.
|
|
|
|
Por scientie, musica, sport etc, litot Europa usa li sam vocabular.</code></pre>
|
2020-12-07 18:55:09 +01:00
|
|
|
</div>
|
2021-12-26 17:40:13 +01:00
|
|
|
<div class="col">
|
|
|
|
<h4>Pagination</h4>
|
|
|
|
<ul class="pagination">
|
|
|
|
<li class="page-item active">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="page-link prevent-default" href="#">1</a>
|
2021-12-26 17:40:13 +01:00
|
|
|
</li>
|
|
|
|
<li class="page-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="page-link prevent-default" href="#">2</a>
|
2021-12-26 17:40:13 +01:00
|
|
|
</li>
|
|
|
|
<li class="page-item">
|
2023-12-06 21:10:00 +01:00
|
|
|
<a class="page-link prevent-default" href="#">3</a>
|
2021-12-26 17:40:13 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-10-18 21:16:05 +02:00
|
|
|
<div class="col">
|
|
|
|
<h4>Countdowns</h4>
|
|
|
|
<ul>
|
2023-11-23 14:30:46 +01:00
|
|
|
<li title="{{ timestamp30s.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp30s.getTimestamp() }}">30s: %c</li>
|
|
|
|
<li title="{{ timestamp30m.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp30m.getTimestamp() }}">30m: %c</li>
|
|
|
|
<li title="{{ timestamp59m.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp59m.getTimestamp() }}">59m: %c</li>
|
|
|
|
<li title="{{ timestamp1h.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp1h.getTimestamp() }}">1h: %c</li>
|
|
|
|
<li title="{{ timestamp1h30m.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp1h30m.getTimestamp() }}">1h 30m: %c</li>
|
|
|
|
<li title="{{ timestamp1h31m.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp1h31m.getTimestamp() }}">1h 31m: %c</li>
|
|
|
|
<li title="{{ timestamp2h.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp2h.getTimestamp() }}">2h: %c</li>
|
|
|
|
<li title="{{ timestamp2d.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp2d.getTimestamp() }}">2d: %c</li>
|
|
|
|
<li title="{{ timestamp3m.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp3m.getTimestamp() }}">3m: %c</li>
|
|
|
|
<li title="{{ timestamp22y.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp22y.getTimestamp() }}">22y: %c</li>
|
2022-10-18 21:16:05 +02:00
|
|
|
</ul>
|
|
|
|
<ul>
|
2023-11-23 14:30:46 +01:00
|
|
|
<li title="{{ timestamp30mago.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp30mago.getTimestamp() }}">30m ago: %c</li>
|
|
|
|
<li title="{{ timestamp45mago.format(__('general.datetime')) }}" data-countdown-ts="{{ timestamp45mago.getTimestamp() }}">45m ago: %c</li>
|
2022-10-18 21:16:05 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-12-07 18:55:09 +01:00
|
|
|
</div>
|
|
|
|
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="macros" class="ref-id"></span>
|
|
|
|
<h2>Macros <a href="#macros" class="ref-link">{{ m.icon('link') }}</a></h2>
|
2020-04-24 18:08:09 +02:00
|
|
|
<h3>base.twig</h3>
|
2021-07-29 21:05:45 +02:00
|
|
|
<div class="row mb-4">
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="col-md-3">
|
|
|
|
<h4><code>angel()</code></h4>
|
|
|
|
<p>{{ m.angel() }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
2021-07-22 21:22:21 +02:00
|
|
|
<h4><code>icon(icon_name)</code></h4>
|
|
|
|
<p>{{ m.icon('star') }}</p>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2023-02-26 11:27:41 +01:00
|
|
|
<div class="col-md-3">
|
|
|
|
<h4><code>iconBool(true)</code></h4>
|
|
|
|
<p>{{ m.iconBool(true) }} {{ m.iconBool(false) }}</p>
|
|
|
|
</div>
|
2020-04-24 18:08:09 +02:00
|
|
|
<div class="col-md-3">
|
|
|
|
<h4><code>alert(message, type)</code></h4>
|
|
|
|
<p>{{ m.alert('Test content', 'info') }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
2022-06-06 13:00:37 +02:00
|
|
|
<h4><code>user(user, opt)</code></h4>
|
|
|
|
<p>
|
|
|
|
{{ m.user(demo_user) }}<br>
|
|
|
|
{{ m.user(demo_user_2, {'pronoun': true}) }}
|
|
|
|
</p>
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
|
|
<h4><code>button(label, url, type, size)</code></h4>
|
|
|
|
<p>{{ m.button('Label', '#', 'info', 'sm') }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-22 20:31:41 +02:00
|
|
|
<span id="bar_chart" class="ref-id"></span>
|
|
|
|
<h3>Bar Chart <a href="#bar_chart" class="ref-link">{{ m.icon('link') }}</a></h3>
|
2022-06-07 22:59:49 +02:00
|
|
|
{{ bar_chart | raw }}
|
2020-04-24 18:08:09 +02:00
|
|
|
</div>
|
2021-04-17 14:47:01 +02:00
|
|
|
</div>
|
2020-04-24 18:08:09 +02:00
|
|
|
{% endblock %}
|