This file contains hidden or 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
| /* ----------------------------------------------------------------------------- | |
| Kebab Project 2.x (Kebab Revolution) - Web OS Client Platform for Ext JS 4.x | |
| http://kebab-project.com | |
| Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc. | |
| http://www.lab2023.com | |
| ----------------------------------------------------------------------------- */ | |
| /** | |
| * Prepare environment, enable loader an boot kebab automatically | |
| * |
This file contains hidden or 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
| <!-- login.html.erb --> | |
| <script type="text/javascript">Kebab.boot('Kebab.login.Application', 'http://static.kebab.local', ''); </script> | |
| <!-- desktop.html.erb --> | |
| <script type="text/javascript">Kebab.boot('Kebab.desktop.Application', 'http://static.kebab.local', '');</script> |
This file contains hidden or 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
| $searchQuery = Doctrine_Core::getTable('Model_Entity_City') | |
| ->search($this->_request->query); | |
| $searchIds = array(); | |
| foreach ($searchQuery as $result) { | |
| $searchIds[] = $result['id']; | |
| } | |
| // DQL | |
| $query = Doctrine_Query::create() |
This file contains hidden or 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
| new Ext.XTemplate( // Kiosk modu | |
| '<ul id="finished-list">', | |
| '<tpl for=".">', | |
| '<tpl if="xindex == 1">', | |
| '<li><span class="info"></span><strong class="important">{description}</strong> başvurmanızı öneririz.</span></li>', | |
| '</tpl>', | |
| '</tpl>', | |
| '</ul>' | |
| ) : |
This file contains hidden or 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
| Ext.create('Ext.XTemplate', | |
| '<h1>Active Users</h1>', | |
| '<tpl for=".">', | |
| '<tpl if="active == true">', | |
| '<div class="users">', | |
| '<p>{name}</p>', | |
| '</div>', | |
| '</tpl>', | |
| '</tpl>', | |
| '<h1>Deactive Users</h1>', |
This file contains hidden or 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 == GridPanel | |
| // Bu alandan gridin view sınıfına ulaşıp | |
| // getRowClass methodunu overwrite ediyoruz. | |
| // Method her calıstıgında record ve index parametreleri geçilir. | |
| // Burada bir css sınıfı donduruyorusnuz ve grid o sınıfı row'larına ekliyor. | |
| // O sınıfta da ıstedıgıniz renklendirmeler yapılır | |
| this.getView().getRowClass = function(record, index) { | |
| var active = record.get('active'); // burada ılgılı kaydın içeriğine ulaşılır | |
| if (!active) { // burada record ile ilgili logic işlemler yapılır. | |
| return 'passive-products'; // CSS sınıfı geri döndürülür |
This file contains hidden or 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
| /** | |
| * Load for record from grid data | |
| * | |
| * @param {Ext.data.Model} record | |
| */ | |
| editPersonnel: function(record) { | |
| var me = this, | |
| formWin = me.application.getViewport().add( | |
| Ext.widget('personnelManager_form', { | |
| action: 'edit' |
This file contains hidden or 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
| ##Userable | |
| module Userable | |
| def self.included(base) | |
| base.has_one :user, :as => :userable, :dependent => :destroy, :autosave => true | |
| base.validate :user_must_be_valid | |
| base.alias_method_chain :user, :autobuild | |
| base.extend ClassMethods | |
| base.define_user_accessors | |
| end | |
This file contains hidden or 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
| en: | |
| date: | |
| order: | |
| - :year | |
| - :month | |
| - :day | |
| wice_grid: | |
| show_filter_tooltip: Show filter | |
| hide_filter_tooltip: Hide filter | |
| csv_export_tooltip: Export to CSV |
This file contains hidden or 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
| resources = [] | |
| selectors = [] | |
| $("select[data-locations=true]").each -> | |
| el = $(this) | |
| resources[el.data('parent')] = "/locations/#{el.data('resource')}.json" | |
| selectors[el.data('parent')] = el.change -> | |
| if el.data('child') | |
| loadLocations(el.data('child'), el.data('parent'), el.val()) if el.val() | |
| else |