{% extends "theme::layouts/default" %} {% block content %} {% include "theme::partials/messages" %}
{% set actions = ['save'] %} {% if id is not null %} {% set actions = ['update'] %} {% endif %} {% set form = form('cats','category').entry(id).actions(actions).get() %} {{ form_open({ 'class': 'form ' ~ form.options.class , 'enctype': 'multipart/form-data', })|raw }}
{{ nameField|raw }} {{ form.fields.slug|raw }} {{ form.fields.order|raw }} {{ form.fields.files|raw }}
{{ form.actions|raw }}
{{ asset_add("scripts.js", "visiosoft.module.cats::js/admin-cat.js") }} {% endblock %}