Skip to content

EspoCRM – Open Source CRM Application

Use native selection in install

Yurii9eaa51981989
diff --git a/install/core/tpl/main.tpl b/install/core/tpl/main.tpl
index 7afea4f0d7..544c998de1 100644
--- a/install/core/tpl/main.tpl
+++ b/install/core/tpl/main.tpl
@@ -17,7 +17,7 @@
<div class="cell cell-language col-md-4">
<label class="field-label-language control-label">{$langs['fields']['Choose your language']}</label>
<div class="field field-language">
- <select name="user-lang" class="form-control">
+ <select name="user-lang" class="form-control native-select">
{foreach from=$languageList item=lbl key=val}
{if $val == $fields['user-lang'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
@@ -32,7 +32,7 @@
<div class="cell cell-theme col-md-4">
<label class="field-label-theme control-label">{$themeLabel}</label>
<div class="field field-language">
- <select name="theme" class="form-control">
+ <select name="theme" class="form-control native-select">
{foreach from=$themes item=lbl key=val}
{if $val == $fields['theme'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
@@ -44,7 +44,7 @@
</div>
</div>
- <div class="cell cell-website col-md-4" style="padding-top: 24px; text-align: right;">
+ <div class="cell cell-website col-md-4" style="padding-top: 32px; text-align: right;">
<a
target="_blank"
href="https://www.espocrm.com/documentation/administration/installation/"
diff --git a/install/core/tpl/step2.tpl b/install/core/tpl/step2.tpl
index b89fb8f275..2f105cb110 100644
--- a/install/core/tpl/step2.tpl
+++ b/install/core/tpl/step2.tpl
@@ -11,7 +11,7 @@
<div class="field field-db-platform">
<select
name="db-platform"
- class="main-element form-control"
+ class="main-element native-select form-control"
>
{foreach from=$platforms item=lbl key=val}
{if $val == $fields['db-platform'].value}
diff --git a/install/core/tpl/step4.tpl b/install/core/tpl/step4.tpl
index 90ebf1c983..9b0be8890c 100644
--- a/install/core/tpl/step4.tpl
+++ b/install/core/tpl/step4.tpl
@@ -9,7 +9,7 @@
{$langs['fields']['Date Format']}
</label>
<div class="field field-dateFormat">
- <select name="dateFormat" class="form-control main-element">
+ <select name="dateFormat" class="form-control native-select main-element">
{foreach from=$fields['dateFormat'].options item=val}
{if $val == $fields['dateFormat'].value}
<option selected="selected" value="{$val}">{$val}</option>
@@ -26,7 +26,7 @@
{$langs['fields']['Time Format']}
</label>
<div class="field field-timeFormat">
- <select name="timeFormat" class="form-control main-element">
+ <select name="timeFormat" class="form-control native-select main-element">
{foreach from=$fields['timeFormat'].options item=val}
{if $val == $fields['timeFormat'].value}
<option selected="selected" value="{$val}">{$val}</option>
@@ -45,7 +45,7 @@
{$langs['fields']['Time Zone']}
</label>
<div class="field field-timeZone">
- <select name="timeZone" class="form-control main-element">
+ <select name="timeZone" class="form-control native-select main-element">
{foreach from=$defaultSettings['timeZone'].options item=lbl key=val}
{if $val == $fields['timeZone'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
@@ -62,7 +62,7 @@
{$langs['fields']['First Day of Week']}
</label>
<div class="field field-weekStart">
- <select name="weekStart" class="form-control main-element">
+ <select name="weekStart" class="form-control native-select main-element">
{foreach from=$defaultSettings['weekStart'].options item=lbl key=val}
{if $val == $fields['weekStart'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
@@ -81,7 +81,7 @@
{$langs['fields']['Default Currency']}
</label>
<div class="field field-defaultCurrency">
- <select name="defaultCurrency" class="form-control main-element">
+ <select name="defaultCurrency" class="form-control native-select main-element">
{foreach from=$defaultSettings['defaultCurrency'].options item=lbl key=val}
{if $val == $fields['defaultCurrency'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
@@ -119,7 +119,7 @@
{$langs['fields']['Language']}
</label>
<div class="field field-language">
- <select name="language" class="form-control main-element">
+ <select name="language" class="form-control native-select main-element">
{foreach from=$defaultSettings['language'].options item=lbl key=val}
{if $val == $fields['language'].value}
<option selected="selected" value="{$val}">{$lbl}</option>
diff --git a/install/core/tpl/step5.tpl b/install/core/tpl/step5.tpl
index 0b68a9647e..ea52994b7f 100644
--- a/install/core/tpl/step5.tpl
+++ b/install/core/tpl/step5.tpl
@@ -78,7 +78,7 @@
{$langs['fields']['smtpSecurity']}
</label>
<div class="field field-smtpSecurity">
- <select name="smtpSecurity" class="form-control main-element">
+ <select name="smtpSecurity" class="form-control native-select main-element">
{foreach from=$defaultSettings['smtpSecurity'].options item=lbl key=val}
{if $val == $fields['smtpSecurity'].value}
<option selected="selected" value="{$val}">{$lbl}</option>