diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-22 19:58:22 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-22 19:58:22 +0100 |
commit | 76be95e199fb0ebbbcdfff4843b59b805762e475 (patch) | |
tree | e4521ad8c42f02b93d73cab778aaf193ee1f875c /tpl/default/install.html | |
parent | c4c655d9bfe68a914898d76bb9c479eea1b04f72 (diff) | |
download | Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.tar.gz Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.tar.zst Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.zip |
Add API setting in the new theme during the installation
Also use the same variable name across template files
Diffstat (limited to 'tpl/default/install.html')
-rw-r--r-- | tpl/default/install.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tpl/default/install.html b/tpl/default/install.html index 33f8a453..663397ac 100644 --- a/tpl/default/install.html +++ b/tpl/default/install.html | |||
@@ -7,6 +7,8 @@ | |||
7 | 7 | ||
8 | {$ratioLabel='1-4'} | 8 | {$ratioLabel='1-4'} |
9 | {$ratioInput='3-4'} | 9 | {$ratioInput='3-4'} |
10 | {$ratioLabelMobile='7-8'} | ||
11 | {$ratioInputMobile='1-8'} | ||
10 | 12 | ||
11 | <form method="POST" action="#" name="installform" id="installform"> | 13 | <form method="POST" action="#" name="installform" id="installform"> |
12 | <div class="pure-g"> | 14 | <div class="pure-g"> |
@@ -98,6 +100,22 @@ | |||
98 | </div> | 100 | </div> |
99 | </div> | 101 | </div> |
100 | 102 | ||
103 | <div class="pure-g"> | ||
104 | <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}"> | ||
105 | <div class="form-label"> | ||
106 | <label for="enableApi"> | ||
107 | <span class="label-name">{'Enable REST API'|t}</span><br> | ||
108 | <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span> | ||
109 | </label> | ||
110 | </div> | ||
111 | </div> | ||
112 | <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}"> | ||
113 | <div class="form-input"> | ||
114 | <input type="checkbox" name="enableApi" id="enableApi" checked /> | ||
115 | </div> | ||
116 | </div> | ||
117 | </div> | ||
118 | |||
101 | <div class="center"> | 119 | <div class="center"> |
102 | <input type="submit" value="{'Install'|t}" name="Save"> | 120 | <input type="submit" value="{'Install'|t}" name="Save"> |
103 | </div> | 121 | </div> |