summaryrefslogtreecommitdiff
path: root/views/partials/settings.ejs
blob: 65fdf43b03bdea673c175af2ae308efdfab57c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<div class="modal" id="thread_settings">
  <div class="inner">
    <h2>thread settings</h2>
    <a class="close_link">exit settings</a>
    <div id="thread_controls">
      <div id="left_side">
        <form id="thread_fields">
          <div>
            <label for="thread_title">Title</label>
            <div>
              <input id="thread_title" name="title" type="text">
            </div>
          </div>
  <!--
          <div>
            <label for="thread_bg">Background</label>
            <div>
              <input id="thread_bg" name="bg" type="text" placeholder="Enter URL"><br>
              <img id="thread_bg_img" />
            </div>
          </div>
  -->
          <div class="dropdown">
            <label for="thread_color">Color</label>
            <select id="thread_color" name="color"></select>
          </div>
          <div class="dropdown">
            <label for="thread_keyword">Keyword</label>
            <select id="thread_keyword" name="keyword"></select>
          </div>
          <div class="dropdown">
            <label for="thread_sort">Sort Files</label>
            <select id="thread_sort" name="sort"></select>
          </div>
          <div>
            <label for="thread_hootbox">hoot style</label>
            <input id="thread_hootbox" name="hootbox" value="1" type="checkbox">
          </div>
          <div>
            <label for="thread_noupload">disable uploads</label>
            <input id="thread_noupload" name="noupload" value="1" type="checkbox">
          </div>
          <div>
            <label for="thread_shorturls">shorten urls</label>
            <input id="thread_shorturls" name="shorturls" value="1" type="checkbox">
          </div>
          <div>
            <label for="thread_privacy">private?</label>
            <input id="thread_privacy" name="privacy" value="1" type="checkbox">
          </div>
          <div class="allowed_field_container">
            <label for="allowed_field">allow names:</label>
            <input id="allowed_field" name="allowed_field" type="text" />
          </div>
          <div class="allowed_names">
            <script type="text/html" class="allowedTemplate">
              <div>
                <label for="user_{{username}}">{{username}}</label>
                <input id="user_{{username}}" name="allowed" value="{{username}}" type="checkbox" checked>
              </div>
            </script>
          </div>
          <div>
            <label></label>
            <input id="thread_submit" value="Save" type="submit">
            <div class="loader"></div>
          </div>
          <div>
            <label></label>
            <div id="errors"></div>
          </div>
        </form>
        <br><br>
        <div class="thread_field">
          <label style="padding-top: 2px">danger zone:</label>
          <div><button class="thread_delete">Delete&nbsp;This&nbsp;Thread</button></div>
        </div>
      </div>
      
      <div id="right_side">

        <div class='move_files_select'>
          <select name="thread">
            <option value="">Move files to another thread</option>
          </select>
          <button id="move_files">move</button>
        </div>

        <table class="files" id="settings_files">
          <script class="settingsFilesTemplate" type="text/html">
            <tr class="file">
              <td>
                <input type="checkbox" name="file_id" value="{{id}}">
              </td>
              <td class='name'>
                <a href="{{link}}" class="file">{{filename}}</a>
              </td>
              <td class="{{date_class}}">
                {{date}}
              </td>
              <td class="{{date_class}}">
                {{time}}
              </td>
              <td>
                {{size}}
              </td>
              <td class="user">
                <a href="/profile/{{username}}">{{username}}</a>
              </td>
              <td>
                <a href="#" class="file_delete" data-id={{id}}>delete</a>
              </td>
            </tr>
          </script>
        </table>


      </div>
    </div>
  </div>
</div>