summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Frei <freisim93@gmail.com>2021-04-13 20:22:55 +0200
committerGitHub <noreply@github.com>2021-04-13 20:22:55 +0200
commit156d96e58227e346aaf90caf66d7375498a174dc (patch)
tree0bf854630fc1616255e2b20b86be682aaa096492
parent9ba76115373408ac1823c7bdff0aab02591f7564 (diff)
gui: Add missing file (fixes #7571, ref #7567) (#7573)v1.16.0-rc.2
-rw-r--r--gui/default/syncthing/core/editShareTemplate.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/gui/default/syncthing/core/editShareTemplate.html b/gui/default/syncthing/core/editShareTemplate.html
new file mode 100644
index 000000000..4d8de1430
--- /dev/null
+++ b/gui/default/syncthing/core/editShareTemplate.html
@@ -0,0 +1,40 @@
+<div class="col-md-6 checkbox">
+ <label for="sharedwith-{{id}}">
+ <input id="sharedwith-{{id}}" ng-model="selected[id]" type="checkbox" />
+ <span tooltip data-original-title="{{id}}">{{label}}</span>
+ </label>
+</div>
+<div class="col-md-6">
+ <div class="input-group">
+ <span class="input-group-addon" ng-switch="folderType !== 'receiveencrypted' && !encryptionPasswords[id]">
+ <span ng-switch-when='true' class="fas fa-fw fa-unlock" />
+ <span ng-switch-default class="fas fa-fw fa-lock" />
+ </span>
+ <span ng-switch="folderType === 'receiveencrypted'">
+ <span ng-switch-when='true'>
+ <input class="form-control input-sm" type="password" placeholder="{{'Received data is already encrypted' | translate}}" disabled />
+ </span>
+ <span ng-switch-default ng-switch="selected[id]">
+ <span ng-switch-when='true' ng-switch="untrusted">
+ <span ng-switch-when='true' ng-class="{'has-error': !encryptionPasswords[id]}">
+ <input class="form-control input-sm" type="{{plain ? 'text' : 'password'}}" ng-model="encryptionPasswords[id]" required placeholder="{{'Device is untrusted, enter encryption password' | translate}}" />
+ </span>
+ <span ng-switch-default>
+ <input class="form-control input-sm" type="{{plain ? 'text' : 'password'}}" ng-model="encryptionPasswords[id]" placeholder="{{'If untrusted, enter encryption password' | translate}}" />
+ </span>
+ </span>
+ <span ng-switch-default>
+ <input class="form-control input-sm" type="password" placeholder="{{'Not shared' | translate}}" disabled />
+ </span>
+ </span>
+ </span>
+ <span ng-switch="selected[id] && folderType !== 'receiveencrypted'" class="input-group-addon">
+ <span ng-switch-when='true'>
+ <span class="button fas fa-fw fa-eye" ng-click="togglePasswordVisibility()" />
+ </span>
+ <span ng-switch-default>
+ <span class="button fas fa-fw fa-eye" disabled />
+ </span>
+ </span>
+ </div>
+</div>