Code Monkey home page Code Monkey logo

ivory-ordered-form's Introduction

README

Travis Build Status AppVeyor Build status Code Coverage Scrutinizer Code Quality Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

The library allows to order your Symfony2 form fields by adding the position option. A position can either be first, last or an associative array describing before and/or after field.

Documentation

  1. Installation
  2. Usage
  3. Known limitations

Testing

The library is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.

Contribute

We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR! You can follow the CONTRIBUTING file which will explain you how to set up the project.

License

The Ivory Ordered Form is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.

ivory-ordered-form's People

Contributors

gelolabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ivory-ordered-form's Issues

Inheritance

I have two forms A with field a and Form B with field b. Form B extends form A.
Currently it doesn't seem to work to set the position of the field b in the form B to 'first' or 'before a'.

error when unsetting form children

hello

when I make buildView or finishView in Form and I use $view->offsetUnset('submit'); there is error while rendering "Notice: Undefined index: submit " -> OrderedResolvedFormType.php at line 63

you should detect if form exist .. I just make small fix in my project in OrderedResolvedFormType:

if(isset($children[$name])) {
    $view->children[$name] = $children[$name];
    unset($children[$name]);
}

can you look at it ? find right solution ... solve it on all places... test it ... and make commit ?

no preselection in edition ( "selected" )

Hello,

I used your bundle, it works very well unfortunately when I'm in a form for editing the values โ€‹โ€‹of the object are not preselected value selection is that of the empty value.

If you want more information, do not hesitate.

For information :
for create form i use the method create of form.factory
The selected fail with an object or array ( always the first option is selected / choice widget )

  $form = $this->formFactory->create(
                $name,
                null, 
                array('validation_groups' => $validationGroups));

I hope you find

Cause at the moment, i can't use your usefull bundle.

Good luck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.