sharedialoglinkshareview_popover_menu.handlebars 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <div class="popovermenu menu">
  2. <ul>
  3. <li class="hidden linkTextMenu">
  4. <span class="menuitem icon-link-text">
  5. <input id="linkText-{{cid}}" class="linkText" type="text" readonly="readonly" value="{{shareLinkURL}}" />
  6. </span>
  7. </li>
  8. {{#if publicUpload}}
  9. <li>
  10. <span class="menuitem">
  11. <span class="icon-loading-small hidden"></span>
  12. <input type="radio" name="publicUpload" value="{{publicUploadRValue}}" id="sharingDialogAllowPublicUpload-r-{{cid}}" class="radio publicUploadRadio" {{{publicUploadRChecked}}} />
  13. <label for="sharingDialogAllowPublicUpload-r-{{cid}}">{{publicUploadRLabel}}</label>
  14. </span>
  15. </li>
  16. <li>
  17. <span class="menuitem">
  18. <span class="icon-loading-small hidden"></span>
  19. <input type="radio" name="publicUpload" value="{{publicUploadRWValue}}" id="sharingDialogAllowPublicUpload-rw-{{cid}}" class="radio publicUploadRadio" {{{publicUploadRWChecked}}} />
  20. <label for="sharingDialogAllowPublicUpload-rw-{{cid}}">{{publicUploadRWLabel}}</label>
  21. </span>
  22. </li>
  23. <li>
  24. <span class="menuitem">
  25. <span class="icon-loading-small hidden"></span>
  26. <input type="radio" name="publicUpload" value="{{publicUploadWValue}}" id="sharingDialogAllowPublicUpload-w-{{cid}}" class="radio publicUploadRadio" {{{publicUploadWChecked}}} />
  27. <label for="sharingDialogAllowPublicUpload-w-{{cid}}">{{publicUploadWLabel}}</label>
  28. </span>
  29. </li>
  30. {{/if}}
  31. {{#if publicEditing}}
  32. <li id="allowPublicEditingWrapper">
  33. <span class="menuitem">
  34. <span class="icon-loading-small hidden"></span>
  35. <input type="checkbox" name="allowPublicEditing" id="sharingDialogAllowPublicEditing-{{cid}}" class="checkbox publicEditingCheckbox" {{{publicEditingChecked}}} />
  36. <label for="sharingDialogAllowPublicEditing-{{cid}}">{{publicEditingLabel}}</label>
  37. </span>
  38. </li>
  39. {{/if}}
  40. <li>
  41. <span class="menuitem">
  42. <span class="icon-loading-small hidden"></span>
  43. <input type="checkbox" name="hideDownload" id="sharingDialogHideDownload-{{cid}}" class="checkbox hideDownloadCheckbox"
  44. {{#if hideDownload}}checked="checked"{{/if}} />
  45. <label for="sharingDialogHideDownload-{{cid}}">{{hideDownloadLabel}}</label>
  46. </span>
  47. </li>
  48. <li>
  49. <span class="menuitem">
  50. <input type="checkbox" name="showPassword" id="showPassword-{{cid}}" class="checkbox showPasswordCheckbox"
  51. {{#if isPasswordSet}}checked="checked"{{/if}} {{#if isPasswordEnforced}}disabled="disabled"{{/if}} value="1" />
  52. <label for="showPassword-{{cid}}">{{enablePasswordLabel}}</label>
  53. </span>
  54. </li>
  55. <li class="{{#unless isPasswordSet}}hidden{{/unless}} linkPassMenu">
  56. <span class="menuitem icon-share-pass">
  57. <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholder}}" autocomplete="new-password" />
  58. <input type="submit" class="icon-confirm share-pass-submit" value="" />
  59. <span class="icon icon-loading-small hidden"></span>
  60. </span>
  61. </li>
  62. {{#if showPasswordByTalkCheckBox}}
  63. <li>
  64. <span class="shareOption menuitem">
  65. <span class="icon-loading-small hidden"></span>
  66. <input type="checkbox" name="passwordByTalk" id="passwordByTalk-{{cid}}" class="checkbox passwordByTalkCheckbox"
  67. {{#if isPasswordByTalkSet}}checked="checked"{{/if}} />
  68. <label for="passwordByTalk-{{cid}}">{{passwordByTalkLabel}}</label>
  69. </span>
  70. </li>
  71. {{/if}}
  72. <li>
  73. <span class="menuitem">
  74. <input id="expireDate-{{cid}}" type="checkbox" name="expirationDate" class="expireDate checkbox"
  75. {{#if hasExpireDate}}checked="checked"{{/if}} {{#if isExpirationEnforced}}disabled="disabled"{{/if}} />
  76. <label for="expireDate-{{cid}}">{{expireDateLabel}}</label>
  77. </span>
  78. </li>
  79. <li class="{{#unless hasExpireDate}}hidden{{/unless}}">
  80. <span class="menuitem icon-expiredate expirationDateContainer-{{cid}}">
  81. <label for="expirationDatePicker-{{cid}}" class="hidden-visually" value="{{expirationDate}}">{{expirationLabel}}</label>
  82. <!-- do not use the datepicker if enforced -->
  83. <input id="expirationDatePicker-{{cid}}" class="{{#unless isExpirationEnforced}}datepicker{{/unless}}" type="text"
  84. placeholder="{{expirationDatePlaceholder}}" value="{{#if hasExpireDate}}{{expireDate}}{{else}}{{defaultExpireDate}}{{/if}}"
  85. data-max-date="{{maxDate}}" {{#if isExpirationEnforced}}readonly{{/if}} />
  86. </span>
  87. </li>
  88. <li>
  89. <a href="#" class="share-add">
  90. <span class="icon-loading-small hidden"></span>
  91. <span class="icon icon-edit"></span>
  92. <span>{{addNoteLabel}}</span>
  93. <input type="button" class="share-note-delete icon-delete {{#unless hasNote}}hidden{{/unless}}">
  94. </a>
  95. </li>
  96. <li class="share-note-form share-note-link {{#unless hasNote}}hidden{{/unless}}">
  97. <span class="menuitem icon-note">
  98. <textarea class="share-note">{{shareNote}}</textarea>
  99. <input type="submit" class="icon-confirm share-note-submit" value="" id="add-note-{{shareId}}" />
  100. </span>
  101. </li>
  102. {{#each social}}
  103. <li>
  104. <a href="#" class="menuitem pop-up" data-url="{{url}}" data-window="{{newWindow}}">
  105. <span class="icon {{iconClass}}"></span>
  106. <span>{{label}}</span>
  107. </a>
  108. </li>
  109. {{/each}}
  110. <li>
  111. <a href="#" class="unshare"><span class="icon-loading-small hidden"></span><span class="icon icon-delete"></span><span>{{unshareLinkLabel}}</span></a>
  112. </li>
  113. <li>
  114. <a href="#" class="new-share">
  115. <span class="icon-loading-small hidden"></span>
  116. <span class="icon icon-add"></span>
  117. <span>{{newShareLabel}}</span>
  118. </a>
  119. </li>
  120. </ul>
  121. </div>