{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/464","repository_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/464/comments","events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/464/events","html_url":"https://github.com/alphagov/specialist-publisher-rebuild/issues/464","id":147051884,"number":464,"title":"[CLOSED] Make UI more like other admin apps, prevent accidental publishing","user":{"login":"benilovj","id":23801,"avatar_url":"https://avatars.githubusercontent.com/u/23801?v=3","gravatar_id":"","url":"https://api.github.com/users/benilovj","html_url":"https://github.com/benilovj","followers_url":"https://api.github.com/users/benilovj/followers","following_url":"https://api.github.com/users/benilovj/following{/other_user}","gists_url":"https://api.github.com/users/benilovj/gists{/gist_id}","starred_url":"https://api.github.com/users/benilovj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benilovj/subscriptions","organizations_url":"https://api.github.com/users/benilovj/orgs","repos_url":"https://api.github.com/users/benilovj/repos","events_url":"https://api.github.com/users/benilovj/events{/privacy}","received_events_url":"https://api.github.com/users/benilovj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-08T22:11:42Z","updated_at":"2016-04-08T22:11:43Z","closed_at":null,"body":"<a href=\"https://github.com/fofr\"><img src=\"https://avatars.githubusercontent.com/u/319055?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [fofr](https://github.com/fofr)**\n_Thursday 02 April 2015 at 11:18 GMT_\n_Originally opened as https://github.com/alphagov/specialist-publisher/pull/464_\n\n----\n\n* Use Bootstrap form styles rather than custom ones (and extract common form parts into partials)\r\n* Use admin template pattern for attachments table, and truncate large tables with a JS toggle (some documents have over 100 attachments) – instead of https://github.com/alphagov/specialist-publisher/pull/461\r\n* Separate publish, edit and withdraw actions and add confirm dialogues to irreversible actions\r\n  * Completely hide publish button when unavailable, a disabled button is\r\nconfusing\r\n* Correctly space sections on the `show` pages with a consistent vertical rhythm\r\n* Use `lead` styles to make summary more readable\r\n* Remove collapsible body function, instead restrict height, and don’t show at all unless there is a body\r\n* Reduce dependencies on `govuk_frontend_toolkit` – currently Bootstrap and the toolkit don’t play well together\r\n\r\nhttps://www.pivotaltracker.com/story/show/90529348\r\n\r\n# Editing a document\r\n\r\n## Before\r\n![screen shot 2015-04-02 at 11 55 02](https://cloud.githubusercontent.com/assets/319055/6962866/bbf30204-d930-11e4-9658-4254fa554c8c.png)\r\n\r\n## After\r\n![screen shot 2015-04-02 at 11 55 21](https://cloud.githubusercontent.com/assets/319055/6962869/be1d116e-d930-11e4-84c0-f810cc7ff00c.png)\r\n\r\n# Viewing a document\r\n\r\n## Before\r\n![screen shot 2015-04-02 at 11 53 32](https://cloud.githubusercontent.com/assets/319055/6962878/e9f8574e-d930-11e4-8e4b-d36fe0ae63d2.png)\r\n\r\nActions:\r\n![screen shot 2015-04-02 at 11 53 46](https://cloud.githubusercontent.com/assets/319055/6962879/e9fd3c6e-d930-11e4-8ed2-29d7c2639180.png)\r\n\r\n## After\r\n![screen shot 2015-04-02 at 11 53 58](https://cloud.githubusercontent.com/assets/319055/6962880/f0038d98-d930-11e4-8e19-45cbf7f72244.png)\r\n\r\nActions:\r\n![screen shot 2015-04-02 at 11 54 13](https://cloud.githubusercontent.com/assets/319055/6962881/f016a680-d930-11e4-9243-28e21a0ec9a2.png)\r\n\r\n# Truncated attachments table\r\n![screen shot 2015-04-02 at 12 09 22](https://cloud.githubusercontent.com/assets/319055/6962910/2ac04bba-d931-11e4-82b5-dd5459a53ca4.png)\r\n\r\n# Warnings\r\n![screen shot 2015-04-02 at 11 54 33](https://cloud.githubusercontent.com/assets/319055/6962913/3365e6e4-d931-11e4-98e2-8a261f32a335.png)\r\n![screen shot 2015-04-02 at 11 54 22](https://cloud.githubusercontent.com/assets/319055/6962912/336558d2-d931-11e4-80be-520f5930ff67.png)\r\n\n\n----\n\n_**[fofr](https://github.com/fofr)** included the following code: https://github.com/alphagov/specialist-publisher/pull/464/commits_\n"},"comment":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/comments/207626270","html_url":"https://github.com/alphagov/specialist-publisher-rebuild/issues/464#issuecomment-207626270","issue_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/464","id":207626270,"user":{"login":"benilovj","id":23801,"avatar_url":"https://avatars.githubusercontent.com/u/23801?v=3","gravatar_id":"","url":"https://api.github.com/users/benilovj","html_url":"https://github.com/benilovj","followers_url":"https://api.github.com/users/benilovj/followers","following_url":"https://api.github.com/users/benilovj/following{/other_user}","gists_url":"https://api.github.com/users/benilovj/gists{/gist_id}","starred_url":"https://api.github.com/users/benilovj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benilovj/subscriptions","organizations_url":"https://api.github.com/users/benilovj/orgs","repos_url":"https://api.github.com/users/benilovj/repos","events_url":"https://api.github.com/users/benilovj/events{/privacy}","received_events_url":"https://api.github.com/users/benilovj/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T22:11:42Z","updated_at":"2016-04-08T22:11:42Z","body":"<a href=\"https://github.com/russellthorn\"><img src=\"https://avatars.githubusercontent.com/u/1692222?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [russellthorn](https://github.com/russellthorn)**\n_Tuesday 07 April 2015 at 12:49 GMT_\n\n----\n\nLooks good to me. It's probably worth getting a ruby dev to check the ruby, but otherwise I'm happy.\n"}}