{% import '@Theme/macro/form.html' as Form %}

<form method="post" action="{{ url('/v/admincp/category') }}" class="ajax_post">
	{% if category_id %}
		<input type="hidden" name="id" value="{{ category_id }}">
	{% endif %}

	{% for language in aLanguage %}
		<div class="table">
			<div class="table_left">
				{{ language.title }}:
			</div>
			<div class="table_right">
				{{ Form.text('name_' ~ language.language_id, null, _p('Name'), _p(category_name, null, language.language_id)) }}
				<div class="extra_info">
					{% if language.is_default %}
					{{ _p('default_language_can_not_be_empty') }}
					{% else %}
					{{ _p('left_empty_will_have_same_value_with_default_language') }}
					{% endif %}
				</div>
			</div>
		</div>
	{% endfor %}

	{{ Form.submit(_p('Submit')) }}
</form>