Skip to content

dbaines/sublime-koi-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View Snippets

koinav
Generates a koi_render_navigation.

koinavold
Generates the old render_navigation for legacy projects.

koisetting
Generates a model.setting with role and field_type defaults.

koisearch
Generates markup for a search form.

Model Snippets

modelimage
Generates the required code to turn image_uid and image_name in to a upload image field on the model.

modeladminfields
Generates a template for koi admin index fields and form fields.

modelactive
Generates the field type for an active boolean along with a scope for showing only items that are active.

modelscope
Similar to modelactive, but without the crud config code. Used for creating a scope on a model.

modeldefaultscope
Generates a default scope using date_created.

modelvalidation
Generates a simple presence validation for a model.

modelvalidateemail
Generates an email regex validation for a model.

modelvalidateterms
Generate a boolean validation for terms.

Helper Snippets

helperyesno
A helper function to turn true/false in to yes/no.

JS Snipppets

jsboiler
Generate a boilerplate for ornament Javascript.

About

Snippets for Koi CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published