Coder Social home page Coder Social logo

crud's Introduction

Anavel CRUD Build Status Scrutinizer Code Quality Code Coverage StyleCI

Anavel CRUD automates the Create, Read, Update and Delete tasks over your Laravel application Eloquent models on a very fast and simple way.

Note: This package is in active development and NOT ready for production.

Official Documentation

Documentation for Anavel CRUD module can be found on the Anavel website.

Contributing

Thank you for considering contributing to the Anavel Laravel CMS! The contribution guide can be found in the Anavel documentation.

License

Anavel is open-sourced software licensed under the MIT license.

crud's People

Contributors

edusalguero avatar ablunier avatar cmoralesweb avatar eusonlito avatar xabiercid avatar

Stargazers

 avatar  avatar Tom Colgan avatar Berto Yáñez avatar Carlos González Goce avatar

Watchers

Richard Scoop avatar James Cloos avatar  avatar  avatar

crud's Issues

Pagination

Page buttons disappear when you access the last page of a table.

Improved UI with select

<select> and specially <select multiple> need a better UI. I suggest Selectize or something similar. Example:

$('select').selectize()

that's all.

Group menu items

It should be possible to group elements in the left menu, in a tree-like manner.

Publish code descriptions in list page

Show descriptions of codes, instead values, in list page, as the same way that they can be defined descriptions for codes in edit page:

            'defaults' => [
                'my_code' => [
                    'my_value_1' => 'my_description_1',
                    'my_value_2' => 'my_description_2',
                    ...

Properly handle required images

Images that have not null in the DB need to be set to no_validate in the config file. This should be handle better, inserting a hidden field with the value.

Mini-crud create new records when you are trying to delete others

Case:

  1. Minicrud, with a field selectable from a list (select component, created by "defaults" option)
  2. Minicrud tab shows some stored records, and at the bottom, the form to add a new record. In this form, the select component has the first element selected
  3. Try to delete the first record, checking the "delete check", and clicking "save"
  4. Controller receive the delete action, and the form for new record filled with the "select field", so, it creates a new record, too.

Delete contents

This message is shown when I try to delete an element from a table: Bad Request. Your browser sent a request that this server could not understand.

For example, when I try to delete an association.

Gettext improvements

It would be great to have these features on it:

  • Copy the original text on the translation field making double click.
  • Add a 'Save as (other language)' button, to copy all the translations of that language in other.

Preview a resource functionality

Ability to preview a resource with the public UI. A good way to do this could be setting a "preview_route" in the model config, which should point to the public web URI of the resource. So, checking premissions to preview an item should be responsibility of the public web controller, giving more flexibility on the preview UI an logic. This config will show a "Preview" button on the CRUD UI.

Mandatory fields

Could we identify in someway which of the fields are mandatory? Using * or something similar :)

Create "global" section in config

There are some settings that might need to be repeated multiple times across models, e.g.:

    'edit'      => [
                'form_types' => [
                    'image' => 'file'
                ]
            ],
            'relations'              => [
                'translations' => [
                    'type' => 'translation',
                    'name' => 'translations'
                ]
            ]

It would be nice to have a 'global' section in the config file, to set some things for all models. X fieldname should always be a file field; if Y relation exist, it should always be included, etc

Cannot unset Select relations

Optional BelongsTo relations, which are set with a select, cannot be unset (aka set to null): the generated query is incorrect:

SQL: update userssetupdated_at= 2016-08-05 10:04:53,external_id= whereid = 145

(notice the missing value for the external_id field)

There should be a way to force that null, somehow similarly to what we do to checkboxes.

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.