-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from interDist/privateco5
Privateco Ⅴ (restarigo de malfunkciigitaj profiloj)
- Loading branch information
Showing
12 changed files
with
241 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.10 on 2018-05-30 11:21 | ||
from __future__ import unicode_literals | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('core', '0004_agreement_model'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='agreement', | ||
name='withdrawn', | ||
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='withdrawn on'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='agreement', | ||
unique_together=set([('user', 'policy_version', 'withdrawn')]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{% extends 'hosting/base_confirm.html' %} | ||
{% load i18n %} | ||
|
||
{% block head_title %} | ||
{% trans "Restore profile" %} | ||
{% if view.role >= roles.SUPERVISOR and profile.user %} ({{ profile.name|default:profile.INCOGNITO }}) {% endif %} | ||
{% endblock %} | ||
|
||
{% block confirmation %} | ||
{% if not profile.deleted %} | ||
<span class="fa fa-exclamation-circle" aria-label="{% trans "Note " context 'Title' %}" style="transform: rotate(-10deg)"></span> | ||
{% trans "This profile is active and does not require restoration." %} | ||
{% else %} | ||
{% blocktrans trimmed %} | ||
Are you sure you want to re-enable this profile and the data that was linked to it? | ||
{% endblocktrans %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block extra_details %} | ||
{% if profile.deleted %} | ||
{{ profile.get_fullname_always_display }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block extra_details_block %} | ||
{% if profile.deleted %} | ||
<br /> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3"> | ||
<p class="text-justify"> | ||
{% blocktrans trimmed %} | ||
Note that only objects deleted at the same time as the profile will be re-enabled: | ||
{% endblocktrans %} | ||
</p> | ||
<ul class="list-group small"> | ||
{% for obj in linked_objects %} | ||
<li class="list-group-item place-list-compact"> | ||
{{ obj.icon }} {{ obj }} | ||
</li> | ||
{% empty %} | ||
<li class="list-group-item place-list-compact"> | ||
<em> | ||
{% blocktrans with deleted_date=profile.deleted_on|date:"DATE_FORMAT" trimmed %} | ||
No additional objects deleted on {{ deleted_date }} were found. | ||
{% endblocktrans %} | ||
</em> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
|
||
{% block confirm_buttons %} | ||
{% if not profile.deleted %}{# No restoration is possible. #}{% else %}{{ block.super }}{% endif %} | ||
{% endblock %} | ||
|
||
{% block form_confirm_button_title %}{% trans "Restore profile" %}{% endblock %} | ||
{% block form_confirm_button %} | ||
<span class="fa fa-repeat" aria-hidden="true"></span> {% trans "Restore" %} | ||
{% endblock %} | ||
|
||
{% block form_cancel_button_title %}{% if not profile.deleted %}{% trans "Back" %}{% else %}{{ block.super }}{% endif %}{% endblock %} | ||
{% block form_cancel_button %} | ||
{% if not profile.deleted %} | ||
<span class="fa fa-arrow-left" aria-hidden="true"></span> {% trans "Back" %} | ||
{% else %} | ||
{{ block.super }} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.