Quick bugfixes

Added dropdown to dashboard table
pull/24/head
Jordan 2014-02-06 21:36:00 -06:00
parent cb39888c54
commit f1aade0bfa
3 changed files with 20 additions and 4 deletions

View File

@ -179,7 +179,7 @@ func API_Groups(w http.ResponseWriter, r *http.Request) {
if checkError(err, w, "Error creating JSON response") {
return
}
writeJSON(w, "{\"success\" : \"true\"}")
writeJSON(w, []byte("{\"success\" : \"true\"}"))
}
}

View File

@ -193,6 +193,6 @@ func PostGroup(g *models.Group, uid int64) error {
return nil
}
func DeleteGroup(id int) error {
func DeleteGroup(id int64) error {
return nil
}

View File

@ -34,9 +34,25 @@
</tr>
</thead>
<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.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>
</tr>
</tbody>