1 <div id="div_create_version">
2 <form method="post" action="{{ url(route, url_params) }}">
3 {{ get_hidden_inputs(db) }}
4 {% for selected_table in selected %}
5 <input type="hidden" name="selected[]" value="{{ selected_table }}">
10 {% if selected|length == 1 %}
11 {{ 'Create version %1$s of %2$s'|trans|format(
13 db ~ '.' ~ selected[0]
16 {{ 'Create version %1$s'|trans|format(last_version + 1) }}
19 <input type="hidden" name="version" value="{{ last_version + 1 }}">
20 <p>{% trans 'Track these data definition statements:' %}</p>
22 {% if type == 'both' or type == 'table' %}
23 <input type="checkbox" name="alter_table" value="true"
24 {{- 'ALTER TABLE' in default_statements ? ' checked="checked"' }}>
26 <input type="checkbox" name="rename_table" value="true"
27 {{- 'RENAME TABLE' in default_statements ? ' checked="checked"' }}>
29 <input type="checkbox" name="create_table" value="true"
30 {{- 'CREATE TABLE' in default_statements ? ' checked="checked"' }}>
32 <input type="checkbox" name="drop_table" value="true"
33 {{- 'DROP TABLE' in default_statements ? ' checked="checked"' }}>
36 {% if type == 'both' %}
39 {% if type == 'both' or type == 'view' %}
40 <input type="checkbox" name="alter_view" value="true"
41 {{- 'ALTER VIEW' in default_statements ? ' checked="checked"' }}>
43 <input type="checkbox" name="create_view" value="true"
44 {{- 'CREATE VIEW' in default_statements ? ' checked="checked"' }}>
46 <input type="checkbox" name="drop_view" value="true"
47 {{- 'DROP VIEW' in default_statements ? ' checked="checked"' }}>
52 <input type="checkbox" name="create_index" value="true"
53 {{- 'CREATE INDEX' in default_statements ? ' checked="checked"' }}>
55 <input type="checkbox" name="drop_index" value="true"
56 {{- 'DROP INDEX' in default_statements ? ' checked="checked"' }}>
59 <p>{% trans 'Track these data manipulation statements:' %}</p>
60 <input type="checkbox" name="insert" value="true"
61 {{- 'INSERT' in default_statements ? ' checked="checked"' }}>
63 <input type="checkbox" name="update" value="true"
64 {{- 'UPDATE' in default_statements ? ' checked="checked"' }}>
66 <input type="checkbox" name="delete" value="true"
67 {{- 'DELETE' in default_statements ? ' checked="checked"' }}>
69 <input type="checkbox" name="truncate" value="true"
70 {{- 'TRUNCATE' in default_statements ? ' checked="checked"' }}>
74 <fieldset class="tblFooters">
75 <input type="hidden" name="submit_create_version" value="1">
76 <input class="btn btn-primary" type="submit" value="{% trans 'Create version' %}">