Browse Source

Awork auch in overview-Kommentar

gc-server3 10 months ago
parent
commit
2825b2631f
1 changed files with 15 additions and 4 deletions
  1. 15 4
      app/views/overview.html

+ 15 - 4
app/views/overview.html

@@ -185,17 +185,28 @@
                             </div>
                         </td>
                     </tr>
-                    <tr ng-show="current.kommentar.status=='7'">
-                        <th>Empfänger</th>
+                    <tr>
+                        <th>Awork-Aufgabe erstellen</th>
                         <td>
                             <div class="dropdown">
-                                <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer2||'unbekannt'}}&nbsp;<b class="caret"></b></a>
+                                <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{getProject(current.kommentar.awork_project_id)}}&nbsp;<b class="caret"></b></a>
                                 <ul class="dropdown-menu" role="menu">
-                                    <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer2=val;current.kommentar.kommentar='weitergeleitet an '+val">{{val}}</a></li>
+                                    <li><a ng-click="current.kommentar.awork_project_id=''">-- keine Aktion --</a></li>
+                                    <li ng-repeat="val in current.awork_projekte"><a ng-click="current.kommentar.awork_project_id=val.awork_project_id">{{val.projekt_name}}</a></li>
                                 </ul>
                             </div>
                         </td>
                     </tr>
+                    <tr ng-show="current.kommentar.awork_project_id!=''">
+                        <th>Awork-Aufgabe zuweisen</th>
+                        <td>
+                            <div class="dropdown">
+                                <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer2||'mir selbst'}}&nbsp;<b class="caret"></b></a>
+                                <ul class="dropdown-menu" role="menu">
+                                    <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer2=val">{{val}}</a></li>
+                                </ul>
+                            </div>
+                        </td>
                     <tr>
                         <th>Anzahl Fehler
                             <span class="label label-danger label-{{current.fehler.anzahl}}"> {{current.fehler.anzahl}}</span>