-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'crud-cds-websites' of https://github.com/UniversitaDell…
…aCalabria/storage.portale into crud-cds-websites
- Loading branch information
Showing
48 changed files
with
1,499 additions
and
801 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ class CRUDCdsConfig(AppConfig): | |
|
||
def ready(self): | ||
# Signals | ||
import crud.cds.signals | ||
from . import signals |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,135 @@ | ||
{% extends "storage_crud_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load static %} | ||
|
||
|
||
{% block centered_container %} | ||
<p style="font-weight: lighter;" class="h3 mb-4"> | ||
{% if group %} | ||
{% trans "Edit" %} {{ group.descr_breve_it }} | ||
{% else %} | ||
{% trans "New cds group" %} | ||
{% endif %} | ||
</p> | ||
<div class="card-wrapper card-space"> | ||
<div class="card card-bg no-after"> | ||
<div class="card-body"> | ||
<form method="post" novalidate> | ||
{% include "form_template.html" with form=form %} | ||
{% include "includes/form_submit.html" %} | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% if group %} | ||
<div class="card-wrapper card-space"> | ||
<div class="card card-bg no-after"> | ||
<div class="card-body"> | ||
<p style="font-weight: lighter;" class="mb-4 h3"> | ||
{% trans "Members" %} | ||
</p> | ||
<div class="table-responsive"> | ||
<table class="table table-striped table-hover"> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th>{% trans "Name" %}</th> | ||
<th>{% trans "Function" %}</th> | ||
<th>{% trans "Visible" %}</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for member in group.didatticacdsgruppicomponenti_set.all %} | ||
<tr> | ||
<td>{{ member.ordine }}</td> | ||
<td> | ||
{{ member.cognome }} {{ member.nome }} | ||
{% if member.matricola %} | ||
<br> | ||
({% trans "Link to" %}: {{ member.matricola|default:"-" }}) | ||
{% endif %} | ||
</td> | ||
<td>{{ member.funzione_it|default:"-" }}</td> | ||
<td> | ||
{% if member.visibile %} | ||
<svg class="icon icon-sm icon-success"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-check-circle"></use> | ||
</svg> | ||
{% else %} | ||
<svg class="icon icon-sm icon-danger"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-close-circle"></use> | ||
</svg> | ||
{% endif %} | ||
</td> | ||
<td class="text-right"> | ||
<a href="{% url 'crud_cds:cds_group_member_edit' regdid_id=regdid.pk group_id=group.pk member_id=member.pk %}" class="btn btn-primary btn-xs"> | ||
<svg class="icon icon-xs icon-white"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-pencil"></use> | ||
</svg> {% trans "Edit" %} | ||
</a> | ||
|
||
<a href="" class="btn btn-danger btn-xs" | ||
data-toggle="modal" | ||
data-target="#delete_cds_group_member_{{ member.pk }}"> | ||
<svg class="icon icon-xs icon-white"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-delete"></use> | ||
</svg> {% trans "Remove" %} | ||
</a> | ||
<div class="modal fade" | ||
tabindex="-1" | ||
role="dialog" | ||
id="delete_cds_group_member_{{ member.pk }}"> | ||
<div class="modal-dialog modal-dialog-centered" | ||
role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title"> | ||
{% trans "Confirm" %} | ||
</h5> | ||
<button class="close" | ||
type="button" | ||
data-dismiss="modal" | ||
aria-label="Close"> | ||
<svg class="icon"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-close"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p> | ||
{% trans "Do you want to delete member?" %} | ||
</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<a class="btn btn-success btn-sm" href="{% url 'crud_cds:cds_group_member_delete' regdid_id=regdid.pk group_id=group.pk member_id=member.pk %}"> | ||
{% trans 'Yes, proceed' %} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<a href="{% url 'crud_cds:cds_group_members_new' regdid_id=regdid.pk group_id=group.pk %}" class="text-center btn btn-block btn-success btn-xs"> | ||
<svg class="icon icon-xs icon-white"> | ||
<use xlink:href="{% static 'svg/sprite.svg' %}#it-plus-circle"></use> | ||
</svg> {% trans "Add new" %} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endblock centered_container %} |
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,19 @@ | ||
{% extends "storage_crud_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load static %} | ||
|
||
|
||
{% block centered_container %} | ||
<h3 style="font-weight: lighter;" class="mb-4"> | ||
{% if choosen_person %}{% trans "Edit member for" %}{% else %}{% trans "New member for" %}{% endif %} {{ group.descr_breve_it }} | ||
</h3> | ||
<div class="card-wrapper card-space"> | ||
<div class="card card-bg no-after"> | ||
<div class="card-body"> | ||
|
||
{% include "blocks/includes/teacher_tabs.html" %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock centered_container %} |
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.