2013-04-30 16:17:34 +02:00
|
|
|
<div>
|
|
|
|
|
<div class="page-header">
|
2013-05-12 12:38:56 +02:00
|
|
|
<h3>${details.feed_details}</h3>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
<form name="form" class="form-horizontal" ng-submit="save()">
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.url}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-04-30 16:17:34 +02:00
|
|
|
<a href="{{sub.feedUrl}}" target="_blank">{{sub.feedUrl}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.website}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-07-01 21:42:26 +01:00
|
|
|
<a href="{{sub.feedLink}}" target="_blank">{{sub.feedLink}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group" ng-class="{error : !form.name.$valid}">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.name}</label>
|
|
|
|
|
<div class="col-sm-10">
|
2013-11-28 09:40:50 +01:00
|
|
|
<input type="text" name="name" ng-model="sub.name" class="form-control" required></input>
|
|
|
|
|
<span class="help-block" ng-show="!form.name.$valid">${global.required}</span>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group" ng-class="{error : !form.category.$valid}">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.category}</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<select name="category" class="form-control" ng-model="sub.categoryId"
|
2013-04-30 16:17:34 +02:00
|
|
|
ng-options="cat.id as cat.name for cat in CategoryService.flatCategories">
|
2013-11-28 09:40:50 +01:00
|
|
|
</select>
|
|
|
|
|
<span class="help-block" ng-show="!form.category.$valid">${global.required}</span>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.position}</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="number" min="0" ng-model="sub.position" class="form-control" />
|
2013-06-04 10:11:16 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.last_refresh}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-05-02 10:01:51 +02:00
|
|
|
<span>{{sub.lastRefresh|entryDate}}</span>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-27 12:13:18 +01:00
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.next_refresh}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-05-26 20:23:21 +02:00
|
|
|
<span>{{sub.nextRefresh|entryDate:"${details.queued_for_refresh}" }}</span>
|
2013-05-22 16:10:50 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-11-27 12:13:18 +01:00
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.message}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-08-13 12:15:30 +02:00
|
|
|
<span>{{sub.message}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-04-30 16:17:34 +02:00
|
|
|
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">${details.feed_url}</label>
|
|
|
|
|
<div class="col-sm-10 checkbox">
|
2013-07-08 09:09:38 +02:00
|
|
|
<a ng-show="user.apiKey" href="{{'rest/feed/entriesAsFeed?id=' + sub.id + '&apiKey=' + user.apiKey}}" target="_blank">${global.link}</a>
|
2013-05-12 12:38:56 +02:00
|
|
|
<span ng-show="!user.apiKey">${details.generate_api_key_first}</span>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-11-27 12:13:18 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
2013-11-28 09:40:50 +01:00
|
|
|
<button type="submit" class="btn btn-primary">${global.save}</button>
|
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="unsubscribe()" confirm-click="${details.unsubscribe_confirmation}">${details.unsubscribe}</button>
|
2013-11-27 12:13:18 +01:00
|
|
|
<button type="button" class="btn btn-default" ng-click="back()">${global.cancel}</button>
|
|
|
|
|
</div>
|
2013-04-30 16:17:34 +02:00
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
</div>
|