database.xml-in 1.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<?xml version="1.0" encoding="utf-8"?>
<form>
  <fieldset>
  	<fieldset name="basic">
			<field name="db_type" type="databaseconnection"
				id="db_type" class="inputbox"
				label="INSTL_DATABASE_TYPE_LABEL"
				supported="mysql,mysqli,sqlsrv,sqlazure"
				required="true"
				default="mysql"
				filter="string"
			/>

			<field name="db_host" type="text" id="db_host" class="inputbox"
				label="INSTL_DATABASE_HOST_LABEL"
				default="%(mysql_host)s"
				required="true"
			/>
			<field name="db_user" type="text" id="db_user" class="inputbox"
				label="INSTL_DATABASE_USER_LABEL"
        default="%(mysql_user)s"
				required="true"
			/>
			<field name="db_pass" type="password" id="db_pass" class="inputbox"
				label="INSTL_DATABASE_PASSWORD_LABEL"
        default="%(mysql_password)s"
				filter="raw"
			/>
			<field name="db_name" type="text" id="db_name" class="inputbox"
				label="INSTL_DATABASE_NAME_LABEL"
        default="%(mysql_database)s"
				required="true"
			/>
		</fieldset>

		<!-- Advanced Settings -->
		<fieldset name="advanced">
			<field name="db_old" type="radio" id="db_old" class="inputbox"
				label="INSTL_DATABASE_OLD_PROCESS_LABEL"
				default="backup"
				required="true"
			>
				<option value="backup">INSTL_DATABASE_FIELD_VALUE_BACKUP</option>
				<option value="remove">INSTL_DATABASE_FIELD_VALUE_REMOVE</option>
			</field>
			<field name="db_prefix" type="prefix" id="db_prefix" class="inputbox"
				label="INSTL_DATABASE_PREFIX_LABEL"
				required="true"
				validate="prefix"
				message="INSTL_DATABASE_PREFIX_MSG"
			/>
		</fieldset>
	</fieldset>
</form>