mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Additional documentation pages for dialogs.
This commit is contained in:
@@ -111,7 +111,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
||||
type: 'domain',
|
||||
sqlAlterHelp: 'sql-alterdomain.html',
|
||||
sqlCreateHelp: 'sql-createdomain.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='domain_dialog.html') }}',
|
||||
dialogHelp: '{{ url_for('help.static', filename='domain_dialog.html') }}',
|
||||
label: '{{ _('Domain') }}',
|
||||
collection_type: 'coll-domain',
|
||||
hasSQL: true,
|
||||
|
||||
@@ -9,8 +9,6 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
|
||||
node: 'column',
|
||||
label: '{{ _('Columns') }}',
|
||||
type: 'coll-column',
|
||||
sqlAlterHelp: 'sql-altertable.html',
|
||||
sqlCreateHelp: 'sql-altertable.html',
|
||||
columns: ['name', 'atttypid', 'description']
|
||||
});
|
||||
};
|
||||
@@ -59,6 +57,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
|
||||
hasSQL: true,
|
||||
sqlAlterHelp: 'sql-altertable.html',
|
||||
sqlCreateHelp: 'sql-altertable.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='column_dialog.html') }}',
|
||||
canDrop: function(itemData, item, data){
|
||||
if (pgBrowser.Nodes['schema'].canChildDrop.apply(this, [itemData, item, data])) {
|
||||
var t = pgBrowser.tree, i = item, d = itemData, parents = [];
|
||||
|
||||
@@ -14,6 +14,7 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
|
||||
collection_type: 'coll-constraints',
|
||||
sqlAlterHelp: 'ddl-alter.html',
|
||||
sqlCreateHelp: 'ddl-constraints.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='check_dialog.html') }}',
|
||||
hasSQL: true,
|
||||
hasDepends: true,
|
||||
parent_type: ['table'],
|
||||
|
||||
@@ -602,6 +602,7 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
|
||||
collection_type: 'coll-constraints',
|
||||
sqlAlterHelp: 'ddl-alter.html',
|
||||
sqlCreateHelp: 'ddl-constraints.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='exclusion_constraint_dialog.html') }}',
|
||||
hasSQL: true,
|
||||
parent_type: 'table',
|
||||
canDrop: true,
|
||||
|
||||
@@ -591,6 +591,7 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
|
||||
collection_type: 'coll-constraints',
|
||||
sqlAlterHelp: 'ddl-alter.html',
|
||||
sqlCreateHelp: 'ddl-constraints.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='foreign_key_dialog.html') }}',
|
||||
hasSQL: true,
|
||||
hasDepends: false,
|
||||
parent_type: 'table',
|
||||
|
||||
@@ -11,6 +11,11 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
||||
collection_type: 'coll-constraints',
|
||||
sqlAlterHelp: 'ddl-alter.html',
|
||||
sqlCreateHelp: 'ddl-constraints.html',
|
||||
{% if node_type == 'primary_key' %}
|
||||
dialogHelp: '{{ url_for('help.static', filename='primary_key_dialog.html') }}',
|
||||
{% else %}
|
||||
dialogHelp: '{{ url_for('help.static', filename='unique_constraint_dialog.html') }}',
|
||||
{% endif %}
|
||||
hasSQL: true,
|
||||
hasDepends: false,
|
||||
parent_type: 'table',
|
||||
|
||||
@@ -39,6 +39,7 @@ function($, _, S, pgAdmin, pgBrowser, CodeMirror) {
|
||||
type: 'rule',
|
||||
sqlAlterHelp: 'sql-alterrule.html',
|
||||
sqlCreateHelp: 'sql-createrule.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='rule_dialog.html') }}',
|
||||
label: '{{ _("rule") }}',
|
||||
collection_type: 'coll-table',
|
||||
hasSQL: true,
|
||||
|
||||
@@ -43,6 +43,7 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
|
||||
hasDepends: true,
|
||||
sqlAlterHelp: 'sql-altertrigger.html',
|
||||
sqlCreateHelp: 'sql-createtrigger.html',
|
||||
dialogHelp: '{{ url_for('help.static', filename='trigger_dialog.html') }}',
|
||||
Init: function() {
|
||||
/* Avoid mulitple registration of menus */
|
||||
if (this.initialized)
|
||||
|
||||
Reference in New Issue
Block a user