Skip to content

Instantly share code, notes, and snippets.

View iamwill's full-sized avatar

Will Leingang iamwill

View GitHub Profile
<div class="panel panel-primary">
<div class="panel-heading">Request an item from the catalog</div>
<div class="panel-body">
<input class="form-control" type="search" placeholder="Start typing here to search the list of catalog items" ng-model="c.data.keywords" ng-change="c.server.update()" ng-model-options="{debounce: 250}" />
<h5 ng-if="!c.data.keywords">Showing the most popular items</h5>
<ul class="list-group result-container">
<li class="list-group-item" ng-repeat="item in c.data.items">
<a href ng-click="c.select(item.sys_id)"><category-icon category="item.category" style="margin-right: 10px"></category-icon>{{item.name}}</a><span class="pull-right">{{item.price}}</span>
<div class="catalog-item" ng-if="item.sys_id == c.openItem">
<sp-widget ng-if="c.catalogItemWidget" widget="c.catalogItemWidget" />