{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/24567940","id":24567940,"diff_hunk":"@@ -1,8 +1,80 @@\n-<h1 ng-if=\"user.id\">{{ user.get_short_name() }}</h1>\n-<h1 ng-if=\"!user.id\">{{ gettext(\"New User\") }}</h1>\n+<h1 ng-if=\"user.id\">{{ gettext(\"Edit participant\") }}</h1>\n+<h1 ng-if=\"!user.id\">{{ gettext(\"New participant\") }}</h1>\n \n-<form>\n-    firstname: <input type=\"text\" ng-model=\"user.first_name\"><br>\n-    lastname: <input type=\"text\" ng-model=\"user.last_name\"><br>\n-    <input type=\"submit\" ng-click=\"save(user)\" value=\"Save\" />\n+<div id=\"submenu\">\n+    <a ng-href=\"user\" class=\"btn btn-sm btn-default\">\n+        <i class=\"fa fa-angle-double-left fa-lg\"></i>\n+        {{ gettext('Back to overview') }}\n+    </a>\n+</div>\n+\n+<form name=\"userForm\">\n+    <div class=\"form-group\" ng-class=\"{ 'has-error has-feedback' : userForm.inputUsername.$error.required }\">\n+        <label for=\"inputUsername\">{{ gettext(\"Username\") }}</label>\n+        <input type=\"text\" ng-model=\"user.username\" ng-required=\"true\" class=\"form-control\" name=\"inputUsername\">\n+        <span ng-if=\"userForm.inputUsername.$error.required\" class=\"glyphicon glyphicon-remove form-control-feedback\" aria-hidden=\"true\"></span>\n+        <p ng-show=\"userForm.inputUsername.$error.required\" class=\"error-message help-block\">\n+            {{ gettext(\"Username is required.\") }}\n+        </p>\n+    </div>\n+    <div class=\"form-group row\">\n+        <div class=\"col-xs-2\">\n+            <label for=\"inputTitle\">{{ gettext(\"Title\") }}</label>\n+            <input type=\"text\" ng-model=\"user.title\" class=\"form-control\" name=\"inputTitle\">\n+        </div>\n+        <div class=\"col-xs-5\">\n+            <label for=\"inputFirstName\">{{ gettext(\"First name\") }}</label>\n+            <input type=\"text\" ng-model=\"user.first_name\" class=\"form-control\" name=\"inputFirstName\">\n+        </div>\n+        <div class=\"col-xs-5\">\n+            <label for=\"inputLastName\">{{ gettext(\"Last name\") }}</label>\n+            <input type=\"text\" ng-model=\"user.last_name\" class=\"form-control\" name=\"inputLastName\">\n+        </div>\n+    </div>\n+    <div class=\"form-group\">\n+        <label for=\"inputStructureLevel\">{{ gettext(\"Structure level\") }}</label>\n+        <input type=\"text\" ng-model=\"user.structure_level\" class=\"form-control\" name=\"inputStructureLevel\">\n+    </div>\n+    <div class=\"form-group\" ng-class=\"{ 'has-error has-feedback' : userForm.selectGroups.$error.required }\">\n+        <label for=\"selectGroups\">{{ gettext(\"Groups\") }}</label>\n+        <input type=\"text\" ng-model=\"user.groups\" ng-required=\"true\" class=\"form-control\" name=\"selectGroups\">\n+        <span ng-if=\"userForm.selectGroups.$error.required\" class=\"glyphicon glyphicon-remove form-control-feedback\" aria-hidden=\"true\"></span>","path":"openslides/users/static/templates/user/user-form.html","position":47,"original_position":47,"commit_id":"82323d43cdd39c20c985a20a8ce246e027c620f9","original_commit_id":"82323d43cdd39c20c985a20a8ce246e027c620f9","user":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"body":"this line is very long","created_at":"2015-02-12T09:29:08Z","updated_at":"2015-02-12T09:29:08Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1449#discussion_r24567940","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/24567940"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1449#discussion_r24567940"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449","id":29050008,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1449","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1449.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1449.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1449","number":1449,"state":"open","locked":false,"title":"User templates with angularjs","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"body":"First template improvements for user app with angularjs.\r\n\r\nThere are some issues, where I need help, e.g.:\r\n  * Where can I get all groups (to show in select box in form view)\r\n  * DeleteView to delete user\r\n  * permissions to show/hide special action buttons\r\n  * show available apps in main menu naviation","created_at":"2015-02-10T22:11:24Z","updated_at":"2015-02-12T09:29:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e817871c2708727cd2dee3ce7b8cae2e148cba2","assignee":null,"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17/labels","id":720870,"number":17,"title":"2.0","description":"We think we are ready not before May 2015.","creator":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":53,"state":"open","created_at":"2014-07-14T20:36:14Z","updated_at":"2015-02-12T09:17:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1449/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/82323d43cdd39c20c985a20a8ce246e027c620f9","head":{"label":"emanuelschuetze:angularjs","ref":"angularjs","sha":"82323d43cdd39c20c985a20a8ce246e027c620f9","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"repo":{"id":5255375,"name":"OpenSlides","full_name":"emanuelschuetze/OpenSlides","owner":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emanuelschuetze/OpenSlides","description":"","fork":true,"url":"https://api.github.com/repos/emanuelschuetze/OpenSlides","forks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/forks","keys_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/teams","hooks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/events","assignees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/tags","blobs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscription","commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/comments/{number}","contents_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/merges","archive_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/downloads","issues_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/releases{/id}","created_at":"2012-08-01T05:33:01Z","updated_at":"2015-02-08T14:28:06Z","pushed_at":"2015-02-10T22:01:00Z","git_url":"git://github.com/emanuelschuetze/OpenSlides.git","ssh_url":"git@github.com:emanuelschuetze/OpenSlides.git","clone_url":"https://github.com/emanuelschuetze/OpenSlides.git","svn_url":"https://github.com/emanuelschuetze/OpenSlides","homepage":null,"size":35717,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenSlides:master","ref":"master","sha":"9d8c85be68fe6bce661c920493133f8b3a4736b6","user":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"repo":{"id":5250779,"name":"OpenSlides","full_name":"OpenSlides/OpenSlides","owner":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSlides/OpenSlides","description":"Presentation and assembly system","fork":false,"url":"https://api.github.com/repos/OpenSlides/OpenSlides","forks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/forks","keys_url":"https://api.github.com/repos/OpenSlides/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSlides/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSlides/OpenSlides/teams","hooks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/events","assignees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSlides/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/tags","blobs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSlides/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscription","commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments/{number}","contents_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSlides/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSlides/OpenSlides/merges","archive_url":"https://api.github.com/repos/OpenSlides/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSlides/OpenSlides/downloads","issues_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSlides/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/OpenSlides/OpenSlides/releases{/id}","created_at":"2012-07-31T20:04:39Z","updated_at":"2015-02-12T09:17:24Z","pushed_at":"2015-02-12T09:17:24Z","git_url":"git://github.com/OpenSlides/OpenSlides.git","ssh_url":"git@github.com:OpenSlides/OpenSlides.git","clone_url":"https://github.com/OpenSlides/OpenSlides.git","svn_url":"https://github.com/OpenSlides/OpenSlides","homepage":"http://openslides.org","size":38472,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":102,"forks":27,"open_issues":102,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1449"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1449"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1449/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1449/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/82323d43cdd39c20c985a20a8ce246e027c620f9"}}}}