fixed lotw import style

pull/2707/head
HB9HIL 2023-11-25 11:12:21 +01:00
rodzic ac0e3b7bc3
commit 823c44bfc1
1 zmienionych plików z 47 dodań i 52 usunięć

Wyświetl plik

@ -2,67 +2,62 @@
<h2><?php echo lang('lotw_title'); ?> - <?php echo lang('lotw_title_adif_import'); ?></h2>
<div class="card">
<div class="card-header"><?php echo lang('lotw_title_adif_import_options'); ?></div>
<div class="card-body">
<div class="card">
<div class="card-header"><?php echo lang('lotw_title_adif_import_options'); ?></div>
<div class="card-body">
<?php $this->load->view('layout/messages'); ?>
<?php $this->load->view('layout/messages'); ?>
<?php echo form_open_multipart('lotw/import');?>
<?php echo form_open_multipart('lotw/import'); ?>
<div class="form-check">
<input type="radio" id="lotwimport" name="lotwimport" class="form-check-input">
<label class="form-check-label" for="lotwimport"><?php echo lang('lotw_input_a_file'); ?></label>
<div class="form-check">
<input type="radio" id="lotwimport" name="lotwimport" class="form-check-input">
<label class="form-check-label" for="lotwimport"><?php echo lang('lotw_input_a_file'); ?></label>
<br><br>
<p><?php echo lang('lotw_upload_exported_adif_file_from_lotw'); ?></p>
<p><span class="badge text-bg-info"><?php echo lang('general_word_important'); ?></span> <?php echo lang('lotw_upload_type_must_be_adi'); ?></p>
<p><?php echo lang('lotw_upload_exported_adif_file_from_lotw'); ?></p>
<p><span class="badge text-bg-info"><?php echo lang('general_word_important'); ?></span> <?php echo lang('lotw_upload_type_must_be_adi'); ?></p>
<div class="custom-file">
<input type="file" class="form-control" id="adiffile" name="userfile" size="20" />
<label class="form-label" for="adiffile"><?php echo lang('general_word_choose_file'); ?></label>
<label class="visually-hidden" for="adiffile"><?php echo lang('general_word_choose_file'); ?></label>
<input type="file" class="file-input mb-2 me-sm-2" id="adiffile" name="userfile" size="20" />
</div>
<br><br>
<br><br>
<div class="form-check">
<input type="radio" name="lotwimport" id="fetch" class="form-check-input" value="fetch" checked="checked" />
<label class="form-check-label" for="fetch"><?php echo lang('lotw_pull_lotw_data_for_me'); ?></label>
</div>
<p class="card-text"><?php echo lang('gen_from_date'); ?>:</p>
<div class="row">
<div class="col-md-3">
<input name="from" id="from" type="date" class="form-control w-auto">
<div>
<div class="form-check">
<input type="radio" name="lotwimport" id="fetch" class="form-check-input" value="fetch" checked="checked" />
<label class="form-check-label" for="fetch"><?php echo lang('lotw_pull_lotw_data_for_me'); ?></label>
<br><br>
<p class="card-text"><?php echo lang('gen_from_date'); ?>:</p>
<div class="row">
<div class="col-md-3">
<input name="from" id="from" type="date" class="form-control w-auto">
</div>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4">
<label class="form-check-label" for="callsign"><?php echo lang('lotw_select_callsign'); ?></label>
<?php
$options = [];
foreach ($callsigns->result() as $call) {
$options[$call->callsign] = $call->callsign;
}
ksort($options);
array_unshift($options, 'All');
echo form_dropdown('callsign', $options, 'All');
?>
</div>
</div>
<br />
<br />
<div class="row">
<div class="col-md-3">
<label class="form-check-label" for="callsign"><?php echo lang('lotw_select_callsign'); ?></label>
<?php
$options = [];
foreach ($callsigns->result() as $call) {
$options[$call->callsign] = $call->callsign;
}
ksort($options);
array_unshift($options, 'All');
echo form_dropdown('callsign', $options, 'All');
?>
</div>
</div>
<br />
<p class="form-text text-muted"><?php echo lang('lotw_report_download_overview_helptext'); ?></p>
<p class="form-text text-muted"><?php echo lang('lotw_report_download_overview_helptext'); ?></p>
</div>
<input class="btn btn-primary" type="submit" value="<?php echo lang('lotw_btn_import_matches'); ?>" />
</form>
</div>
</div>
<input class="btn btn-primary" type="submit" value="<?php echo lang('lotw_btn_import_matches'); ?>" />
</form>
</div>
</div>
</div>
</div>