WIP separate save and generate functions

This commit is contained in:
Leon Stafford 2016-12-29 14:45:16 +13:00
parent dacb33dcfd
commit e639e9e775
2 changed files with 20 additions and 14 deletions

View file

@ -26,9 +26,6 @@ jQuery(document).ready(function($){
<h2><?= __('WP Static HTML Output - Configure & Run', 'static-html-output-plugin');?></h2>
<div id="results">
results go here...
</div>
<?php if (is_array($this->exportLog) && count($this->exportLog)): ?>
<h3>Export Log</h3>
@ -98,6 +95,12 @@ jQuery(document).ready(function($){
<label for="ftpRemotePath"><?= __('FTP Remote Path', 'static-html-output-plugin');?>:</label><br />
<input name="ftpRemotePath" id="ftpRemotePath" value="<?php echo esc_attr($this->ftpRemotePath) ?>" size="30" />
</p>
<p class="submit">
<?php wp_nonce_field($this->onceAction) ?>
<input type="hidden" name="action" value="generate" />
<input class="button-primary" type="submit" name="submit" value="Save current options" />
</p>
</div>
</div>
@ -111,11 +114,10 @@ jQuery(document).ready(function($){
<p>
<i>Clicking the button below will start the process of generating a static site from your WordPress installation. Depending on the size of your website, this process may take some time.</i>
</p>
<p class="submit">
<?php wp_nonce_field($this->onceAction) ?>
<input type="hidden" name="action" value="generate" />
<input class="button-primary" type="submit" name="submit" value="Start static site export" />
</p>
<div id="results">
results go here...
</div>
<p class="submit">
<?php wp_nonce_field($this->onceAction) ?>
@ -123,15 +125,10 @@ jQuery(document).ready(function($){
<input id="generateArchiveButton" class="button-primary" value="Start static site export (AJAX)" />
</p>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>