aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/install.html
blob: 164d453b1d6c162bfa6b5a28b9203dbdfdb10d3e (plain) (blame)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html>
<head>
  {include="includes"}
</head>
<body>

{$ratioLabel='1-4'}
{$ratioInput='3-4'}
{$ratioLabelMobile='7-8'}
{$ratioInputMobile='1-8'}

<form method="POST" action="#" name="installform" id="installform">
<div class="pure-g">
  <div class="pure-u-lg-1-6 pure-u-1-24"></div>
  <div class="pure-u-lg-2-3 pure-u-22-24 page-form page-form-complete">
    <h2 class="window-title">{'Install Shaarli'|t}</h2>

    <div class="center">
      {'It looks like it\'s the first time you run Shaarli. Please configure it.'|t}
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-1">
        <div class="form-label">
          <label for="username">
            <span class="label-name">{'Username'|t}</span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-1">
        <div class="form-input">
          <input type="text" name="setlogin" id="username">
        </div>
      </div>
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-1">
        <div class="form-label">
          <label for="password">
            <span class="label-name">{'Password'|t}</span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-1">
        <div class="form-input">
          <input type="password" name="setpassword" id="password">
        </div>
      </div>
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-1">
        <div class="form-label">
          <label for="title">
            <span class="label-name">{'Shaarli title'|t}</span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-1">
        <div class="form-input">
          <input type="text" name="title" id="title" placeholder="{'My links'|t}">
        </div>
      </div>
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-1">
        <div class="form-label">
          <label>
            <span class="label-name">{'Timezone'|t}</span><br>
            <span class="label-desc">{'Continent'|t} &middot; {'City'|t}</span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-1">
        <div class="form-input">
          <div class="timezone">
            <select id="continent" name="continent">
              {loop="$continents"}
                {if="$key !== 'selected'"}
                  <option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
                    {$value}
                  </option>
                {/if}
              {/loop}
            </select>
            <select id="city" name="city">
              {loop="$cities"}
                {if="$key !== 'selected'"}
                  <option value="{$value.city}"
                          {if="$cities.selected === $value.city"}selected{/if}
                          data-continent="{$value.continent}">
                    {$value.city}
                  </option>
                {/if}
              {/loop}
            </select>
          </div>
        </div>
      </div>
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-7-8">
        <div class="form-label">
          <label for="update">
            <span class="label-name">{'Check updates'|t}</span><br>
            <span class="label-desc">
              {'Notify me when a new release is ready'|t}
            </span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-1-8">
        <div class="form-input">
          <input type="checkbox" name="updateCheck" id="update" checked="checked">
        </div>
      </div>
    </div>

    <div class="pure-g">
      <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
        <div class="form-label">
          <label for="enableApi">
            <span class="label-name">{'Enable REST API'|t}</span><br>
            <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span>
          </label>
        </div>
      </div>
      <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
        <div class="form-input">
          <input type="checkbox" name="enableApi" id="enableApi" checked />
        </div>
      </div>
    </div>

    <div class="center">
      <input type="submit" value="{'Install'|t}" name="Save">
    </div>
  </div>
</div>
</form>
{include="page.footer"}
</body>
</html>