1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Remove remnants of Typus.

This commit is contained in:
Dan Barber 2013-04-07 20:37:31 +01:00
parent 98674591d2
commit 6402bc9f82
5 changed files with 0 additions and 132 deletions

View File

@ -1,68 +0,0 @@
# Models
This is an example of a **Typus** enabled model with all available options. You
can use this example to customize your YAML files which only have set the most
common settings.
Post:
fields:
default: id, title, category_id, created_at, is_published?
list: id, title, category_id, created_at, is_published?
form: title, body, is_published?, created_at
show: title, category, is_published?
relationship: title, status
options:
auto_generated:
booleans:
is_published: ["Yes, it is", "No, it isn't"]
date_formats:
created_at: post_long
selectors:
read_only:
filter_by_date_range: valid_until
templates:
body: rich_text
actions:
index: cleanup
edit: send_as_newsletter
show: rebuild
export: csv, xml
order_by: created_at
relationships:
filters: is_published?, created_at, category_id
search: title, body
application: Application
description: Some text to describe the model
options:
action_after_save: index
default_action_on_item: show
end_year: 2015
form_rows: 25
minute_step: 15
nil: 'nil'
only_user_items: true
per_page: 5
start_year: 1990
Note: To define namespace models use :: as a separator. (i.e. Delayed::Job)
# Roles
In this file you can configure the actions available for each of your models on
the application. You can also use the 'all' shortcut to allow the user the
access to all actions.
admin:
Post: create, read, update, delete
Category: create, read, update, delete
TypusUser: all
editor:
Post: create, read, update
Category: read, update
You can also define `resources` which are not related to a model, for example
to control `Redis`.
admin:
Redis: index, flush_all

View File

@ -1,33 +0,0 @@
# Typus Models Configuration File
#
# Use the README file as a reference to customize settings.
Category:
fields:
default: name, photo_id, base_colour, sort
form: name, description, photo_id, base_colour, sort
order_by:
relationships: photos
filters:
search: name
application: Photos
Photo:
fields:
default: photo, title, enabled, featured, views
form: photo, title, description, flickr_url, enabled, featured, sort
order_by:
relationships: categories
filters:
search: title
application: Photos
Page:
fields:
default: name, title
form: name, title, content
order_by:
relationships:
filters:
search: title
application: Photos

View File

@ -1,8 +0,0 @@
# Typus Roles Configuration File
#
# Use the README file as a reference to customize settings.
admin:
Category: create, read, update, delete
Photo: create, read, update, delete
Page: create, read, update, delete

View File

@ -1,17 +0,0 @@
# Typus Models Configuration File
#
# Use the README file as a reference to customize settings.
AdminUser:
fields:
default: first_name, last_name, role, email, language
list: email, role, status
form: first_name, last_name, role, email, password, password_confirmation, language
options:
selectors: role, language
booleans:
status: Active, Inactive
filters: status, role
search: first_name, last_name, email, role
application: Admin Panel
description: Users Administration

View File

@ -1,6 +0,0 @@
# Typus Roles Configuration File
#
# Use the README file as a reference to customize settings.
admin:
AdminUser: all