rutile
Version:
Factory automation for Mobile Enterprise.
75 lines (64 loc) • 3.8 kB
text/xml
<Alloy>
<View id="RootView">
<ScrollView id="SearchFormScrollView">
{{#PrimaryKeySearches}}{{#search_types}}
<!-- {{segment}}/{{entity}}.{{fieldName}}({{search_type}}) -->
<Require src="Component/SearchForm/{{segment}}/{{entity}}/Selectby{{entity}}{{#Uc_first}}{{fieldName}}{{/Uc_first}}{{#Uc_first}}{{search_type}}{{/Uc_first}}" id="{{segment}}_{{entity}}_{{fieldName}}_{{search_type}}_SearchForm"/>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
{{/search_types}}{{/PrimaryKeySearches}}
{{#Fields}}{{#search_types}}
<!-- {{segment}}/{{entity}}.{{fieldName}}({{search_type}}) -->
<Require src="Component/SearchForm/{{segment}}/{{entity}}/Selectby{{entity}}{{#Uc_first}}{{fieldName}}{{/Uc_first}}{{#Uc_first}}{{search_type}}{{/Uc_first}}" id="{{segment}}_{{entity}}_{{fieldName}}_{{search_type}}_SearchForm"/>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
{{/search_types}}{{/Fields}}
{{#Fields_joined_grouped}}
<!-- form set for joined {{segment_joined}}/{{entity_joined}} -->
<View class="SetHeader" onClick="toggle_Set_{{entity_joined}}">
<Require src="Framework/FormSetExpandButton" id="btn_Set_{{entity_joined}}"/>
<Label class="SetTitle" text="Titanium.Locale.getString('{{segment_joined}}_{{entity_joined}}')"/>
</View>
<View class="SetContainer" id="Set_{{entity_joined}}">
{{#Fields}}{{#search_types_joined}}
<!-- {{segment_joined}}/{{entity_joined}}.{{fieldName_joined}}({{search_type_joined}}) -->
<Require src="Component/SearchForm/{{segment}}/{{entity}}/Selectby{{entity_joined}}{{#Uc_first}}{{fieldName_joined}}{{/Uc_first}}{{#Uc_first}}{{search_type_joined}}{{/Uc_first}}" id="{{segment_joined}}_{{entity_joined}}_{{fieldName_joined}}_{{search_type_joined}}_SearchForm"/>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
{{/search_types_joined}}{{/Fields}}
</View>
{{/Fields_joined_grouped}}
{{#Fields_collected_grouped}}
<!-- form set for collected {{segment_collected}}/{{entity_collected}} -->
<View class="SetHeader" onClick="toggle_Set_{{entity_collected}}">
<Require src="Framework/FormSetExpandButton" id="btn_Set_{{entity_collected}}"/>
<Label class="SetTitle" text="Titanium.Locale.getString('{{segment_collected}}_{{entity_collected}}')"/>
</View>
<View class="SetContainer" id="Set_{{entity_collected}}">
{{#Fields}}{{#search_types_collected}}
<!-- {{segment_collected}}/{{entity_collected}}.{{fieldName_collected}}({{search_type_collected}}) -->
<Require src="Component/SearchForm/{{segment}}/{{entity}}/Selectby{{entity_collected}}{{#Uc_first}}{{fieldName_collected}}{{/Uc_first}}{{#Uc_first}}{{search_type_collected}}{{/Uc_first}}" id="{{segment_collected}}_{{entity_collected}}_{{fieldName_collected}}_{{search_type_collected}}_SearchForm"/>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
{{/search_types_collected}}{{/Fields}}
</View>
{{/Fields_collected_grouped}}
{{#hasOrderbys}}
<!-- orderby -->
<Require src="Component/SearchForm/{{segment}}/{{entity}}/Orderbys" id="SearchForm_Orderbys"/>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
{{/hasOrderbys}}
<!-- logic of search constraint -->
<View class="SearchElementConfigPanel">
<Label class="Title" text="Ti.Locale.getString('FrameworkSearchFormElementSearchLogic')"/>
<Require src="Framework/SearchFormLogic" id="SearchForm_LogicSelector"/>
</View>
<View height="10dp"></View>
<Require src="Framework/FormElementSeparator"/>
<!-- do search -->
<Require src="Framework/SearchFormSubmit" id="SearchForm_Submit"/>
<View height="44dp"></View>
</ScrollView>
</View>
</Alloy>