aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-22 19:58:22 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-22 19:58:22 +0100
commit76be95e199fb0ebbbcdfff4843b59b805762e475 (patch)
treee4521ad8c42f02b93d73cab778aaf193ee1f875c /tpl/default
parentc4c655d9bfe68a914898d76bb9c479eea1b04f72 (diff)
downloadShaarli-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')
-rw-r--r--tpl/default/configure.html4
-rw-r--r--tpl/default/install.html18
2 files changed, 20 insertions, 2 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html
index d6536d47..12261487 100644
--- a/tpl/default/configure.html
+++ b/tpl/default/configure.html
@@ -186,7 +186,7 @@
186 <div class="pure-g"> 186 <div class="pure-g">
187 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}"> 187 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
188 <div class="form-label"> 188 <div class="form-label">
189 <label for="apiEnabled"> 189 <label for="enableApi">
190 <span class="label-name">{'Enable REST API'|t}</span><br> 190 <span class="label-name">{'Enable REST API'|t}</span><br>
191 <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span> 191 <span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span>
192 </label> 192 </label>
@@ -194,7 +194,7 @@
194 </div> 194 </div>
195 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}"> 195 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
196 <div class="form-input"> 196 <div class="form-input">
197 <input type="checkbox" name="apiEnabled" id="apiEnabled" 197 <input type="checkbox" name="enableApi" id="enableApi"
198 {if="$api_enabled"}checked{/if}/> 198 {if="$api_enabled"}checked{/if}/>
199 </div> 199 </div>
200 </div> 200 </div>
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>