Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3414 from ckan/3414-datastore-info
datastore Data Dictionary as postgresql comments
- Loading branch information
Showing
12 changed files
with
221 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% ckan_extends %} | ||
|
||
{% block inner_primary_nav %} | ||
{{ super() }} | ||
{{ h.build_nav_icon('resource_data', _('DataStore'), id=pkg.name, resource_id=res.id) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "package/resource_edit_base.html" %} | ||
|
||
{% import 'macros/form.html' as form %} | ||
|
||
{% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ h.resource_display_name(res) }}{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
|
||
{% set action = h.url_for( | ||
controller='ckanext.datastore.controller:DatastoreController', | ||
action='dictionary', id=pkg.name, resource_id=res.id) %} | ||
|
||
<form method="post" action="{{ action }}" > | ||
{% block dictionary_form %} | ||
{% for f in fields %} | ||
<h3>{{ _( "Field {num}.").format(num=loop.index) }} {{ f.id }} ({{ f.type }})</h3> | ||
{{ form.input('f' ~ loop.index ~ 'label', | ||
label=_('Label'), id='field-f' ~ loop.index ~ 'label', | ||
value=f.get('info', {}).get('label', ''), classes=['control-full']) }} | ||
{{ form.markdown('f' ~ loop.index ~ 'notes', | ||
label=_('Description'), id='field-d' ~ loop.index ~ 'notes', | ||
value=f.get('info', {}).get('notes', '')) }} | ||
{% endfor %} | ||
{% endblock %} | ||
<button class="btn btn-primary" name="save" type="submit"> | ||
<i class="fa fa-book"></i> {{ _('Save') }} | ||
</button> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% ckan_extends %} | ||
|
||
{% block inner_primary_nav %} | ||
{{ super() }} | ||
{% if res.datastore_active %} | ||
{{ h.build_nav_icon('resource_dictionary', _('Data Dictionary'), id=pkg.name, resource_id=res.id) }} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters