-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canada-v2.9' into staging-v2.9
- Loading branch information
Showing
13 changed files
with
146 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*#################### | ||
## Datatables Views ## | ||
######################*/ | ||
div#dtprv_processing.dataTables_processing{ | ||
z-index: 9999 !important; | ||
top: 0 !important; | ||
left: 0 !important; | ||
width: 100% !important; | ||
height: 100% !important; | ||
margin: 0 !important; | ||
/* see static/js/canada_datatables for dynamic styles */ | ||
} | ||
div#dtprv_processing.dataTables_processing > div:last-child{ | ||
position: absolute !important; | ||
left: 50% !important; | ||
transform: translate(-50%, -50%) !important; | ||
pointer-events: none !important; | ||
/* see static/js/canada_datatables for dynamic styles */ | ||
} | ||
div#dtprv_processing.dataTables_processing > div:last-child > div{ | ||
background-color: #335075 !important; | ||
pointer-events: none !important; | ||
} | ||
/*##################### | ||
## END ## | ||
## Datatables Views ## | ||
## END ## | ||
#######################*/ |
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,31 @@ | ||
window.addEventListener('load', function(){ | ||
|
||
$(document).on('preInit.dt', function(_event, _settings){ | ||
|
||
$('body.dt-view').css('visibility', 'visible'); | ||
$('#dtprv_processing').css({ | ||
'background-color': 'rgba(255, 255, 255, 1)', | ||
'display': 'block', | ||
'pointer-events': 'all', | ||
}); | ||
$('#dtprv_processing > div').css('top', '15%'); | ||
|
||
}); | ||
|
||
$(document).on('init.dt', function(){ | ||
|
||
$('#dtprv_processing').css({ | ||
'background-color': 'rgba(255, 255, 255, 0.65)', | ||
'pointer-events': 'none', | ||
}); | ||
$('#dtprv_processing > div').css('top', '50%'); | ||
|
||
}); | ||
|
||
$(document).on('processing.dt', function(_event, _settings, _processing){ | ||
|
||
$('#dtprv_processing').css('display', _processing ? 'block' : 'none'); | ||
|
||
}); | ||
|
||
}); |
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 @@ | ||
css: | ||
contents: | ||
- canada_datatables.css | ||
output: canada_datatables/%(version)s_canada_datatables.css | ||
|
||
js: | ||
contents: | ||
- canada_datatables.js | ||
output: canada_datatables/%(version)s_canada_datatables.js |
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
18 changes: 18 additions & 0 deletions
18
ckanext/canada/templates/public/canada/confirm_datastore_delete.html
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,18 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block subtitle %}{{ _("Confirm Delete") }}{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
<div class="col-md-12"> | ||
{% block form %} | ||
<p>{{ _('Are you sure you want to delete this DataStore table and Data Dictionary?') }}</p> | ||
<p class="form-actions"> | ||
<form action="{{ h.url_for('canada.delete_datastore_table', id=package_id, resource_id=resource_id) }}" method="post"> | ||
<input type="hidden" name="resource_id" value="{{ resource_id }}" /> | ||
<button class="btn" type="submit" name="cancel" >{{ _('Cancel') }}</button> | ||
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button> | ||
</form> | ||
</p> | ||
{% endblock %} | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block subtitle %}{{ _("Confirm Delete") }}{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
<div class="col-md-12"> | ||
{% block form %} | ||
<p>{{ _('Are you sure you want to delete user - {name}?').format(name=user_dict.name) }}</p> | ||
<p class="form-actions"> | ||
<form action="{{ h.url_for('user.delete', id=user_dict.id) }}" method="post"> | ||
<input type="hidden" name="id" value="{{ user_dict.id }}" /> | ||
<button class="btn" type="submit" name="cancel" >{{ _('Cancel') }}</button> | ||
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button> | ||
</form> | ||
</p> | ||
{% endblock %} | ||
</div> | ||
{% 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