You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you want should be possible already through the schema configuration:
use Mojolicious::Lite;
plugin Yancy => {
backend => '...',
read_schema => 1, # this will fill in the rest of the schema
schema => {
passports => {
properties => {
reg_address => {
title => 'Registration address',
description => 'Put a description here, it will appear',
},
},
},
};
Also, it looks like the field_for() helper does take a %opt hash, it's just not documented ☹️. I'll fix the documentation. The %opt hash takes the same keys as the schema (so, title and description).
[Added]
- Added the ability for any "route" configuration to be a string.
These will automatically be made into routes for you. Thanks
@pavelsr for the suggestion! [Github #90]
- Added "yancy.auth.logout" helper and route so that any authed user
can be cleared out from any auth plugin. Thanks @pavelsr for the
suggestion! [Github #91]
[Fixed]
- Fixed a bunch of missing/broken documentation (found by @pavelsr
in #90, #91, and #92)
E.g. I have a field which has following sql definition
I want that in form corresponding
<label>...</label>
will beRegistration address
(name
attribute untouched )For now I have following output of Yancy::Plugin::Form::input_for
yancy->form->input
%args
have no way to customize<label>
tag valueCurrently there is only
enum_labels
param used for just boolean fields that generate output likeIs there any undocumented way to customize label for other input types ?
If no, do you think that suggested feature would be useful ? If yes, I can try to make a PR.
The text was updated successfully, but these errors were encountered: