djgentelella 0.3.20__py3-none-any.whl → 0.3.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. djgentelella/__init__.py +1 -1
  2. djgentelella/locale/es/LC_MESSAGES/django.mo +0 -0
  3. djgentelella/locale/es/LC_MESSAGES/django.po +55 -218
  4. djgentelella/locale/es/LC_MESSAGES/djangojs.mo +0 -0
  5. djgentelella/locale/es/LC_MESSAGES/djangojs.po +48 -43
  6. djgentelella/static/djgentelella.flags.vendors.min.css +1 -1
  7. djgentelella/static/djgentelella.readonly.vendors.min.js +1 -1
  8. djgentelella/static/djgentelella.vendors.min.js +2 -2
  9. djgentelella/static/gentelella/css/custom.css +6 -5
  10. djgentelella/static/gentelella/js/datatables.js +5 -5
  11. djgentelella/static/gentelella/js/obj_api_management.js +10 -5
  12. djgentelella/static/vendors/flags/1x1/cp.svg +2 -2
  13. djgentelella/static/vendors/flags/1x1/dg.svg +2 -2
  14. djgentelella/static/vendors/flags/1x1/es-ga.svg +2 -2
  15. djgentelella/static/vendors/flags/4x3/ac.svg +2 -2
  16. djgentelella/static/vendors/flags/4x3/ea.svg +2 -2
  17. djgentelella/static/vendors/flags/4x3/es-ct.svg +2 -2
  18. djgentelella/static/vendors/interact/interact.min.js +2 -2
  19. djgentelella/static/vendors/timeline/js/timeline.js +1 -1
  20. djgentelella/templates/gentelella/blocks/modal_template.html +1 -1
  21. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/METADATA +14 -14
  22. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/RECORD +26 -26
  23. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/WHEEL +1 -1
  24. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/AUTHORS +0 -0
  25. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/LICENSE.txt +0 -0
  26. {djgentelella-0.3.20.dist-info → djgentelella-0.3.22.dist-info}/top_level.txt +0 -0
@@ -1454,11 +1454,7 @@ td.details {
1454
1454
  .example_alt_pagination div.dataTables_info {
1455
1455
  width: 40%
1456
1456
  }
1457
- .paging_full_numbers {
1458
- width: 400px;
1459
- height: 22px;
1460
- line-height: 22px
1461
- }
1457
+
1462
1458
  .paging_full_numbers a:active {
1463
1459
  outline: none
1464
1460
  }
@@ -4652,3 +4648,8 @@ input-group > .custom-file {
4652
4648
  margin: 0;
4653
4649
  opacity: 0;
4654
4650
  }
4651
+
4652
+ .no-export-col i {
4653
+ margin: 0em 1.2em;
4654
+ font-size: 1.3em;
4655
+ }
@@ -181,12 +181,12 @@ function objshowlink(data, type, row, meta){ return data ? '<a href="'+data.url+
181
181
  function objnode(data, type, row, meta){ return data ? '<'+data.tagName+' href="'+data.url+'" '+data.extraattr+' class="'+(data.class!=undefined ? data.class : 'link')+'"> '+data.display_name+ '</'+data.tagName+'>': ''; };
182
182
  function objShowBool(data, type, row, meta){ return data ? '<i class="fa fa-check-circle" title="' + data + '">': '<i class="fa fa-times-circle" title="' + data + '">'; };
183
183
 
184
- document.table_default_dom = "<'row mb-3'<'col-sm-12 col-md-12 mb-1 d-flex align-items-center justify-content-center'f>" +
185
- "<'col-sm-6 col-md-6 mt-1 d-flex align-items-center justify-content-start'B>" +
186
- "<'col-sm-6 col-md-6 mt-1 d-flex align-items-center 'l>>" +
184
+ document.table_default_dom = "<'row mb-1'<'col-sm-4 col-md-4 d-flex align-items-center justify-content-start'f>" +
185
+ "<'col-sm-4 col-md-4 d-flex align-items-center justify-content-center'B>" +
186
+ "<'col-sm-3 col-md-3 d-flex align-items-center justify-content-end 'l>>" +
187
187
  "<'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>";
188
188
 
189
-
189
+ $.fn.dataTable.Buttons.defaults.dom.button.className="btn btn-sm";
190
190
 
191
191
  function gtCreateDataTable(id, url, table_options={}){
192
192
  const options = Object.assign({}, {
@@ -215,7 +215,7 @@ function gtCreateDataTable(id, url, table_options={}){
215
215
  action: function ( e, dt, node, config ) {clearDataTableFilters(dt, id)},
216
216
  text: '<i class="fa fa-eraser" aria-hidden="true"></i>',
217
217
  titleAttr: gettext('Clear Filters'),
218
- className: 'btn-sm mr-4'
218
+ className: 'btn-outline-secondary mr-4'
219
219
  },
220
220
  ],
221
221
  ajax: {
@@ -69,7 +69,7 @@ async function obtainFormAsJSON(form, prefix = '', extras={}) {
69
69
  }
70
70
 
71
71
  function convertToStringJson(form, prefix="", extras={}){
72
- result=obtainFormAsJSON(form[0], prefix=prefix, extras={});
72
+ result=obtainFormAsJSON(form[0], prefix=prefix, extras=extras);
73
73
  return result;
74
74
  }
75
75
 
@@ -504,7 +504,8 @@ function ObjectCRUD(uniqueid, objconfig={}){
504
504
  relation_render: {},
505
505
  headers: {'X-CSRFToken': getCookie('csrftoken'), 'Content-Type': 'application/json'},
506
506
  btn_class: {
507
- create: 'btn-sm mr-4'
507
+ create: 'btn-outline-success mr-4',
508
+ clear_filters: 'btn-outline-secondary mr-4'
508
509
  },
509
510
  icons: {
510
511
  create: '<i class="fa fa-plus" aria-hidden="true"></i>',
@@ -620,7 +621,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
620
621
  action: this.create(this),
621
622
  text: this.config.icons.create,
622
623
  titleAttr: gettext('Create'),
623
- className: this.config.create
624
+ className: this.config.btn_class.create
624
625
  })
625
626
  }
626
627
  if(this.can_list){
@@ -628,7 +629,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
628
629
  action: function ( e, dt, node, config ) {clearDataTableFilters(dt, instance.config.datatable_element)},
629
630
  text: this.config.icons.clear,
630
631
  titleAttr: gettext('Clear Filters'),
631
- className: this.header_btn_class
632
+ className: this.config.btn_class.clear_filters
632
633
  })
633
634
  }
634
635
  if(!config.datatable_inits.hasOwnProperty("buttons")){
@@ -639,6 +640,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
639
640
  {
640
641
  'name': "detail",
641
642
  'action': 'detail',
643
+ 'title': gettext('Detail'),
642
644
  'url': null,
643
645
  'i_class': this.config.icons.detail,
644
646
  }
@@ -649,6 +651,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
649
651
  {
650
652
  'name': "update",
651
653
  'action': 'update',
654
+ 'title': gettext("Update"),
652
655
  'url': null,
653
656
  'i_class': this.config.icons.update,
654
657
  }
@@ -659,6 +662,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
659
662
  {
660
663
  'name': 'destroy',
661
664
  'action': 'destroy',
665
+ 'title': gettext('Delete'),
662
666
  'url': null,
663
667
  'i_class': this.config.icons.destroy,
664
668
  }
@@ -692,6 +696,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
692
696
  if(display_in_column){
693
697
  let params = "'"+instance.uniqueid+"', '"+action.name+"', "+meta.row;
694
698
  edittext += '<i onclick="javascript:call_obj_crud_event('+params+');"';
699
+ edittext += 'title="'+action.title+'"';
695
700
  edittext += ' class="'+instance.object_actions[x].i_class+'" ></i>';
696
701
  }
697
702
  }
@@ -762,7 +767,7 @@ function ObjectCRUD(uniqueid, objconfig={}){
762
767
  }
763
768
  ).then(response_manage_type_data(instance, error_fn, instance.error_text))
764
769
  .then(instance.success(instance))
765
- .catch(instance.error(instance));
770
+ .catch(error => instance.handle_error(instance, error));
766
771
  }
767
772
  },
768
773
  'retrieve_data': function(url, method, success){
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <html>
2
2
  <head><title>404 Not Found</title></head>
3
- <body bgcolor="white">
3
+ <body>
4
4
  <center><h1>404 Not Found</h1></center>
5
- <hr><center>nginx/1.10.3</center>
5
+ <hr><center>nginx</center>
6
6
  </body>
7
7
  </html>