Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !801

Add HasOne support as nested form

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/dsolomadin/ds-has-one-feature into master Mar 27, 2017
  • Overview 81
  • Commits 15
  • Pipelines 0
  • Changes 19

Created by: dsolomadin

This PR adds support of has_one relations in your models. HasOne relation will be rendered as nested form.

Couple of questions related to PR:

  1. I wasn't able to find any docs on how exactly this feature should be implemented, is the Nested Form a correct approach here? I definitely see uses for it (at the very least we need this feature internally), but does that makes sense in the grand scheme of things for Administrate?
  2. I'm not sure if styles here are correct.

Here are some screenshots on how it looks like in the sample application: New Product Form Product Index Page Product View Page Product View Page

Fixes #443 (closed)

PS. Open to any suggestions / comments, I'd really like to see that or something similar in Administrate so will change PR accordingly

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dsolomadin/ds-has-one-feature