瀏覽代碼

Update new post form

Daniel Supernault 6 年之前
父節點
當前提交
7c1b0c2065
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      resources/views/timeline/partial/new-form.blade.php

+ 13 - 0
resources/views/timeline/partial/new-form.blade.php

@@ -31,6 +31,19 @@
             </button>
             </button>
             <div class="collapse" id="collapsePreview">
             <div class="collapse" id="collapsePreview">
               <div class="form-group pt-3">
               <div class="form-group pt-3">
+                <label class="font-weight-bold text-muted small">Visibility</label>
+                <div class="switch switch-sm">
+                  <select class="form-control" name="visibility">
+                    <option value="public" selected="">Public</option>
+                    <option value="unlisted">Unlisted (hidden from public timelines)</option>
+                    <option value="private">Followers Only</option>
+                  </select>
+                </div>
+                <small class="form-text text-muted">
+                  Set the visibility of this post.
+                </small>
+              </div>
+              <div class="form-group">
                 <label class="font-weight-bold text-muted small">CW/NSFW</label>
                 <label class="font-weight-bold text-muted small">CW/NSFW</label>
                 <div class="switch switch-sm">
                 <div class="switch switch-sm">
                   <input type="checkbox" class="switch" id="cw-switch" name="cw">
                   <input type="checkbox" class="switch" id="cw-switch" name="cw">