Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with making hidden field in create and edit actions, which changes positions of other form fields. #2487

Closed
SuperMasterBlasterLaser opened this issue Nov 24, 2015 · 2 comments

Comments

@SuperMasterBlasterLaser
Copy link
Contributor

Hello.

I have updated rails_admin to 0.8.* version.

In my create and edit actions, there is hidden field which will assign id of current user that logged in:

   edit do
      include_all_fields
      field :updater_id, :hidden do
        visible true
        def value
           bindings[:view]._current_user.id
        end
     end
   end

When I open my page it shows me this:
1

Then I opened html code of this:

2

According to source of this page. It creates col-sm-10 column for hidden field which moves next field.

@SuperMasterBlasterLaser SuperMasterBlasterLaser changed the title Issue making hidden field in create and edit action changes positions of other form fields. Issue with making hidden field in create and edit actions, which changes positions of other form fields. Nov 24, 2015
@mshibuya
Copy link
Member

mshibuya commented Oct 3, 2020

Merged #3278.

@mshibuya mshibuya closed this as completed Oct 3, 2020
@SuperMasterBlasterLaser
Copy link
Contributor Author

@mshibuya Finally after five years. 😂🎈✨🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants