https://github.com/gorenje/crm_friendly
FatFreeCrm plugin for Friendly
https://github.com/gorenje/crm_friendly
Last synced: 2 months ago
JSON representation
FatFreeCrm plugin for Friendly
- Host: GitHub
- URL: https://github.com/gorenje/crm_friendly
- Owner: gorenje
- License: mit
- Created: 2010-09-14T09:46:43.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-18T15:43:23.000Z (over 14 years ago)
- Last Synced: 2025-01-04T19:44:45.382Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
Crm Friendly
============Basically this is some stuff that makes working with Friendly easier in Fat Free CRM.
At the moment this ain't much, but every little bit helps!
Example
=======Creating a product tab, based on a model with Friendlty, for Fat Free would be a case
of including this plugin + gem and then in the model for the product:--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
class Product
include Friendly::Document
include Friendly::Extensions ## include after including document...
end
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<And in the init.rb of the products plugin:
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
require "fat_free_crm"FatFreeCRM::Plugin.register(:product_tab, initializer) do
name "Product Tab"
author "Max Mustermann"
version "0.1"
description "Product tab for our great products"
dependencies :haml, :crm_friendly
tab :main, :text => :tab_products, :url => { :controller => "products" }
end
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<That's it ... besides having to hack all the views and controller!
Bugs
====No test.
Although I've been testing this module indirectly by having tests for my Product model.
Copyright (c) 2010 Gerrit Riessen, released under the MIT license