marmelab / marmelab/ng-admin

Align several fields on same row?

Open
#448 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
JavaScript
Stars
3.9k
Forks
703
PR merge metrics
No merged PRs in 30d

Description

Let's consider the following form:

image

It would be great to be able to align several fields on the same row:

angular admin

It may be done introducing a new nga.row function. We may then add fields to it, and templates would render it in a single div.row element, with each size automatically computed (3 elements, 12 columns => div.col-md-4) unless specified.

What do you think of it?

We can already do it using custom template, but it requires to create new templating-purposed only directive to embed several fields. Pretty cumbersome and not optimal IMO.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests. Start by tracing the existing custom template and directive approach for rendering multiple fields, then assess how a proposed nga.row API would fit the current templates. Done would mean agreeing on the row API and automatic or explicit column sizing before implementation begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.