{% extends 'manageBase.html' %} {% block webtitle %}{{_("manage")}} > {{ modelName }}{% end %} {% block header %} {% end %} {% block content %} {# {% include 'leftSideBar.html' %} #}

{{_("Data management")}}

{% raw xsrf_form_html() %} {% for (fieldName,field) in allValidField %} {% set fieldClassName = type(field).__name__ %}
{# assert fieldClass #} {% if fieldClassName != 'PrimaryKeyField' %} {% end %} {% if fieldClassName == 'PrimaryKeyField' %} {% elif fieldClassName == 'CharField' %} {# we need to see whether there is choice option #} {% if getattr(field,'choices',None) != None %} {% else %} {% end %} {% elif fieldClassName == 'FixedCharField' %} {% elif fieldClassName == 'TextField' %} {% elif fieldClassName == 'DateTimeField' %} {% elif fieldClassName == 'IntegerField' or fieldClassName == 'BigIntegerField' or fieldClassName == 'SmallIntegerField' %} {% elif fieldClassName == 'BooleanField' %} {% elif fieldClassName == 'FloatField' or fieldClassName == 'DoubleField' or fieldClassName == 'DecimalField' %} {% elif fieldClassName == 'DateField' %} {% elif fieldClassName == 'TimeField' %} {% elif fieldClassName == 'TimestampField' %} {% elif fieldClassName == 'BlobField' %}

{{_("Bytes")}}

{# 您无法于仪表盘之中添加以及变更二进制域的内容,该项已禁用。#} {{_("You can't add or change bytes in dashboard, this field is forbidden.")}}

{% elif fieldClassName == 'UUIDField' %}

{# UUID是长度为40的通用唯一识别码,详情您可以点击#} {{_("Things about UUID, you could get information from ")}} {{_("here")}}

{% elif fieldClassName == 'PasswordField' %}

{# bcrypt是一个跨平台的文件加密工具,详情您可以点击 #} {{_("bcrypt is a cross-platform encryption tool, you could click")}} {{_("here")}}, {# 其需要8-56位的口令,在新增页之中,您可以直接键入口令,而不是加密后的446位字符。#} {{_("it requires 8-52 digits password, in this page, just directly type password rather than encryption contents")}}

{% elif fieldClassName == 'AESEncryptedField' %} {#

AES是对称密钥加密算法,详情您可以点击这里,其需要8-56位的口令,在新增页之中,您可以直接键入需要加密的内容。

#}

{{_("AES field requires 8-52 digits password, in this page, just directly type password rather than encryption contents")}}

{% elif fieldClassName == 'PickledField' %} {#

Pickle是Python对象的序列化方法,详情您可以点击这里,在新增页之中,您需要键入Pickle后的内容并伴随着Python的检查。

#}

{{_("Pickle field requires pickled string, be sure you have checked it.")}}

{% end %} {% if hasattr(field,'help_text') and field.help_text %}

{{ field.help_text }}

{% end %}
{% end %}
{% end %} {% block footerJS %} {% end %}