add missing migration and form template
This commit is contained in:
parent
0c64f7ecf5
commit
8552c37066
|
@ -0,0 +1,29 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('fargo', '0013_document_mime_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='userdocument',
|
||||
name='description',
|
||||
field=models.TextField(verbose_name='description', blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='userdocument',
|
||||
name='expiration_date',
|
||||
field=models.DateField(null=True, verbose_name='expiration date', blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='userdocument',
|
||||
name='title',
|
||||
field=models.CharField(max_length=200, verbose_name='title', blank=True),
|
||||
),
|
||||
]
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "fargo/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div id="appbar">
|
||||
<h2>{% trans "Edit" %}</h2>
|
||||
</div>
|
||||
|
||||
<form action="{% url 'edit' pk=object.pk %}" method="post">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<div class="buttons">
|
||||
<button class="submit-button">{% trans "Save" %}</button>
|
||||
<a class="cancel" href="{% url 'home' %}">{% trans 'Cancel' %}</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue