summaryrefslogtreecommitdiffstats
path: root/templates/sysconfig
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-30 11:51:59 +0200
committerSimon Rettberg2015-09-30 11:51:59 +0200
commitd265bcd8988ae9e83b84b375a58e074e5ffa5656 (patch)
tree78293475298bb002db86a7637c239975dd034db4 /templates/sysconfig
parent[diskstat] Fix i18n placeholder name; update translations (diff)
downloadslx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.tar.gz
slx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.tar.xz
slx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.zip
Make file input look more consistent across browsers
Diffstat (limited to 'templates/sysconfig')
-rw-r--r--templates/sysconfig/branding-start.html9
-rw-r--r--templates/sysconfig/custom-upload.html12
2 files changed, 16 insertions, 5 deletions
diff --git a/templates/sysconfig/branding-start.html b/templates/sysconfig/branding-start.html
index 1470929f..09b9ca27 100644
--- a/templates/sysconfig/branding-start.html
+++ b/templates/sysconfig/branding-start.html
@@ -11,7 +11,14 @@
{{lang_or}}
<div class="form-group">
<label for="input-file">{{lang_computerLoad}}</label>
- <input class="form-control" type="file" name="file" id="input-file">
+ <div class="input-group upload-ex">
+ <input type="text" class="form-control" readonly placeholder="{{lang_selectFile}}">
+ <span class="input-group-btn">
+ <span class="btn btn-default btn-file">
+ {{lang_browseForFile}}&hellip; <input type="file" name="file" id="input-file">
+ </span>
+ </span>
+ </div>
</div>
<button type="submit" class="btn btn-primary">{{lang_upload}}</button>
</form>
diff --git a/templates/sysconfig/custom-upload.html b/templates/sysconfig/custom-upload.html
index 02f813f6..c453a97d 100644
--- a/templates/sysconfig/custom-upload.html
+++ b/templates/sysconfig/custom-upload.html
@@ -5,10 +5,14 @@
<form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="edit" value="{{edit}}">
- <div class="input-group">
- <span class="input-group-addon">{{lang_file}}</span>
- <input class="form-control" type="file" name="modulefile">
- </div>
+ <div class="input-group upload-ex">
+ <input type="text" class="form-control" readonly placeholder="{{lang_selectFile}}">
+ <span class="input-group-btn">
+ <span class="btn btn-default btn-file">
+ {{lang_browseForFile}}&hellip; <input type="file" name="modulefile">
+ </span>
+ </span>
+ </div>
<p class="help-block">{{lang_supportedFiles}}: .tar.gz, .tar.bz2, .zip</p>
<button type="submit" class="btn btn-primary">{{lang_upload}}</button>
</form>