<commit_before>// Generic forms user page (Part A)

'use strict';

var generateSections = require('eregistrations/view/components/generate-form-sections')
, _                 = require('mano').i18n.bind('Registration');

exports._parent = require('./business-process-data-forms-tabbed');

exports['forms-sections-content'] = function () {
	insert(
		_if(this.section._legend, div({ class: 'info-main' },
			md(this.section._legend))),
		this.section.applicableSections ?
				generateSections(this.section.applicableSections, { viewContext: this }) :
				this.section.toDOMForm(document),
		p({ class: 'user-next-step-button' },
			a({ href: this.section._nextSection.map(function (nextSection) {
				if (!nextSection) return '/documents/';
				return '/forms/' + nextSection.pageUrl + '/';
			})
				}, _('Continue to next step')))
	);

};

exports._match = 'section';<commit_msg>#1260 Add progress rules display to tabs<commit_after>// Generic forms user page (Part A)

'use strict';

var generateSections = require('eregistrations/view/components/generate-form-sections')
  , progressRules    = require('./components/progress-rules')
  , _                = require('mano').i18n.bind('Registration');

exports._parent = require('./business-process-data-forms-tabbed');

exports['forms-sections-content'] = function () {
	insert(
		_if(this.section._legend, div({ class: 'info-main' },
			md(this.section._legend))),
		this.section.applicableSections ?
				[progressRules(this.section),
					generateSections(this.section.applicableSections, { viewContext: this })] :
				this.section.toDOMForm(document),
		p({ class: 'user-next-step-button' },
			a({ href: this.section._nextSection.map(function (nextSection) {
				if (!nextSection) return '/documents/';
				return '/forms/' + nextSection.pageUrl + '/';
			})
				}, _('Continue to next step')))
	);

};

exports._match = 'section';
{'fraction_non_alphanumeric': 0.16914103923647933, 'fraction_numerical': 0.0042417815482502655, 'mean_word_length': 4.1, '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': '1362722', 'n_tokens_mistral': 648, 'n_tokens_neox': 575, 'n_words': 104}