{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/1668","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/1668/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/1668/events","html_url":"https://github.com/aspnet/Mvc/issues/1668","id":51005043,"number":1668,"title":"Button TagHelper for formaction","user":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars.githubusercontent.com/u/1238711?v=3","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Mvc/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/aspnet/Mvc/labels/up-for-grabs","name":"up-for-grabs","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/22","html_url":"https://github.com/aspnet/Mvc/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/22/labels","id":1763529,"number":22,"title":"1.1.0","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":55,"closed_issues":28,"state":"open","created_at":"2016-05-12T23:58:26Z","updated_at":"2016-07-19T16:48:22Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-12-04T17:41:30Z","updated_at":"2016-07-19T17:23:46Z","closed_at":null,"body":"Initial suggestion - Need to fill in more details, \r\n\r\n#### Scenario\r\n\r\nA form with multiple buttons, that needs to go do different actions based on what was clicked.\r\n```HTML\r\n<form ...>\r\n    ...\r\n    <button type=\"submit\" formaction=\"/Album/Edit\">Edit</button>\r\n    <button type=\"submit\" formaction=\"/Album/Delete\">Delete</button>\r\n</form>\r\n```\r\n\r\n### A Tag helper look like \r\n\r\n```HTML\r\n<button asp-action=\"Edit\" asp-controller=\"Album\" />\r\n```\r\n\r\n### And Generate\r\n\r\n```HTML\r\n<button formaction=\"Album/Edit\" />\r\n```\r\n\r\nSimilarly we can make these attributes also work on the `input` tag helper, when type is `submit`."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/233704965","html_url":"https://github.com/aspnet/Mvc/issues/1668#issuecomment-233704965","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/1668","id":233704965,"user":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T17:23:46Z","updated_at":"2016-07-19T17:23:46Z","body":"@ctyar well I'm not sure I'd call this exactly a design, it's more like some random thoughts people had 😄 \r\n\r\nBut... it probably is fairly straightforward. We'd presumably want to do exactly what we do for stuff like the `<form>` tag and `<a>` tag as far as the tag helper attributes it should have, and the behavior it should have if there's an existing explicit `formaction` attribute defined on the tag.\r\n\r\nIf you want to take a crack at it, let us know, and send a PR when you're ready."}}
{"actor":{"display_login":"Eilon"}}