Update website
This commit is contained in:
parent
0a686aeb9a
commit
c4ffa0f6ee
4360 changed files with 1727 additions and 718385 deletions
|
@ -1,73 +0,0 @@
|
|||
<form class="rte_form" action="{{ url('/database/triggers') }}" method="post">
|
||||
{{ get_hidden_inputs(db, table) }}
|
||||
<input name="{{ is_edit ? 'edit_item' : 'add_item' }}" type="hidden" value="1">
|
||||
{% if is_edit %}
|
||||
<input name="item_original_name" type="hidden" value="{{ item.item_original_name }}">
|
||||
{% endif %}
|
||||
{% if is_ajax %}
|
||||
<input type="hidden" name="{{ is_edit ? 'editor_process_edit' : 'editor_process_add' }}" value="true">
|
||||
<input type="hidden" name="ajax_request" value="true">
|
||||
{% endif %}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
{% trans 'Details' %}
|
||||
{% if not is_edit %}
|
||||
{{ show_mysql_docu('CREATE_TRIGGER') }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<table class="rte_table table table-borderless table-sm">
|
||||
<tr>
|
||||
<td>{% trans 'Trigger name' %}</td>
|
||||
<td><input type="text" name="item_name" maxlength="64" value="{{ item.item_name }}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% trans 'Table' %}</td>
|
||||
<td>
|
||||
<select name="item_table">
|
||||
{% for item_table in tables %}
|
||||
<option value="{{ item_table }}"{{ (is_edit and item_table == item.item_table) or (not is_edit and item_table == table) ? ' selected' }}>{{ item_table }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% trans %}Time{% context %}Trigger action time{% endtrans %}</td>
|
||||
<td>
|
||||
<select name="item_timing">
|
||||
{% for item_time in time %}
|
||||
<option value="{{ item_time }}"{{ item.item_action_timing == item_time ? ' selected' }}>{{ item_time }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% trans 'Event' %}</td>
|
||||
<td>
|
||||
<select name="item_event">
|
||||
{% for event in events %}
|
||||
<option value="{{ event }}"{{ item.item_event_manipulation == event ? ' selected' }}>{{ event }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% trans 'Definition' %}</td>
|
||||
<td><textarea name="item_definition" rows="15" cols="40">{{ item.item_definition }}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{% trans 'Definer' %}</td>
|
||||
<td><input type="text" name="item_definer" value="{{ item.item_definer }}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% if not is_ajax %}
|
||||
<div class="card-footer">
|
||||
<input class="btn btn-primary" type="submit" name="{{ is_edit ? 'editor_process_edit' : 'editor_process_add' }}" value="{% trans 'Go' %}">
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
|
@ -1,9 +0,0 @@
|
|||
<div class="container">
|
||||
<h2>{{ 'Export of trigger %s'|trans|format(backquote(item_name)) }}</h2>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<textarea rows="15" class="form-control">{{ data|trim }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,59 +0,0 @@
|
|||
<div class="container-fluid my-3">
|
||||
<h2>
|
||||
{{ get_icon('b_triggers', 'Triggers'|trans) }}
|
||||
{{ show_mysql_docu('TRIGGERS') }}
|
||||
</h2>
|
||||
|
||||
<div class="d-flex flex-wrap my-3">
|
||||
<div>
|
||||
<div class="input-group">
|
||||
<div class="input-group-text">
|
||||
<div class="form-check mb-0">
|
||||
<input class="form-check-input checkall_box" type="checkbox" value="" id="checkAllCheckbox" form="rteListForm">
|
||||
<label class="form-check-label" for="checkAllCheckbox">{% trans 'Check all' %}</label>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-outline-secondary" id="bulkActionExportButton" type="submit" name="submit_mult" value="export" form="rteListForm" title="{% trans 'Export' %}">
|
||||
{{ get_icon('b_export', 'Export'|trans) }}
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary" id="bulkActionDropButton" type="submit" name="submit_mult" value="drop" form="rteListForm" title="{% trans 'Drop' %}">
|
||||
{{ get_icon('b_drop', 'Drop'|trans) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ms-auto">
|
||||
<a class="ajax add_anchor btn btn-primary{{ not has_privilege ? ' disabled' }}" href="{{ url('/database/triggers', {'db': db, 'table': table, 'add_item': true}) }}" role="button"{{ not has_privilege ? ' tabindex="-1" aria-disabled="true"' }}>
|
||||
{{ get_icon('b_trigger_add', 'Create new trigger'|trans) }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="rteListForm" class="ajax" action="{{ url(table is not empty ? '/table/triggers' : '/database/triggers') }}">
|
||||
{{ get_hidden_inputs(db, table) }}
|
||||
|
||||
<div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
|
||||
{% trans 'There are no triggers to display.' %}
|
||||
</div>
|
||||
|
||||
<table id="triggersTable" class="table table-striped table-hover{{ items is empty ? ' hide' }} w-auto data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{% trans 'Name' %}</th>
|
||||
{% if table is empty %}
|
||||
<th>{% trans 'Table' %}</th>
|
||||
{% endif %}
|
||||
<th>{% trans 'Time' %}</th>
|
||||
<th>{% trans 'Event' %}</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="hide">{% for i in 0..(table is empty ? 7 : 6) %}<td></td>{% endfor %}</tr>
|
||||
|
||||
{{ rows|raw }}
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
|
@ -1,61 +0,0 @@
|
|||
<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>
|
||||
{{ trigger.action_timing }}
|
||||
</td>
|
||||
<td>
|
||||
{{ trigger.event_manipulation }}
|
||||
</td>
|
||||
<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>
|
||||
</tr>
|
Loading…
Add table
Add a link
Reference in a new issue