{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/1008","labels_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1008/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1008/comments","events_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1008/events","html_url":"https://github.com/plataformatec/simple_form/pull/1008","id":30425392,"number":1008,"title":"Put a whitespace before the inline_label if it is present","user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-28T21:47:59Z","updated_at":"2015-03-10T15:25:36Z","closed_at":"2014-03-31T17:02:42Z","pull_request":{"url":"https://api.github.com/repos/plataformatec/simple_form/pulls/1008","html_url":"https://github.com/plataformatec/simple_form/pull/1008","diff_url":"https://github.com/plataformatec/simple_form/pull/1008.diff","patch_url":"https://github.com/plataformatec/simple_form/pull/1008.patch"},"body":"To align with the Bootstrap interface we need to put an space before the inline label:\r\n\r\n![screen shot 2014-03-28 at 18 43 30](https://cloud.githubusercontent.com/assets/47848/2555613/1923fd62-b6c2-11e3-88b7-188f96437478.png)\r\n\r\nSo when we call:\r\n\r\n```erb\r\n<%= f.input :checkbox, as: :boolean, inline_label: 'Remember me' %>\r\n```\r\n\r\nThe label will be placed correctly.\r\n\r\nI'm not sure if we should do this by default or require the users to put the whitespace in the label text like this:\r\n\r\n```erb\r\n<%= f.input :checkbox, as: :boolean, inline_label: ' Remember me' %>\r\n```\r\n\r\ncc @carlosantoniodasilva "},"comment":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/comments/78077298","html_url":"https://github.com/plataformatec/simple_form/pull/1008#issuecomment-78077298","issue_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1008","id":78077298,"user":{"login":"willkoehler","id":889420,"avatar_url":"https://avatars.githubusercontent.com/u/889420?v=3","gravatar_id":"","url":"https://api.github.com/users/willkoehler","html_url":"https://github.com/willkoehler","followers_url":"https://api.github.com/users/willkoehler/followers","following_url":"https://api.github.com/users/willkoehler/following{/other_user}","gists_url":"https://api.github.com/users/willkoehler/gists{/gist_id}","starred_url":"https://api.github.com/users/willkoehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkoehler/subscriptions","organizations_url":"https://api.github.com/users/willkoehler/orgs","repos_url":"https://api.github.com/users/willkoehler/repos","events_url":"https://api.github.com/users/willkoehler/events{/privacy}","received_events_url":"https://api.github.com/users/willkoehler/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:25:36Z","updated_at":"2015-03-10T15:25:36Z","body":"There is now a inconsistency between the label for a boolean attribute checkbox and the labels in a collection of checkboxes. The labels in a collection of checkboxes don't have a leading space. Basically a repeat of this issue https://github.com/plataformatec/simple_form/issues/492.\r\n\r\nCan you add a leading space to the labels in a collection of checkboxes to make the layout consistent? I can open a new issue if that would help."}}