Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding export button and print button to datatables theme. Remove the…

… pdf button is useless and can cause lot of problems.
  • Loading branch information...
commit c84659bd026a681448d1c024c9aae897484bfe77 1 parent d02032c
@scoumbourdis authored
View
1  application/config/grocery_crud.php
@@ -12,3 +12,4 @@
$config['grocery_crud_file_upload_max_file_size'] = '20MB'; //ex. '10MB' (Mega Bytes), '1067KB' (Kilo Bytes), '5000B' (Bytes)
$config['grocery_crud_default_text_editor'] = 'ckeditor'; //You can choose 'ckeditor' or 'tinymce'
+ $config['grocery_crud_text_editor_type'] = 'minimal'; //You can choose 'minimal' or 'full'
View
11 assets/grocery_crud/themes/datatables/css/datatables.css
@@ -16,6 +16,10 @@
margin-right: 0px !important;
margin-left: 4px !important;
}
+div.DTTT_container
+{
+ margin-bottom: 8px !important;
+}
.form-title
{
padding: 0.4em !important;
@@ -202,6 +206,13 @@ ul.chzn-choices li.search-field input
{
box-shadow: none !important;
}
+.datatables-add-button
+{
+ position: absolute;
+ margin-top:10px;
+ margin-left:5px;
+}
+
.datatables div.form-div{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color: #444;}
.datatables div.form-div input[type=text],.datatables div.form-div textarea,.datatables div.form-div select{display:inline-block;line-height:18px;color:#444;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.datatables div.form-div input[type=text],.datatables div.form-div select,.datatables div.form-div textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;}
View
5 assets/grocery_crud/themes/datatables/js/datatables.js
@@ -40,11 +40,6 @@ $(document).ready(function() {
"mColumns": mColumns
},
{
- "sExtends": "pdf",
- "sButtonText": "PDF",
- "mColumns": mColumns
- },
- {
"sExtends": "print",
"sButtonText": "Print",
"mColumns": mColumns
View
2  assets/grocery_crud/themes/datatables/views/list_template.php
@@ -61,10 +61,12 @@
<?php }?>
</div>
<?php if(!$unset_add){?>
+<div class="datatables-add-button">
<a role="button" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" href="<?php echo $add_url?>">
<span class="ui-button-icon-primary ui-icon ui-icon-circle-plus"></span>
<span class="ui-button-text"><?php echo $this->l('list_add'); ?> <?php echo $subject?></span>
</a>
+</div>
<?php }?>
<div style='height:10px;'></div>
<?php echo $list_view?>
View
6 change_log.txt
@@ -1,5 +1,7 @@
-v 1.3 BETA
- Adding CKEditor as the default texteditor for grocery CRUD. You can also easily change to tinymce from the grocery_crud config file
+v 1.3
+ Adding export button and print button to datatables theme.
+ Adding CKEditor as the default texteditor for grocery CRUD. You can also easily change to tinymce from the grocery_crud config file.
+ #68 - set_relation doesn't work as expected when the third field (title name) is the same on two or more set_relation methods.
v 1.2.3
Compatible with Codeigniter version 2.1.1
Adding Hungarian language.
Please sign in to comment.
Something went wrong with that request. Please try again.