Browse Source

Document ACtivity: fields adjusted

aguryev 3 years ago
parent
commit
53481473ae
3 changed files with 6 additions and 4 deletions
  1. 4 2
      antrag.py
  2. 1 1
      pms/data/antrag_activities.json
  3. 1 1
      pms/data/antrags.json

+ 4 - 2
antrag.py

@@ -131,7 +131,10 @@ class SampleAntrag(Antrag):
                 "name": file.filename,
                 "created": file.created.strftime(date_format),
                 "type": file.type,
-                "link": f"api/files/{file.id}",
+                "actions": [
+                    "edit",
+                    "delete",
+                ]
             } for index, file in enumerate(antrag_files)
         ]
 
@@ -174,7 +177,6 @@ class SampleAntrag(Antrag):
                 "name": file.filename,
                 "created": file.created.strftime(date_format),
                 "signed": "Yes" if file.processed else "No",
-                "link": f"api/files/{file.id}",
             } for file in antrag_docs
         ] 
 

+ 1 - 1
pms/data/antrag_activities.json

@@ -24,7 +24,7 @@
     {
       "name": "Documents",
       "description": "Documents",
-      "icon": "iconSaveRecommendation.svg",
+      "icon": "downUploadDocuments.svg",
       "fields": [
         {
           "fieldType": 2,

+ 1 - 1
pms/data/antrags.json

@@ -129,7 +129,7 @@
             "name": "PreviousCancelationReason",
             "brief": "Cancelation Reason",
             "tooltip": "Please type the reason for the policy cancelation",
-            "fieldDataType": "Text",
+            "fieldDataType": "TextBox",
             "valueChosenOrEntered": "",
             "isMandatory": true
           }