You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
6 months ago
|
|
||
|
{% extends 'myadmin/base.html' %}
|
||
|
{% load static %}
|
||
|
{% load thumbnail %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<div class="ui grid">
|
||
|
<div class="row">
|
||
|
<h3>分类编辑</h3>
|
||
|
</div>
|
||
|
<div class="ui divider"></div>
|
||
|
<div class="row">
|
||
|
<div class="v-form-wrap">
|
||
|
|
||
|
<form class="ui form" novalidate method="post" action="{% url 'myadmin:classification_edit' form.instance.pk %}"
|
||
|
enctype="multipart/form-data" role="form">
|
||
|
{% csrf_token %}
|
||
|
<div class="field">
|
||
|
<label>分类名称</label>
|
||
|
{{ form.title }}
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<div class="ui checkbox">
|
||
|
{{form.status}}
|
||
|
<label>是否启用</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<button class="ui primary button" type="submit">保存</button>
|
||
|
|
||
|
{% include "base/form_errors.html" %}
|
||
|
{% include "base/form_messages.html" %}
|
||
|
|
||
|
</form>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{% endblock content %}
|
||
|
|
||
|
{% block modal %}
|
||
|
{% endblock modal %}
|
||
|
|
||
|
|