kopia lustrzana https://github.com/magicbug/Cloudlog
[User selectable columns] Added translations for the new texts added. Started a new language file for user accounts.
rodzic
5bc59883ed
commit
da279ffedf
|
@ -2,6 +2,15 @@
|
|||
|
||||
class User extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Load language files
|
||||
$this->lang->load(array(
|
||||
'account',
|
||||
));
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$lang['account_logbook_fields'] = 'Logbook fields';
|
||||
$lang['account_column1_text'] = 'Choose column 1';
|
||||
$lang['account_column2_text'] = 'Choose column 2';
|
||||
$lang['account_column3_text'] = 'Choose column 3';
|
||||
$lang['account_column4_text'] = 'Choose column 4';
|
|
@ -138,7 +138,7 @@
|
|||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column1">Column 1.</label>
|
||||
<label for="column1"><?php echo $this->lang->line('account_column1_text'); ?></label>
|
||||
<select class="custom-select" id="column1" name="user_column1">
|
||||
<option value="Band"> <?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode" selected ='selected'> <?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -152,7 +152,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column2">Column 2.</label>
|
||||
<label for="column2"><?php echo $this->lang->line('account_column2_text'); ?></label>
|
||||
<select class="custom-select" id="column2" name="user_column2">
|
||||
<option value="Band"> <?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode"> <?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -166,7 +166,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column3">Column 3.</label>
|
||||
<label for="column3"><?php echo $this->lang->line('account_column3_text'); ?></label>
|
||||
<select class="custom-select" id="column3" name="user_column3">
|
||||
<option value="Band"> <?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode"> <?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -180,7 +180,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column4">Column 4.</label>
|
||||
<label for="column4"><?php echo $this->lang->line('account_column4_text'); ?></label>
|
||||
<select class="custom-select" id="column4" name="user_column4">
|
||||
<option value="Band" selected ='selected'> <?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode"> <?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
|
|
@ -319,12 +319,12 @@
|
|||
<div class="col-md">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Logbook fields
|
||||
<?php echo $this->lang->line('account_logbook_fields'); ?>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column1">Choose column 1</label>
|
||||
<label for="column1"><?php echo $this->lang->line('account_column1_text'); ?></label>
|
||||
<select class="custom-select" id="column1" name="user_column1">
|
||||
<option value="Band" <?php if ($user_column1 == "Band") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode" <?php if ($user_column1 == "Mode") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -338,7 +338,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column2">Choose column 2</label>
|
||||
<label for="column2"><?php echo $this->lang->line('account_column2_text'); ?></label>
|
||||
<select class="custom-select" id="column2" name="user_column2">
|
||||
<option value="Band" <?php if ($user_column2 == "Band") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode" <?php if ($user_column2 == "Mode") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -352,7 +352,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column3">Choose column 3</label>
|
||||
<label for="column3"><?php echo $this->lang->line('account_column3_text'); ?></label>
|
||||
<select class="custom-select" id="column3" name="user_column3">
|
||||
<option value="Band" <?php if ($user_column3 == "Band") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode" <?php if ($user_column3 == "Mode") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
@ -366,7 +366,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-3">
|
||||
<label for="column4">Choose column 4</label>
|
||||
<label for="column4"><?php echo $this->lang->line('account_column4_text'); ?></label>
|
||||
<select class="custom-select" id="column4" name="user_column4">
|
||||
<option value="Band" <?php if ($user_column4 == "Band") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_band'); ?></option>
|
||||
<option value="Mode" <?php if ($user_column4 == "Mode") { echo " selected =\"selected\""; } ?>><?php echo $this->lang->line('gen_hamradio_mode'); ?></option>
|
||||
|
|
Ładowanie…
Reference in New Issue