Update website

This commit is contained in:
Guilhem Lavaux 2025-03-24 09:27:39 +01:00
parent a0b0d3dae7
commit ae7ef6ad45
3151 changed files with 566766 additions and 48 deletions

View file

@ -0,0 +1,15 @@
<fieldset class="left">
<legend>{% trans %}New{% context %}Create new trigger{% endtrans %}</legend>
<div class='wrap'>
{% if has_privilege %}
<a class="ajax add_anchor" href="{{ url('/database/triggers', {'db': db, 'table': table, 'add_item': true}) }}">
{{ get_icon('b_trigger_add') }}
{% trans 'Add trigger' %}
</a>
{% else %}
{{ get_icon('bd_trigger_add') }}
{% trans 'Add trigger' %}
{% endif %}
{{ show_mysql_docu('CREATE_TRIGGER') }}
</div>
</fieldset>

View file

@ -0,0 +1,50 @@
<form id="rteListForm" class="ajax" action="{{ url(table is not empty ? '/table/triggers' : '/database/triggers') }}">
{{ get_hidden_inputs(db, table) }}
<fieldset>
<legend>
{% trans 'Triggers' %}
{{ show_mysql_docu('TRIGGERS') }}
</legend>
<div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
{% trans 'There are no triggers to display.' %}
</div>
<table id="triggersTable" class="table table-light table-striped table-hover{{ items is empty ? ' hide' }} w-auto data">
<thead class="thead-light">
<tr>
<th></th>
<th>{% trans 'Name' %}</th>
{% if table is empty %}
<th>{% trans 'Table' %}</th>
{% endif %}
<th colspan="3">{% trans 'Action' %}</th>
<th>{% trans 'Time' %}</th>
<th>{% trans 'Event' %}</th>
</tr>
</thead>
<tbody>
<tr class="hide">{% for i in 0..(table is empty ? 7 : 6) %}<td></td>{% endfor %}</tr>
{{ rows|raw }}
</tbody>
</table>
{% if items is not empty %}
<div class="withSelected">
<img class="selectallarrow" src="{{ select_all_arrow_src }}" width="38" height="22" alt="{% trans 'With selected:' %}">
<input type="checkbox" id="rteListForm_checkall" class="checkall_box" title="{% trans 'Check all' %}">
<label for="rteListForm_checkall">{% trans 'Check all' %}</label>
<em class="with-selected">{% trans 'With selected:' %}</em>
<button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="export" title="{% trans 'Export' %}">
{{ get_icon('b_export', 'Export'|trans) }}
</button>
<button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="drop" title="{% trans 'Drop' %}">
{{ get_icon('b_drop', 'Drop'|trans) }}
</button>
</div>
{% endif %}
</fieldset>
</form>

View file

@ -0,0 +1,60 @@
<tr{% if row_class is not empty %} class="{{ row_class }}"{% endif %}>
<td>
<input type="checkbox" class="checkall" name="item_name[]" value="{{ trigger.name }}">
</td>
<td>
<span class='drop_sql hide'>{{ trigger.drop }}</span>
<strong>{{ trigger.name }}</strong>
</td>
{% if table is empty %}
<td>
<a href="{{ url('/table/triggers', {'db': db, 'table': trigger.table}) }}">{{ trigger.table }}</a>
</td>
{% endif %}
<td>
{% if has_edit_privilege %}
<a class="ajax edit_anchor" href="{{ url('/database/triggers', {
'db': db,
'table': table,
'edit_item': true,
'item_name': trigger.name
}) }}">
{{ get_icon('b_edit', 'Edit'|trans) }}
</a>
{% else %}
{{ get_icon('bd_edit', 'Edit'|trans) }}
{% endif %}
</td>
<td>
<a class="ajax export_anchor" href="{{ url('/database/triggers', {
'db': db,
'table': table,
'export_item': true,
'item_name': trigger.name
}) }}">
{{ get_icon('b_export', 'Export'|trans) }}
</a>
</td>
<td>
{% if has_drop_privilege %}
{{ link_or_button(
url('/sql', {
'db': db,
'table': table,
'sql_query': trigger.drop,
'goto': url('/database/triggers', {'db': db})
}),
get_icon('b_drop', 'Drop'|trans),
{'class': 'ajax drop_anchor'}
) }}
{% else %}
{{ get_icon('bd_drop', 'Drop'|trans) }}
{% endif %}
</td>
<td>
{{ trigger.action_timing }}
</td>
<td>
{{ trigger.event_manipulation }}
</td>
</tr>