<aclass="btn btn-danger"href="{{url_for("delete_protocol",protocol_id=protocol.id)}}"onclick="return confirm('Bist du dir sicher, dass du das Protokoll {{protocol.get_identifier()}} löschen möchtest?');">Löschen</a>
{% if has_admin_right %}
<aclass="btn btn-danger"href="{{url_for("delete_protocol",protocol_id=protocol.id)}}"onclick="return confirm('Bist du dir sicher, dass du das Protokoll {{protocol.get_identifier()}} löschen möchtest?');">Löschen</a>
result.append(Table.link(url_for("delete_protocol",protocol_id=protocol.id),"Löschen",confirm="Bist du dir sicher, dass du das Protokoll {} löschen möchtest?".format(protocol.get_identifier())))
ifprotocol.protocoltype.has_admin_right(user):
result.append(Table.link(url_for("delete_protocol",protocol_id=protocol.id),"Löschen",confirm="Bist du dir sicher, dass du das Protokoll {} löschen möchtest?".format(protocol.get_identifier())))
else:
result.extend(["",""])
returnresult
...
...
@@ -131,6 +132,7 @@ class ProtocolTypeTable(SingleValueTable):
@@ -165,6 +167,8 @@ class ProtocolTypeTable(SingleValueTable):
self.value.allowed_networks
]
action_part=[Table.link(url_for("delete_type",type_id=self.value.id),"Löschen",confirm="Bist du dir sicher, dass du den Protokolltype {} löschen möchtest?".format(self.value.name))]
Table.link(url_for("delete_reminder",type_id=self.protocoltype.id,reminder_id=reminder.id),"Löschen",confirm="Bist du dir sicher, dass du die Einladungsmail {} Tage vor der Sitzung löschen willst?".format(reminder.days_before))
action_links.append(Table.link(url_for("delete_reminder",type_id=self.protocoltype.id,reminder_id=reminder.id),"Löschen",confirm="Bist du dir sicher, dass du die Einladungsmail {} Tage vor der Sitzung löschen willst?".format(reminder.days_before)))
action_part=[Table.concat(action_links)]
returngeneral_part+action_part
defget_send_summary(self,reminder):
parts=[]
...
...
@@ -333,15 +341,15 @@ class DocumentsTable(Table):
defrow(self,document):
user=current_user()
links=[Table.link(url_for("delete_document",document_id=document.id),"Löschen",confirm="Bist du dir sicher, dass du das Dokument {} löschen willst?".format(document.name))]
links.append(Table.link(url_for("delete_document",document_id=document.id),"Löschen",confirm="Bist du dir sicher, dass du das Dokument {} löschen willst?".format(document.name)))
Table.link(url_for("delete_defaultmeta",meta_id=meta.id,confirm="Bist du dir sicher, dass du das Metadatenfeld {} löschen willst?".format(meta.name)),"Löschen")
links.append(Table.link(url_for("delete_defaultmeta",meta_id=meta.id,confirm="Bist du dir sicher, dass du das Metadatenfeld {} löschen willst?".format(meta.name)),"Löschen"))