From ceab95b444462093068ba14213841786a5d0ec84 Mon Sep 17 00:00:00 2001 From: 0livd <0livd@users.noreply.github.com> Date: Sun, 19 Mar 2017 18:53:09 +0100 Subject: [PATCH] Remove unused archive feature The archive table is not removed from the database model because it would involve a tricky migration fixes #170 --- budget/forms.py | 6 ------ budget/messages.pot | 16 ---------------- budget/templates/create_archive.html | 7 ------- budget/templates/forms.html | 13 ------------- .../translations/fr/LC_MESSAGES/messages.mo | Bin 8332 -> 8040 bytes .../translations/fr/LC_MESSAGES/messages.po | 16 ---------------- budget/web.py | 15 ++------------- 7 files changed, 2 insertions(+), 71 deletions(-) delete mode 100644 budget/templates/create_archive.html diff --git a/budget/forms.py b/budget/forms.py index 7cdb36d4..69679837 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -172,12 +172,6 @@ class InviteForm(FlaskForm): email=email)) -class CreateArchiveForm(FlaskForm): - name = TextField(_("Name for this archive (optional)"), validators=[]) - start_date = DateField(_("Start date"), validators=[Required()]) - end_date = DateField(_("End date"), validators=[Required()], default=datetime.now) - - class ExportForm(FlaskForm): export_type = SelectField(_("What do you want to download ?"), validators=[Required()], diff --git a/budget/messages.pot b/budget/messages.pot index 3c1276b5..0b1759b3 100644 --- a/budget/messages.pot +++ b/budget/messages.pot @@ -126,10 +126,6 @@ msgstr "" msgid "The email %(email)s is not valid" msgstr "" -#: forms.py:190 -msgid "Name for this archive (optional)" -msgstr "" - #: forms.py:191 msgid "Start date" msgstr "" @@ -201,10 +197,6 @@ msgstr "" msgid "The bill has been modified" msgstr "" -#: web.py:399 -msgid "The data from XX to XX has been archived" -msgstr "" - #: templates/add_bill.html:9 msgid "Back to the list" msgstr "" @@ -292,14 +284,6 @@ msgstr "" msgid "No, thanks" msgstr "" -#: templates/forms.html:109 -msgid "Create an archive" -msgstr "" - -#: templates/forms.html:116 -msgid "Create the archive" -msgstr "" - #: templates/home.html:8 msgid "Manage your shared
expenses, easily" msgstr "" diff --git a/budget/templates/create_archive.html b/budget/templates/create_archive.html deleted file mode 100644 index dd7ab860..00000000 --- a/budget/templates/create_archive.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "layout.html" %} - -{% block content %} -
-{{ forms.create_archive(form) }} -
-{% endblock %} diff --git a/budget/templates/forms.html b/budget/templates/forms.html index b4fa236e..01e54867 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -137,19 +137,6 @@ {% endmacro %} -{% macro create_archive(form) %} -
- {{ _("Create an archive") }} - {{ form.hidden_tag() }} - {{ input(form.name) }} - {{ input(form.start_date) }} - {{ input(form.end_date) }} -
-
- -
-{% endmacro %} - {% macro export_project(form) %}
{{ form.hidden_tag() }} diff --git a/budget/translations/fr/LC_MESSAGES/messages.mo b/budget/translations/fr/LC_MESSAGES/messages.mo index ef40aa5db685f7213ff953c8dae7f2f62214b1eb..1794c62c0829ef2d705a2b38c02038c453eede41 100644 GIT binary patch delta 1969 zcmYM!ZD^KN7zgk(=i7Xn(`>eEn`YBRHkinyL`gy+g;aV$j0l6spbr@pR%0nf6rxFl zX^B))5VNu;EYy--B(fK&FBYK`Wsb_qB(*;E`|Ayj=ed99oaesJxvuM+dmFABnA>-3 z+~8-6zXyFM`F>uX-v57(4lCsn-ClNc3p;p-bv(sJo~BQ!AMVSM9KlA8VGBpHlVdrH zLrUo@3pBBL%djjEl2Y?PT?zT;it@VKXDp=Wda>9{bW3msl-&5 zPIfUBTh1oymsJ|M@sSMh2`Ww5%4D{KqxdFM;`f*g4p!seF!vp2DsqNCWxPovk5 zzmnO?9;UKO*_X)g(wNM9`7$>#TQbvAnP?$%-!e|*ayD}{GvQNAC3do%2deS!IiUY9 z=krJ9dw?DGDbK$!M*TZ9-ZpRrzhg3}Q=jZrE0ftYCZO3&1r~EEZ(=*wRKIVdwaV*E z!28(B51ESoP2`FEGCe7%$ZnFxrjbxNuO(OSjl9ziplgoW`W0*nUX$C=dnD-9I_2n|5c_! zHKu~^GnF{VRA_+N`@fh#noOQbOkwW3k&Su(S8F7bbAZn??*2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(): - form = CreateArchiveForm() - if request.method == "POST": - if form.validate(): - pass - flash(_("The data from XX to XX has been archived")) - - return render_template("create_archive.html", form=form) - - @main.route("/dashboard") def dashboard(): return render_template("dashboard.html", projects=Project.query.all())