Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

/table/add form confusing with labels and foreign keys #75

Open
@joshrabinowitz

Description

@joshrabinowitz

If I have a two tables and a simple_crud interface like:

create table things ( id int, name varchar, category_id int);create table categories ( id int, name varchar, );simple_crud( prefix=> '/things', db_table=>'things', foreign_keys => { strategy_id => { table=>'categories', key_column=>'id', label_column=>'name' }}, labels => { category_id=>"Category" },);

Then when viewing the /things/add form , then for the 'category_id' field of the things table will show an input labelled 'category' even though you have to enter a 'category_id'.

In some cases this is correct (when there's only one row in the categories table, then it seems like it'll show a checkbox for that category), but if asking for a category id this is misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp