diff --git a/ckanext/publisher_form/forms.py b/ckanext/publisher_form/forms.py index 2843c9b9bb3..6379abd5d9f 100644 --- a/ckanext/publisher_form/forms.py +++ b/ckanext/publisher_form/forms.py @@ -120,14 +120,8 @@ def setup_template_variables(self, context, data_dict): if 'group' in context: group = context['group'] - possible_parents = model.Session.query(model.Group).\ - filter(model.Group.state == 'active').\ - filter(model.Group.type == 'publisher').\ - filter(model.Group.id != group.id ).order_by(model.Group.title).all() - # Only show possible groups where the current user is a member - user_groups = c.userobj.get_groups('publisher') - c.possible_parents =[p for p in possible_parents if p in user_groups] + c.possible_parents = c.userobj.get_groups('publisher', 'admin') c.parent = None grps = group.get_groups('publisher') diff --git a/ckanext/publisher_form/templates/dataset_form.html b/ckanext/publisher_form/templates/dataset_form.html index 9a52ac73c94..cf7159f7a3a 100644 --- a/ckanext/publisher_form/templates/dataset_form.html +++ b/ckanext/publisher_form/templates/dataset_form.html @@ -1,4 +1,4 @@ -
Errors in form
- ${url(controller='package', action='index')+'/'}  + ${h.url(controller='package', action='search')+'/'} 

 

${errors.get('name', '')}
+ +
+ +
+ +
+ +
+ +
The URL for the web page describing the data (not the data itself).
@@ -56,8 +71,7 @@

Errors in form

- @@ -107,7 +121,7 @@

Errors in form

-

Publishers

+

Groups

Publishers
-
+
-
Publisher
-
- + - + -
+
Cannot add any groups.

Tags

- +
-
Comma-separated terms that may link this dataset to similar ones. For more information on conventions, see this wiki page.
+
Comma-separated terms that may link this dataset to similar ones. For more information on conventions, see this wiki page.
e.g. pollution, rivers, water quality
${errors.get('tag_string', '')}
@@ -166,14 +180,6 @@

Tags

A number representing the version (if applicable)
e.g. 1.2.0
-
-
- -
- @@ -200,6 +206,23 @@

Tags

+
+
+
Delete
+
+

Do you really want to change the state of this dataset?   

+ + This dataset is   + + +
+
+
+ +