-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Antonio Ramirez
committed
Oct 2, 2012
1 parent
8010c11
commit b0b6ebd
Showing
20 changed files
with
748 additions
and
29 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,64 @@ | ||
YiiBooster | ||
========== | ||
|
||
YiiBooster is a collection of widgets and utilities that will easy the task of developing Yii applications with the beauty of [Twitter Bootstrap](http://twitter.github.com/bootstrap/). It is developed over the excellent job of [Christoffer Niska](https://twitter.com/Crisu83): ***[Yii-Bootstrap](http://www.cniska.net/yii-bootstrap/)***. | ||
|
||
We included his library into our own Yii project startup library, [YiiBoilerplate](http://github.com/clevertech/yiiboilerplate), and started improving it in order to satisfy some of our customers' project requirements. The end result was a highly complete library, full of great widgets and plugins that not only allow developers to use Bootstrap with Yii but to solve programming challenges with easy. | ||
|
||
To get started, checkout [http://yii-booster.clevertech.biz](http://yii-booster.clevertech.biz)! | ||
|
||
###Quick Start | ||
Clone the repo, `git clone git://github.com/clevertech/yiibooster.git`, or [download the latest release](https://github.com/clevertech/YiiBooster/zipball/master). | ||
|
||
###Widgets | ||
|
||
The YiiBooster library includes: | ||
|
||
* Buttons | ||
* Buttons Groups | ||
* Buttons DropDowns | ||
* Navigational Tabs, Pills and Lists | ||
* Navigation Toolbars | ||
* Labels | ||
* Badges | ||
* Page headers and hero units | ||
* Thumbnails | ||
* Alerts | ||
* Progress Bars | ||
* Modals | ||
* Dropdowns | ||
* Tooltips | ||
* Popovers | ||
* Accordion | ||
* Carousel | ||
* Typeahead | ||
* WYSIWYG HTML Editors | ||
* Boxes | ||
* Google Charts | ||
* HighCharts | ||
* JSON Grid | ||
* JSON Button Column | ||
* JSON Data Column | ||
* JSON Pager | ||
* Extended Grid | ||
* Extended Summary | ||
* Inline Column Edition | ||
* Grid/Chart Switcher | ||
* Image Column | ||
* Picker Column | ||
* Total Sum Column | ||
* Grouping Grid | ||
* Merge cells or columns | ||
|
||
###Bug tracker | ||
If you find any bugs, please create an issue at [https://github.com/clevertech/YiiBooster/issues](https://github.com/clevertech/YiiBooster/issues) | ||
|
||
###License | ||
[![License](http://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/) | ||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/) | ||
|
||
==== | ||
|
||
> [![Clevertech](http://clevertech.biz/images/slir/w54-h36-c54:36/images/site/index/home/clevertech-logo.png)](http://www.clevertech.biz) | ||
well-built beautifully designed web applications | ||
[www.clevertech.biz](http://www.clevertech.biz) |
6 changes: 6 additions & 0 deletions
6
common/extensions/bootstrap/assets/css/bootstrap-relational.css
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,6 @@ | ||
.tbrelational-column { | ||
text-decoration: none; | ||
border-bottom: dashed 1px #08C; | ||
cursor: pointer; | ||
color: #08C; | ||
} |
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
56 changes: 56 additions & 0 deletions
56
common/extensions/bootstrap/assets/js/jquery.sortable.gridview.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
(function($){ | ||
var originalPos = null; | ||
|
||
var fixHelperDimensions = function(e, tr) { | ||
originalPos = tr.prevAll().length; | ||
var $originals = tr.children(); | ||
var $helper = tr.clone(); | ||
$helper.children().each(function(index) | ||
{ | ||
$(this).width($originals.eq(index).width()+1).height($originals.eq(index).height()) | ||
.css({ | ||
"border-bottom":"1px solid #ddd" | ||
}); | ||
}); | ||
return $helper.css("border-right","1px solid #ddd"); | ||
}; | ||
|
||
/** | ||
* Returns the key values of the currently checked rows. | ||
* @param id string the ID of the grid view container | ||
* @param column_id string the ID of the column | ||
* @return array the key values of the currently checked rows. | ||
*/ | ||
$.fn.yiiGridView.sortable = function (id, callback) | ||
{ | ||
var grid = $('#'+id) ; | ||
$("tbody", grid).sortable({ | ||
helper: fixHelperDimensions, | ||
update: function(e,ui){ | ||
// update keys | ||
var pos = $(ui.item).prevAll().length; | ||
if(originalPos !== null && originalPos != pos) | ||
{ | ||
var keys = grid.children(".keys").children("span"); | ||
var key = keys.eq(originalPos); | ||
|
||
if(originalPos < pos) | ||
{ | ||
keys.eq(pos).after(key); | ||
} | ||
if(originalPos > pos) | ||
{ | ||
keys.eq(pos).before(key); | ||
} | ||
originalPos = null; | ||
} | ||
if($.isFunction(callback)) | ||
{ | ||
callback(key.text(),pos); | ||
} | ||
} | ||
}).disableSelection(); | ||
}; | ||
|
||
|
||
})(jQuery); |
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
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
Oops, something went wrong.