mirror of https://github.com/gophish/gophish
parent
cb39888c54
commit
f1aade0bfa
|
@ -179,7 +179,7 @@ func API_Groups(w http.ResponseWriter, r *http.Request) {
|
||||||
if checkError(err, w, "Error creating JSON response") {
|
if checkError(err, w, "Error creating JSON response") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
writeJSON(w, "{\"success\" : \"true\"}")
|
writeJSON(w, []byte("{\"success\" : \"true\"}"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
db/db.go
2
db/db.go
|
@ -193,6 +193,6 @@ func PostGroup(g *models.Group, uid int64) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeleteGroup(id int) error {
|
func DeleteGroup(id int64) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,9 +34,25 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="campaign in campaigns">
|
<tr ng-repeat="campaign in campaigns" class="editable-row">
|
||||||
<td>{{campaign.created_date | date:'medium'}}</td>
|
<td>{{campaign.created_date | date:'medium'}}</td>
|
||||||
<td>{{campaign.name}}</td>
|
<td>{{campaign.name}}
|
||||||
|
<div class="btn-group" style="float: right;">
|
||||||
|
<button type="button" class="btn btn-primary dropdown-toggle edit-button" data-toggle="dropdown">
|
||||||
|
<span class="caret" style="border-top-color:#FFFFFF"></span>
|
||||||
|
<span class="sr-only">Toggle Dropdown</span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu" style="left:auto; right:0;" role="menu">
|
||||||
|
<li><a href="/settings">View</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="/settings">Edit</a>
|
||||||
|
</li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="/logout">Delete</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td>{{campaign.status}}</td>
|
<td>{{campaign.status}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue