{# DATA FIELDS current_data: dict schema: BaseModel.model_json_schema() system_fields: Optional[list] # An optional list of fields to disable when "system" # is not part of a user's ACL root_key: Optional[str] # A string to encapsulate a name in, # i.e. a root_key "profile" for a field "email" becomes "profile.email" #} {% for k, v in schema.properties.items() if k not in without %} {% if v.type in ["text", "email", "number"] %} {% set readonly = True if "readonly" in v.input_extra else False %}
{% elif v.type in ["date", "datetime-local"] %} {% set readonly = True if "readonly" in v.input_extra else False %} {% elif v.type == "select:multi" or v.type == "select" %} {% elif v.type == "tresor" %} {% if request.path == "/profile/" %} {% endif %} {% elif v.type == "datalist" %} {% elif (v.type == "users:multi" or v.type == "users") and "system" in session["acl"] %} {% if not request.form_options.users or request.form_options.users == [] %}No users found
{% else %} {% endif %} {% elif v.type == "emailusers:multi" or v.type == "emailusers" %} {% if request.form_options.emailusers == [] %}No email users available
{% else %} {% endif %} {% elif v.type == "list:text" or v.type == "list:number" %} {% set readonly = True if "readonly" in v.input_extra else False %} {% if v.description %} {{ v.description|safe }} {% endif %} {% elif v.type == "radio" %} {% elif v.type == "keypair" %} {% if not request.form_options.keypairs or request.form_options.keypairs == [] %}No key pairs available
{% else %} {% endif %} {% elif v.type == "domain" %} {% if request.form_options.domains == [] %}No domain available
{% else %} {% endif %} {% endif %} {% endfor %}