Skip to content

Commit

Permalink
adding some color to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhuang committed Jun 11, 2013
1 parent b8b73bf commit f8cab43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deme_django/cms/templates/item/list_bare.html
Expand Up @@ -26,7 +26,7 @@
</label>
<div class="col col-lg-9 input-group">
<input type="text" name="q" value="{{ search_query }}" />
<span class="input-group-btn"><button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i> Search</button></span>
<span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="glyphicon glyphicon-search"></i> Search</button></span>
</div>
</div>
<div class="row">
Expand Down
6 changes: 3 additions & 3 deletions deme_django/cms/templates/templatetags/listgridbox.html
Expand Up @@ -2,9 +2,9 @@
<table id="jqgrid_list{{identifier}}"></table>
<div id="jqgrid_pager{{identifier}}"></div>
<div class="hide jqgrid_multitools" id="jqgrid_multitools{{identifier}}">
<button class="btn btn-default btn-small action-add-to-collection" title="Add selected to a Collection"><i class="glyphicon glyphicon-plus-sign"></i> Add to a Collection</button>
<button class="btn btn-info btn-small action-add-to-collection" title="Add selected to a Collection"><i class="glyphicon glyphicon-plus-sign"></i> Add to a Collection</button>
{% if collection_item %}
<button class="btn btn-default btn-small action-remove-from-collection" title="Remove selected from this Collection"><i class="glyphicon glyphicon-remove"></i> Remove from Collection</button>
<button class="btn btn-warning btn-small action-remove-from-collection" title="Remove selected from this Collection"><i class="glyphicon glyphicon-remove"></i> Remove from Collection</button>
{% endif %}
</div>
<script type="text/javascript">
Expand Down Expand Up @@ -57,7 +57,7 @@
var ids = $("#jqgrid_list{{ identifier }}").getDataIDs();
for (var i = 0; i < ids.length; i++) {
var id = ids[i];
var deleteButton = '<button type="button" class="" onclick="$(\'#removememberform{{identifier}}\')[0].elements[0].value = '+id+'; $(\'#removememberform{{identifier}}\')[0].submit();" title="Remove From Collection"><span class="glyphicon glyphicon-remove"></span></button>';
var deleteButton = '<button type="button" class="btn btn-small btn-warning" onclick="$(\'#removememberform{{identifier}}\')[0].elements[0].value = '+id+'; $(\'#removememberform{{identifier}}\')[0].submit();" title="Remove From Collection"><span class="glyphicon glyphicon-remove"></span></button>';

$("#jqgrid_list{{ identifier }}").setRowData(id, {actions: deleteButton});
}
Expand Down

0 comments on commit f8cab43

Please sign in to comment.