<commit_before>// Documents list and user data

'use strict';

var camelToHyphen    = require('es5-ext/string/#/camel-to-hyphen')
  , _                = require('mano').i18n.bind('User Submitted')
  , generateSections = require('./components/generate-sections');

module.exports = function (businessProcess/*, options*/) {
	var options = Object(arguments[1])
	  , urlPrefix = options.urlPrefix || '/';

	return [section({ class: 'section-primary' },
		h2(_("Documents")),
		hr(),
		_if(businessProcess.requirementUploads.applicable._size,
			[h3(_("Documents required")),
				div(
					{ class: 'table-responsive-container' },
					table(
						{ class: 'submitted-user-data-table ' +
							'submitted-current-user-data-table user-request-table' },
						thead(
							tr(
								th({ class: 'submitted-user-data-table-status' }),
								th(_("Name")),
								th(_("Issuer")),
								th({ class: 'submitted-user-data-table-date' }, _("Issue date")),
								th({ class: 'submitted-user-data-table-link' })
							)
						),
						tbody(
							businessProcess.requirementUploads.applicable,
							function (requirementUpload) {
								td({ class: 'submitted-user-data-table-status' },
									_if(requirementUpload._isApproved, span({ class: 'fa fa-check' })),
										_if(requirementUpload._isRejected, span({ class: 'fa fa-exclamation' })));
								td(requirementUpload.document._label);
								td(requirementUpload.document._issuedBy);
								td({ class: 'submitted-user-data-table-date' },
										requirementUpload.document._issueDate);
								td({ class: 'submitted-user-data-table-link' },
									a({ href: urlPrefix + 'document/' +
										camelToHyphen.call(requirementUpload.document.uniqueKey) + "/" },<commit_msg>#835 generalized label display to include instert<commit_after>// Documents list and user data

'use strict';

var camelToHyphen    = require('es5-ext/string/#/camel-to-hyphen')
  , _                = require('mano').i18n.bind('User Submitted')
  , generateSections = require('./components/generate-sections')
  , _d = _;

module.exports = function (businessProcess/*, options*/) {
	var options = Object(arguments[1])
	  , urlPrefix = options.urlPrefix || '/';

	return [section({ class: 'section-primary' },
		h2(_("Documents")),
		hr(),
		_if(businessProcess.requirementUploads.applicable._size,
			[h3(_("Documents required")),
				div(
					{ class: 'table-responsive-container' },
					table(
						{ class: 'submitted-user-data-table ' +
							'submitted-current-user-data-table user-request-table' },
						thead(
							tr(
								th({ class: 'submitted-user-data-table-status' }),
								th(_("Name")),
								th(_("Issuer")),
								th({ class: 'submitted-user-data-table-date' }, _("Issue date")),
								th({ class: 'submitted-user-data-table-link' })
							)
						),
						tbody(
							businessProcess.requirementUploads.applicable,
							function (requirementUpload) {
								td({ class: 'submitted-user-data-table-status' },
									_if(requirementUpload._isApproved, span({ class: 'fa fa-check' })),
										_if(requirementUpload._isRejected, span({ class: 'fa fa-exclamation' })));
								td(_d(requirementUpload.document._label, { user: requirementUpload.master }));
								td(requirementUpload.document._issuedBy);
								td({ class: 'submitted-user-data-table-date' },
										requirementUpload.document._issueDate);
								td({ class: 'submitted-user-data-table-link' },
									a({ href: urlPrefix + 'document/' +
										camelToHyphen.call(requirementUpload.document.uniqueKey) + "/" },
{'fraction_non_alphanumeric': 0.16270617836175566, 'fraction_numerical': 0.004193458205199888, 'mean_word_length': 3.0022371364653244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '518839', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1096, 'n_words': 183}