<commit_before>// Generic entity form user page (Part A)

'use strict';

var _  = require('mano').i18n.bind('User')
  , generateFormSections = require('./components/generate-form-sections')
  , baseUrl = url;

exports._parent = require('./user-registration-base');

exports['step-guide'] = { class: { 'step-form': true } };

exports.step  = function () {
	var entity = this.entity, url = baseUrl.bind(this.root);

	console.log(entity.name);

	h1(_if(eqSloppy(entity.getObservable(
		entity.owner.owner.cardinalPropertyKey
	), null),
		_("Add ${ entityLabel }", { entityLabel: this.entity.constructor.label }),
		_("Edit ${ entityName }", { entityName: this.entity.name })));
	insert(generateFormSections(entity.dataForms.applicable,
		{ url: url, isChildEntity: true }));
};<commit_msg>Removed logs, fixe name observable. #718<commit_after>// Generic entity form user page (Part A)

'use strict';

var _  = require('mano').i18n.bind('User')
  , generateFormSections = require('./components/generate-form-sections')
  , baseUrl = url;

exports._parent = require('./user-registration-base');

exports['step-guide'] = { class: { 'step-form': true } };

exports.step  = function () {
	var entity = this.entity, url = baseUrl.bind(this.root);

	h1(_if(eqSloppy(entity.getObservable(
		entity.owner.owner.cardinalPropertyKey
	), null),
		_("Add ${ entityLabel }", { entityLabel: this.entity.constructor.label }),
		_("Edit ${ entityName }", { entityName: this.entity._name })));
	insert(generateFormSections(entity.dataForms.applicable,
		{ url: url, isChildEntity: true }));
};
{'fraction_non_alphanumeric': 0.17557251908396945, 'fraction_numerical': 0.0057251908396946565, 'mean_word_length': 4.869402985074627, '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': '203801', 'n_tokens_mistral': 531, 'n_tokens_neox': 510, 'n_words': 96}