Cost-Benefit-Projection/site/models/forms/company.xml

545 lines
17 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_costbenefitprojection/models/rules"
addfieldpath="/administrator/components/com_costbenefitprojection/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_LABEL" description="COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COSTBENEFITPROJECTION_COMPANY_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COSTBENEFITPROJECTION_COMPANY_VERSION_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Was added due to Permissions JS needing a Title field -->
<!-- Let us know at gh-629 should this change -->
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
<field
name="title"
type="hidden"
default="costbenefitprojection company"
/>
<!-- Dynamic Fields. -->
<!-- Email Field. Type: Text. (joomla) -->
<field
type="text"
name="email"
label="COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_LABEL"
size="10"
maxlength="50"
description="COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_DESCRIPTION"
class="text_area"
required="true"
filter="STRING"
validate="email"
message="COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_HINT"
/>
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COSTBENEFITPROJECTION_COMPANY_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COSTBENEFITPROJECTION_COMPANY_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COSTBENEFITPROJECTION_COMPANY_NAME_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_NAME_HINT"
/>
<!-- User Field. Type: Memberuser. (custom) -->
<field
type="memberuser"
name="user"
label="COM_COSTBENEFITPROJECTION_COMPANY_USER_LABEL"
required="false"
default=""
hint="COM_COSTBENEFITPROJECTION_COMPANY_USER_HINT"
/>
<!-- Department Field. Type: Radio. (joomla) -->
<field
type="radio"
name="department"
label="COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT_LABEL"
class="btn-group"
default="1"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COSTBENEFITPROJECTION_COMPANY_BASIC</option>
<option value="2">
COM_COSTBENEFITPROJECTION_COMPANY_ADVANCED</option>
</field>
<!-- Country Field. Type: Countries. (custom) -->
<field
type="countries"
name="country"
label="COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="true"
/>
<!-- Service_provider Field. Type: Serviceprovider. (custom) -->
<field
type="serviceprovider"
name="service_provider"
label="COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER_LABEL"
class="list_class"
multiple="false"
default="0"
required="true"
button="true"
/>
<!-- Per Field. Type: Radio. (joomla) -->
<field
type="radio"
name="per"
label="COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_PER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COSTBENEFITPROJECTION_COMPANY_OPEN</option>
<option value="0">
COM_COSTBENEFITPROJECTION_COMPANY_LOCKED</option>
</field>
<!-- Males Field. Type: Text. (joomla) -->
<field
type="text"
name="males"
label="COM_COSTBENEFITPROJECTION_COMPANY_MALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_MALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="INT"
message="COM_COSTBENEFITPROJECTION_COMPANY_MALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_MALES_HINT"
/>
<!-- Working_days Field. Type: Integer. (joomla) -->
<field
type="integer"
name="working_days"
label="COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_LABEL"
default="225"
description="COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_DESCRIPTION"
class="text_area"
required="true"
first="200"
last="365"
step="1"
/>
<!-- Datayear Field. Type: Datayear. (custom) -->
<field
type="datayear"
name="datayear"
label="COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
/>
<!-- Sick_leave_males Field. Type: Text. (joomla) -->
<field
type="text"
name="sick_leave_males"
label="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="INT"
message="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_HINT"
/>
<!-- Sick_leave_females Field. Type: Text. (joomla) -->
<field
type="text"
name="sick_leave_females"
label="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="INT"
message="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_HINT"
/>
<!-- Total_salary Field. Type: Text. (joomla) -->
<field
type="text"
name="total_salary"
label="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="integer"
message="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_HINT"
/>
<!-- Turnover_comment Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="turnover_comment"
label="COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_LABEL"
rows="8"
cols="5"
description="COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_HINT"
/>
<!-- Causesrisks Field. Type: Causesriskscheck. (custom) -->
<field
type="causesriskscheck"
name="causesrisks"
label="COM_COSTBENEFITPROJECTION_COMPANY_CAUSESRISKS_LABEL"
class="list_class"
default=""
required="true"
/>
<!-- Percentfemale Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="percentfemale"
label="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_DESCRIPTION"
default=""
id="percentfemale"
class="percentfemales"
select="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_SELECT"
icon="list"
maximum="10">
<fields name="percentfemale_fields" label="">
<fieldset hidden="true" name="percentfemale_modal" repeat="true">
<!-- Age Field. Type: List. (joomla) -->
<field
type="list"
name="age"
label="COM_COSTBENEFITPROJECTION_COMPANY_AGE_LABEL"
class="list_class"
multiple="false"
filter="CMD"
default="">
<!-- Option Set. -->
<option value="15-19">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTEENNINETEEN</option>
<option value="20-24">
COM_COSTBENEFITPROJECTION_COMPANY_TWENTYTWENTY_FOUR</option>
<option value="25-29">
COM_COSTBENEFITPROJECTION_COMPANY_TWENTY_FIVETWENTY_NINE</option>
<option value="30-34">
COM_COSTBENEFITPROJECTION_COMPANY_THIRTYTHIRTY_FOUR</option>
<option value="35-39">
COM_COSTBENEFITPROJECTION_COMPANY_THIRTY_FIVETHIRTY_NINE</option>
<option value="40-44">
COM_COSTBENEFITPROJECTION_COMPANY_FORTYFORTY_FOUR</option>
<option value="45-49">
COM_COSTBENEFITPROJECTION_COMPANY_FORTY_FIVEFORTY_NINE</option>
<option value="50-54">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTYFIFTY_FOUR</option>
<option value="55-59">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTY_FIVEFIFTY_NINE</option>
<option value="60-64">
COM_COSTBENEFITPROJECTION_COMPANY_SIXTYSIXTY_FOUR</option>
</field>
<!-- Percent Field. Type: Text. (joomla) -->
<field
type="text"
name="percent"
label="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_LABEL"
size="10"
maxlength="50"
default=""
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="FLOAT"
message="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_HINT"
/>
</fieldset>
</fields>
</field>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="一_一"
/>
<!-- Productivity_losses Field. Type: Text. (joomla) -->
<field
type="text"
name="productivity_losses"
label="COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="CMD"
message="COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_HINT"
/>
<!-- Total_healthcare Field. Type: Text. (joomla) -->
<field
type="text"
name="total_healthcare"
label="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="integer"
message="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_HINT"
/>
<!-- Percentmale Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="percentmale"
label="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_LABEL"
description="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_DESCRIPTION"
default=""
id="percentmale"
class="percentmales"
select="COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_SELECT"
icon="list"
maximum="10">
<fields name="percentmale_fields" label="">
<fieldset hidden="true" name="percentmale_modal" repeat="true">
<!-- Age Field. Type: List. (joomla) -->
<field
type="list"
name="age"
label="COM_COSTBENEFITPROJECTION_COMPANY_AGE_LABEL"
class="list_class"
multiple="false"
filter="CMD"
default="">
<!-- Option Set. -->
<option value="15-19">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTEENNINETEEN</option>
<option value="20-24">
COM_COSTBENEFITPROJECTION_COMPANY_TWENTYTWENTY_FOUR</option>
<option value="25-29">
COM_COSTBENEFITPROJECTION_COMPANY_TWENTY_FIVETWENTY_NINE</option>
<option value="30-34">
COM_COSTBENEFITPROJECTION_COMPANY_THIRTYTHIRTY_FOUR</option>
<option value="35-39">
COM_COSTBENEFITPROJECTION_COMPANY_THIRTY_FIVETHIRTY_NINE</option>
<option value="40-44">
COM_COSTBENEFITPROJECTION_COMPANY_FORTYFORTY_FOUR</option>
<option value="45-49">
COM_COSTBENEFITPROJECTION_COMPANY_FORTY_FIVEFORTY_NINE</option>
<option value="50-54">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTYFIFTY_FOUR</option>
<option value="55-59">
COM_COSTBENEFITPROJECTION_COMPANY_FIFTY_FIVEFIFTY_NINE</option>
<option value="60-64">
COM_COSTBENEFITPROJECTION_COMPANY_SIXTYSIXTY_FOUR</option>
</field>
<!-- Percent Field. Type: Text. (joomla) -->
<field
type="text"
name="percent"
label="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_LABEL"
size="10"
maxlength="50"
default=""
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="FLOAT"
message="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_HINT"
/>
</fieldset>
</fields>
</field>
<!-- Females Field. Type: Text. (joomla) -->
<field
type="text"
name="females"
label="COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="INT"
message="COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_HINT"
/>
<!-- Age_groups_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="age_groups_note" label="COM_COSTBENEFITPROJECTION_COMPANY_AGE_GROUPS_NOTE_LABEL" description="COM_COSTBENEFITPROJECTION_COMPANY_AGE_GROUPS_NOTE_DESCRIPTION" class="alert alert-info age_groups_note" />
<!-- Medical_turnovers_males Field. Type: Text. (joomla) -->
<field
type="text"
name="medical_turnovers_males"
label="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="FLOAT"
message="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_HINT"
/>
<!-- Cause_risk_selection_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="cause_risk_selection_note" label="COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_LABEL" description="COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_DESCRIPTION" class="alert alert-info cause_risk_selection_note" />
<!-- Medical_turnovers_females Field. Type: Text. (joomla) -->
<field
type="text"
name="medical_turnovers_females"
label="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_LABEL"
size="20"
maxlength="50"
default=""
description="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="FLOAT"
message="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this company"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_costbenefitprojection"
section="company"
/>
</fieldset>
</form>