{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/919","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/919/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/919/events","html_url":"https://github.com/e-government-ua/i/issues/919","id":113168069,"number":919,"title":"На главном портале, в механизме авто-наложения ЭЦП на заполненную форму реализовать возможность выбора патерна принтформы, при формировании того ХТМЛ-а, на который потом накладывается ЭЦП (уже файл pdf)","user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/active","name":"active","color":"eb6420"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/question","name":"question","color":"bfe5bf"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/test","name":"test","color":"5319e7"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/_central-js","name":"_central-js","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"hordesalik","id":1492938,"avatar_url":"https://avatars.githubusercontent.com/u/1492938?v=3","gravatar_id":"","url":"https://api.github.com/users/hordesalik","html_url":"https://github.com/hordesalik","followers_url":"https://api.github.com/users/hordesalik/followers","following_url":"https://api.github.com/users/hordesalik/following{/other_user}","gists_url":"https://api.github.com/users/hordesalik/gists{/gist_id}","starred_url":"https://api.github.com/users/hordesalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hordesalik/subscriptions","organizations_url":"https://api.github.com/users/hordesalik/orgs","repos_url":"https://api.github.com/users/hordesalik/repos","events_url":"https://api.github.com/users/hordesalik/events{/privacy}","received_events_url":"https://api.github.com/users/hordesalik/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/1","html_url":"https://github.com/e-government-ua/i/milestones/FrontEnd_NodeJS","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/1/labels","id":1063341,"number":1,"title":"FrontEnd_NodeJS","description":"Консолидированный дашборд-портал, изначально кастомный вариант активити-эксплорера, предназначенный для работы в нем именно работников гос-службы (обработка заявок граждан), со временем там-же будут выводиться для \"продвинутых админов\" разные важные показатели и статистика  (и, возможно, появится классический функционал портала для граждан","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":246,"state":"open","created_at":"2015-04-11T19:08:57Z","updated_at":"2015-11-11T20:50:29Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-10-24T15:48:11Z","updated_at":"2015-11-12T15:00:39Z","closed_at":null,"body":"- [ ] 1) Сама реализация наложения ЭЦП была по таске:\r\nhttps://github.com/e-government-ua/i/issues/843\r\nт.е. \"вклиниться\" нужно в этап формирования шаблона HTML:\r\n\\i\\central-js\\server\\api\\process-form\\form.template.js\r\n\r\n- [ ] 2) Параметр с путем к патерну брать из \"value\" поля с id, начинающимся с \"PrintFormAutoSign_\" (в БП его нужно проставлять с типом invisible)\r\n\r\n- [ ] 3) Значение будет вида \"printform/subs.html\" (вообще поискать или создать в ресурсах wf-region, в подпапке patterns соотв. файл-шаблон)\r\n\r\n- [ ] 4) Подгружать контент файла на фронте через сервис /getPatternFile, при этом вызывая его именно с того-же регионального сервера, на котором и находится услуга\r\n\r\n- [ ] 5) вместо текущей автоматической генерации шаблона (на основании всех имеющихся полей в форме) - подставлять в HTML-е только те поля, которые будут найдены. при этом в шаблонах поля будут выглядеть в виде:\r\n\"обычный текст [field1] продолжение текста\"\r\nгде \"field1\" - id поля формы, значение из которого нужно подставить вместо этого тэга \"[field1]\"\r\nТакое уже реализовано на дашборде, и пример можно глянуть:\r\n\\i\\dashboard-js\\client\\components\\print\\PrintTemplateProcessor.js\r\n(и в соседних файлах этой папки)\r\n\r\n- [ ] 6) Если поле п.2. не будет обнаружено или будет пустым - формировать форму по текущей схеме."},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/156130737","html_url":"https://github.com/e-government-ua/i/issues/919#issuecomment-156130737","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/919","id":156130737,"user":{"login":"RoOmel","id":12996514,"avatar_url":"https://avatars.githubusercontent.com/u/12996514?v=3","gravatar_id":"","url":"https://api.github.com/users/RoOmel","html_url":"https://github.com/RoOmel","followers_url":"https://api.github.com/users/RoOmel/followers","following_url":"https://api.github.com/users/RoOmel/following{/other_user}","gists_url":"https://api.github.com/users/RoOmel/gists{/gist_id}","starred_url":"https://api.github.com/users/RoOmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoOmel/subscriptions","organizations_url":"https://api.github.com/users/RoOmel/orgs","repos_url":"https://api.github.com/users/RoOmel/repos","events_url":"https://api.github.com/users/RoOmel/events{/privacy}","received_events_url":"https://api.github.com/users/RoOmel/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T15:00:39Z","updated_at":"2015-11-12T15:00:39Z","body":"5 минут?\r\nТам процедура из 5 шагов, при этом дважды надо ходить в отделение банка."}}