Clearer import control interface
This commit is contained in:
parent
a338a97d5b
commit
c5e534c0cb
@ -2264,9 +2264,13 @@ function website_import_tools() {
|
|||||||
|
|
||||||
$who = $channel['channel_address'];
|
$who = $channel['channel_address'];
|
||||||
|
|
||||||
return replace_macros(get_markup_template('design_tools.tpl'), array(
|
return replace_macros(get_markup_template('website_import_tools.tpl'), array(
|
||||||
'$title' => t('Import'),
|
'$title' => t('Import'),
|
||||||
'$who' => $who,
|
//'$who' => $who,
|
||||||
|
'$import_label' => t('Import website...'),
|
||||||
|
'$import_placeholder' => t('Select folder to import'),
|
||||||
|
'$file_upload_text' => t('Import from a zipped folder:'),
|
||||||
|
'$file_import_text' => t('Import from cloud files:')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,23 @@
|
|||||||
<div id="website-import-tools" class="widget design-tools">
|
<div id="website-import-tools" class="widget">
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
<p class="descriptive-text">Import website from cloud files</p>
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<ul class="nav nav-pills nav-stacked">
|
<li>
|
||||||
<li><button class="btn-md btn-primary"><a href="/cloud/{{$who}}">Select folder...</a></button></li>
|
<a href="#" onclick="openClose('import-form'); return false;"><i class="fa fa-cloud-upload generic-icons"></i> {{$import_label}}</a>
|
||||||
</ul>
|
</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>
|
</div>
|
||||||
|
Reference in New Issue
Block a user