diff options
author | brantje <brantje@gmail.com> | 2016-10-04 00:53:11 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-04 00:53:11 +0300 |
commit | 6fe0ea1e972ac95d1deb0ccc3563da6a592c6e8e (patch) | |
tree | 25bff49fb31434a3cacf0de1658ac28c44a041a1 /templates | |
parent | d944901cca9da6ffb61876719af9b25f4bf1d1f6 (diff) |
Link sharing almost works
Diffstat (limited to 'templates')
-rw-r--r-- | templates/views/partials/forms/share_credential/link_sharing.html | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/templates/views/partials/forms/share_credential/link_sharing.html b/templates/views/partials/forms/share_credential/link_sharing.html index 21e80447..c4c2bf3f 100644 --- a/templates/views/partials/forms/share_credential/link_sharing.html +++ b/templates/views/partials/forms/share_credential/link_sharing.html @@ -4,32 +4,20 @@ Enable link sharing.<br/> <input type="text" ng-model="share_link" select-on-click ng-if="share_settings.linkSharing.enabled"> - <div ng-if="share_settings.linkSharing.enabled"> - Expire settings: - <select ng-model="share_settings.linkSharing.settings.type"> - <option value="null">Does not expire</option> - <option value="view_amount">Expire after a certain amount of - views - </option> - <option value="date">Expire after a date</option> - </select> - </div> - <div ng-show="share_settings.linkSharing.settings.type == 'date'"> + <div ng-show="share_settings.linkSharing.enabled"> Share until date <span datetime-picker - ng-model="share_settings.linkSharing.settings.value" + ng-model="share_settings.linkSharing.settings.expire_time" class="link" future-only - ng-show="!share_settings.linkSharing.settings.value" - close-on-select="false" > No expire date set</span> </div> - <div ng-show="share_settings.linkSharing.settings.type == 'view_amount'"> + <div ng-show="share_settings.linkSharing.enabled"> Share until views <input type="number" - ng-model="share_settings.linkSharing.settings.value"> + ng-model="share_settings.linkSharing.settings.expire_views"> </div> <div ng-if="share_settings.linkSharing.enabled"> <table> |