Cleaned up Lotw Import

This commit is contained in:
Peter Goodhall 2019-05-21 17:02:26 +01:00
parent 45c2179932
commit 9d6ce9194e
2 changed files with 39 additions and 21 deletions

View File

@ -1,28 +1,42 @@
<div class="container"> <div class="container lotw">
<h2><?php echo $page_title; ?></h2>
<?php $this->load->view('layout/messages'); ?>
<?php echo form_open_multipart('lotw/import');?> <h1>LOTW Import</h1>
<table>
<tr> <div class="card">
<td><input type="radio" name="lotwimport" id="upload" value="upload" checked /> Upload a file</td> <div class="card-header">Import Options</div>
<td> <div class="card-body">
<?php $this->load->view('layout/messages'); ?>
<?php echo form_open_multipart('lotw/import');?>
<div class="custom-control custom-radio">
<input type="radio" id="lotwimport" name="lotwimport" class="custom-control-input">
<label class="custom-control-label" for="lotwimport">Upload a file</label>
<p>Upload the Exported ADIF file from LoTW from the <a href="https://p1k.arrl.org/lotwuser/qsos?qsoscmd=adif" target="_blank">Download Report</a> Area, to mark QSOs as confirmed on LOTW.</p> <p>Upload the Exported ADIF file from LoTW from the <a href="https://p1k.arrl.org/lotwuser/qsos?qsoscmd=adif" target="_blank">Download Report</a> Area, to mark QSOs as confirmed on LOTW.</p>
<p><span class="label important">Important</span> Log files must have the file type .adi</p> <p><span class="label important">Important</span> Log files must have the file type .adi</p>
<input type="file" name="userfile" size="20" /> <div class="custom-file">
</td> <input type="file" class="custom-file-input" id="adiffile" name="userfile" size="20" />
</tr> <label class="custom-file-label" for="adiffile">Choose file</label>
<tr> </div>
<td><input type="radio" name="lotwimport" id="fetch" value="fetch" /> Pull LoTW data for me</td> </div>
<td>
<p>Cloudlog will use the LoTW username and password stored in your user profile to download a report from LoTW for you. The report Cloudlog downloads will have all confirmations since your last LoTW confirmation, up until now.</p>
<p><span class="badge badge-info">Important</span> You must have QSOs in the logbook before this option works, it will not populate your log from empty based on LoTW QSOs yet.</p> <br><br>
</td>
</tr>
</table>
<input class="btn primary" type="submit" value="Import" />
</form> <div class="custom-control custom-radio">
<input type="radio" name="lotwimport" id="fetch" class="custom-control-input" value="fetch" />
<label class="custom-control-label" for="fetch">Pull LoTW data for me</label>
</div>
<p class="form-text text-muted">Cloudlog will use the LoTW username and password stored in your user profile to download a report from LoTW for you. The report Cloudlog downloads will have all confirmations since your last LoTW confirmation, up until now.</p>
<p class="form-text text-muted"><span class="badge badge-info">Important</span> You must have QSOs in the logbook before this option works, it will not populate your log from empty based on LoTW QSOs yet.</p>
<input class="btn primary" type="submit" value="Import" />
</form>
</div>
</div>
</div> </div>

View File

@ -34,6 +34,10 @@
padding-top: 15px; padding-top: 15px;
} }
.adif {
padding-top: 15px;
}
.adif .alert p { .adif .alert p {
margin-bottom: 0rem; margin-bottom: 0rem;
} }