Additional documentation pages for dialogs.

This commit is contained in:
Susan Douglas
2016-05-27 17:13:36 +01:00
committed by Dave Page
parent f247153920
commit b482ba6ce9
58 changed files with 646 additions and 14 deletions

View File

@@ -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,

View File

@@ -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 = [];

View File

@@ -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'],

View File

@@ -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,

View File

@@ -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',

View File

@@ -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',

View File

@@ -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,

View File

@@ -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)