{"action":"created","issue":{"url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/30","labels_url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/30/comments","events_url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/30/events","html_url":"https://github.com/SjonHortensius/pfsense/pull/30","id":60763768,"number":30,"title":"Modal Class","user":{"login":"psophis","id":1141680,"avatar_url":"https://avatars.githubusercontent.com/u/1141680?v=3","gravatar_id":"","url":"https://api.github.com/users/psophis","html_url":"https://github.com/psophis","followers_url":"https://api.github.com/users/psophis/followers","following_url":"https://api.github.com/users/psophis/following{/other_user}","gists_url":"https://api.github.com/users/psophis/gists{/gist_id}","starred_url":"https://api.github.com/users/psophis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psophis/subscriptions","organizations_url":"https://api.github.com/users/psophis/orgs","repos_url":"https://api.github.com/users/psophis/repos","events_url":"https://api.github.com/users/psophis/events{/privacy}","received_events_url":"https://api.github.com/users/psophis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T02:58:32Z","updated_at":"2015-03-27T16:05:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SjonHortensius/pfsense/pulls/30","html_url":"https://github.com/SjonHortensius/pfsense/pull/30","diff_url":"https://github.com/SjonHortensius/pfsense/pull/30.diff","patch_url":"https://github.com/SjonHortensius/pfsense/pull/30.patch"},"body":"For forms and data, data example in `head.inc`.\r\n\r\nModal with form example:\r\n```php\r\n$modal_add_gateway = new Modal('Add Gateway', 'modal_add_gateway');\r\n$modal_add_gateway->setAction('system_gateways_edit');\r\n\r\n$modal_add_gateway->addInput(new Form_Checkbox(\r\n\t'defaultgw',\r\n\t'Default Gateway',\r\n\t'Default Gateway',\r\n\t(strtoupper($if) == 'WAN'),\r\n\t'on'\r\n));\r\n\r\n$modal_add_gateway->addInput(new Form_Input(\r\n\t'name',\r\n\t'Name',\r\n\t'text',\r\n\t$wancfg['desc'] . 'GW'\r\n));\r\n\r\n$modal_add_gateway->addInput(new Form_Input(\r\n\t'gatewayip',\r\n\t'IPv4 Address',\r\n\t'text',\r\n\t''\r\n));\r\n\r\n$modal_add_gateway->addInput(new Form_Input(\r\n\t'descr',\r\n\t'Description',\r\n\t'text',\r\n\t''\r\n));\r\n\r\nprint $modal_add_gateway;\r\n```"},"comment":{"url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/comments/86990469","html_url":"https://github.com/SjonHortensius/pfsense/pull/30#issuecomment-86990469","issue_url":"https://api.github.com/repos/SjonHortensius/pfsense/issues/30","id":86990469,"user":{"login":"psophis","id":1141680,"avatar_url":"https://avatars.githubusercontent.com/u/1141680?v=3","gravatar_id":"","url":"https://api.github.com/users/psophis","html_url":"https://github.com/psophis","followers_url":"https://api.github.com/users/psophis/followers","following_url":"https://api.github.com/users/psophis/following{/other_user}","gists_url":"https://api.github.com/users/psophis/gists{/gist_id}","starred_url":"https://api.github.com/users/psophis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psophis/subscriptions","organizations_url":"https://api.github.com/users/psophis/orgs","repos_url":"https://api.github.com/users/psophis/repos","events_url":"https://api.github.com/users/psophis/events{/privacy}","received_events_url":"https://api.github.com/users/psophis/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T16:05:49Z","updated_at":"2015-03-27T16:05:49Z","body":"This is still a work in progress. May do major refactoring. "}}