-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auth functions and add busoperator dataset button
- Loading branch information
1 parent
8d3dd08
commit 9e87f22
Showing
4 changed files
with
18 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
def bulk_resource_upload(context, data_dict): | ||
return {'success': False} | ||
|
||
|
||
def package_busoperator(context, data_dict): | ||
return {'success': False} |
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,9 @@ | ||
{% set dataset_type = dataset_type if dataset_type else 'dataset' %} | ||
|
||
{% if group %} | ||
{% link_for _('Add Dataset'), named_route='dataset.new', group=group, class_='btn btn-primary', icon='plus-square' %} | ||
{% link_for _('Add Dataset Busoperator'), group=group, named_route='bulkupload.package_busoperator', class_='btn btn-primary', icon='plus-square' %} | ||
{% else %} | ||
{% link_for _('Add ' + dataset_type.title()), named_route='%s.new' % dataset_type, class_='btn btn-primary', icon='plus-square' %} | ||
{% link_for _('Add Dataset Busoperator'), named_route='bulkupload.package_busoperator', class_='btn btn-primary', icon='plus-square' %} | ||
{% endif %} |
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