Releases: locomotivemtl/charcoal-admin
charcoal-admin 0.5.6
- Fix system cache template
0.5.4: Improved layout for Dual-Select
Highlights:
- Added "input_layout" to
DualSelectInput
to display the list builder either- Vertically:
"input_layout": "rows"
- Horizontally (default):
"input_layout": "cols"
- Vertically:
- Added breakpoints to
DualSelectInput
to display vertically when the screen is narrow - Improved layout of system cache view
- Fixed version mismatch for FontAwesome (4.3.0 v. 4.7.0)
- Fixed
SelectizeInput
fetching unfiltered choices
0.5.3: Selectize Update
Add support for a create button using the option allow_create
This add-on is useful when the label cannot be directly mapped to a property.
Pressing a button to create an object on the fly will ease the experience in those scenarios, no need to enter text.
You can also disable the option to create item using the usual method to make sure to avoid confusion.
"allow_create": true,
"selectize_options": {
"create": false
}
Accommodations for charcoal-attachment
New release in relation with charcoal-attachment
view https://github.com/locomotivemtl/charcoal-attachment/releases/tag/0.6
charcoal-admin 0.4.2.2
Fix email subject in lost-password action.
0.4: Selectize Upgraded for ChoiceObjMap and custom templates rendering
This adds 2 main options to selectize input :
- the choiceObjMap is now mustache renderable
- and you can supply custom mustache templates for selectize to render.
Those 2 new features are possible through custom object actions specifically made for selectize that instantiate a SelectizeInput and returns a pre-formatted array to the selectize.js plugin that can be used as-is. The selectize.js will in fact receive an array selectize
containing a value, label, item_render and option_render
that can be directly set as a selectize item.
selectize_templates usage :
"category": {
"input_type": "charcoal/admin/property/input/selectize",
"obj_type": "city/object/news-category",
"form_ident": "city.quick",
"selectize_templates": {
"item": "project/selectize/custom-item-template",
"option": "project/selectize/custom-option-template",
"controller": "project/selectize/custom-template"
}
}
Here the word option
refers to a drop-down option in select.
The Controller is optional and the object controller will be used in the case that's it's not defined.
choice_obj_map usage :
"category": {
"input_type": "charcoal/admin/property/input/selectize",
"obj_type": "city/object/news-category",
"form_ident": "city.quick",
"choice_obj_map": {
"value": "{{ident}}",
"label": "{{customLabelFunction}} - {{someAdditionalInfo }}"
}
}
0.3.10
- Multiple text property input now supports other input types than text
- Fixing padding for bottom of seamless structure widget
- Configurable On & Off labels for switch property input
- Unit Tests: Fixed "locales/manager" service
0.3.9 : Object Documentation Views
This release adds a template view for a friendly display of object properties descriptions
and notes
as well as additional information concerning input types
and input options (l10n, multiple, ...)
.
The template can be displayed using this route object/doc?obj_type=<objType>
.
To make an object doc template viewable, you don't need to do anything at all. The DocWidget will use the default edit form as default form and will strip down any widget and regroup tabs in a single page.
You also have the possibility to override the form_ident
using the form_ident
query parameter as well as form_data=[<form-data>]
query param.
If the url contains an obj_id
query param the docTemplate will display a sidebar with a button to return to this object id.
However, if you wan't more control over the DocWidget you could declare a new dashboard for it as shown it this exemple:
"dashboards": {
"doc": {
"widgets": {
"form": {
"priority": 10,
"type": "charcoal/admin/widget/doc",
"form_ident": "{{formIdentFromTemplateIdent}}",
"show_header": true,
"show_title": true,
"display_options": {
"collapsible": true,
"collapsed": true,
"parented": true
}
}
}
}
},
"default_doc_dashboard": "doc"
Implementing Relation concepts
0.3.7 Merge branch 'dlord-relation'
Selectize Changes
Selectize Changes with potential retro compatibility issues :
- Selectize no longer work with pattern
- To customize properties mapping use choice_obj_map like so:
choice_obj_map: {
"label": "title",
"value": "id"
} - The choiceObjMap now uses 'label' instead of 'text' for selectize to preserve the similarity with SelectableInterface