mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Creation of station profiles
Station profiles allows you to define a profile for where you are operating from including your operating callsign, gridsquare, dxcc, state, cq, itu and sota. This is then made available via the "stations" tab when adding a QSO as a drop down.
This commit is contained in:
@@ -14,12 +14,14 @@ class QSO extends CI_Controller {
|
||||
{
|
||||
|
||||
$this->load->model('cat');
|
||||
$this->load->model('stations');
|
||||
$this->load->model('logbook_model');
|
||||
$this->load->model('user_model');
|
||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
|
||||
|
||||
$data['notice'] = false;
|
||||
$data['stations'] = $this->stations->all();
|
||||
$data['radios'] = $this->cat->radios();
|
||||
$data['query'] = $this->logbook_model->last_custom('16');
|
||||
|
||||
@@ -57,7 +59,8 @@ class QSO extends CI_Controller {
|
||||
'mode' => $this->input->post('mode'),
|
||||
'sat_name' => $this->input->post('sat_name'),
|
||||
'sat_mode' => $this->input->post('sat_mode'),
|
||||
'radio' => $this->input->post('radio')
|
||||
'radio' => $this->input->post('radio'),
|
||||
'station_profile_id' => $this->input->post('station_profile')
|
||||
);
|
||||
// ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user