Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (57 sloc) 3.5 KB
<section class="interests" ng-controller="InterestsCtrl">
<div class="row-fluid">
<alert type="warning" ng-show="deletedInterest !== null" close="closeUndoDelete()">
<strong>{{}}</strong> has been deleted.&nbsp;&nbsp;
<a ng-click="undoDeleteInterest()">Undo</a>
Establish your list of interesting topics. For each topic, set its name and its associated search request.
<br>No account creation is needed, all data is saved in your browser and will be available the next time you visit this page.
<form ng-submit="addInterest();" class="form-horizontal">
<div class="input-group">
<label class="sr-only" for="newinerest">New interest</label>
<input type="text" class="form-control" id="newinterest" ng-model="" placeholder="New interest">
<span class="input-group-btn">
<input type="submit" class="btn btn-default" id="btnSaveNewInterest" value="Add">
</div><!-- /input-group -->
<table class="table table-bordered table-condensed table-hover">
<tr ng-show="interests.length > 0">
<th>Search request *</th>
<th style="width: 100px;"></th>
<tr ng-repeat="interest in interests | orderBy:'name':false">
<span ng-show="interest.editMode == null || interest.editMode == false">{{}}</span>
<input ng-show="interest.editMode === true" type="text" class="form-control" ng-model="" ng-enter="updateInterest(interest)" ng-esc="cancelEditInterest(interest)">
<span ng-show="interest.editMode == null || interest.editMode == false">{{interest.searchString}}</span>
<input ng-show="interest.editMode === true" type="text" class="form-control" ng-model="interest.searchString" ng-enter="updateInterest(interest)" ng-esc="cancelEditInterest(interest)">
<div class="btn-toolbar" ng-show="interest.editMode == null || interest.editMode == false">
<div class="btn-group">
<i class="btn glyphicon glyphicon-pencil" ng-click="toggleEditMode(interest)"></i>
<i class="btn glyphicon glyphicon-trash" ng-click="deleteInterest(interest)"></i>
<div class="btn-toolbar" ng-show="interest.editMode == true">
<div class="btn-group">
<i class="btn glyphicon glyphicon-save" ng-click="updateInterest(interest)"></i>
<i class="btn glyphicon glyphicon-remove" ng-click="cancelEditInterest(interest)"></i>
<p> <strong>*</strong> The search request should follow the same syntax as the one used by the search engine :<ul>
<li>Delimit phrases with double quotes</li>
<li>With Google and Bing, you can use the pipe symbol "|" to separate alternative versions of a same search term</li>