diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-07-10 07:21:52 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-07-10 07:21:52 -0400 |
commit | c5e534c0cb939b9730f289a844f24b1121e6e9cf (patch) | |
tree | 16efcc5ed982e1d22eca523b2ae1f7011791842d /view | |
parent | a338a97d5bb947f462483de8a9d87dd52fa3b2eb (diff) | |
download | volse-hubzilla-c5e534c0cb939b9730f289a844f24b1121e6e9cf.tar.gz volse-hubzilla-c5e534c0cb939b9730f289a844f24b1121e6e9cf.tar.bz2 volse-hubzilla-c5e534c0cb939b9730f289a844f24b1121e6e9cf.zip |
Clearer import control interface
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/website_import_tools.tpl | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/view/tpl/website_import_tools.tpl b/view/tpl/website_import_tools.tpl index 2e319b61d..09b100926 100644 --- a/view/tpl/website_import_tools.tpl +++ b/view/tpl/website_import_tools.tpl @@ -1,7 +1,23 @@ -<div id="website-import-tools" class="widget design-tools"> -<h3>{{$title}}</h3> -<p class="descriptive-text">Import website from cloud files</p> -<ul class="nav nav-pills nav-stacked"> - <li><button class="btn-md btn-primary"><a href="/cloud/{{$who}}">Select folder...</a></button></li> -</ul> +<div id="website-import-tools" class="widget"> + <h3>{{$title}}</h3> + <ul class="nav nav-pills nav-stacked"> + <li> + <a href="#" onclick="openClose('import-form'); return false;"><i class="fa fa-cloud-upload generic-icons"></i> {{$import_label}}</a> + </li> + <form id="import-form" enctype="multipart/form-data" method="post" action="" style="display: none;" class="sub-menu"> + <p class="descriptive-text">{{$file_import_text}}</p> + <div class="form-group"> + <select id="import" name="target" class="form-control"> + <option value="">{{$import_placeholder}}</option> + <!-- Loop through folders here --> + </select> + </div> + <!-- Or upload a zipped file containing the website --> + <p class="descriptive-text">{{$file_upload_text}}</p> + <div class="form-group"> + <input id="website-upload-choose" type="file" name="userfile" /> + </div> + <button class="btn btn-primary btn-sm" type="submit" name="c_upload" value="c_upload">Upload</button> + </form> + </ul> </div> |