refactor: streamline form fields and update ComboBox options in cadastro_jogos desktop XML
davinTI/jogos_matheus/pipeline/head There was a failure building this commit

This commit is contained in:
Matheus
2026-09-24 16:15:43 -03:00
parent 203a323653
commit 8256d40b41
+12 -23
View File
@@ -140,7 +140,6 @@
}
});
}};
function showTableReviews(gameId) {
if(!gameId) {
var lib_msg = libService.loadScript("messages");
@@ -207,7 +206,7 @@
}
var value = engine.getField("dcfNota").getValue();
if(value === null || value === ""){
return true; /* obrigatoriedade tratada pelo required */
return true;
}
return value >= 0 && value <= 10;
};
@@ -557,27 +556,17 @@
<VerticalLayout width="100%" height="100%" align="MIDDLE_CENTER" spacing="true">
<Panel id="pnlDadosJogo" width="100%" expandRatio="0.7" height="100%" margin="true" >
<VerticalLayout caption="Dados do Jogo" width="100%" spacing="true">
<TextField id="txfCodigo" caption="Código" type="number"
width="100%" enabled="false" visible="false" />
<NumericField id="txfNotaMedia" caption="Nota média"
type="number"
width="100%" enabled="false" visible="false" />
<TextField id="txfTitulo" caption="Título" type="string"
width="100%"
required="true" minLength="3" maxLength="100" />
<ComboBox id="cbbGenero" allowNullSelection="true"
caption="Gênero" description="ComboBox Exemplo"
updatable="false" required="true"
visible="true" type="string" width="100%">
<entry value="Ação" key="Ação" />
<entry value="Aventura" key="Aventura" />
<entry value="Terror" key="Terror" />
<entry value="Sobrevivência" key="Sobrevivência" />
<entry value="Infântil" key="Infântil" />
<entry value="Esportes" key="Esportes" />
<entry value="Corrida" key="Corrida" />
<entry value="RPG" key="RPG" />
<entry value="Outro" key="Outro" />
<TextField id="txfCodigo" caption="Código" type="number" width="100%" enabled="false" visible="false"/>
<NumericField id="txfNotaMedia" caption="Nota Média" type="number" width="100%" enabled="false" visible="false"/>
<TextField id="txfTitulo" caption="Título" type="string" width="100%" required="true" minLength="3"/>
<ComboBox id="cbbGenero" type="string" caption="Gênero" width="100%" required="true">
<entry key="ACAO" value="Ação"/>
<entry key="AVENTURA" value="Aventura"/>
<entry key="RPG" value="RPG"/>
<entry key="ESPORTES" value="Esportes"/>
<entry key="ESTRATEGIA" value="Estratégia"/>
<entry key="CORRIDA" value="Corrida"/>
<entry key="Sobrevivencia" value="Sobrevivência"/>
</ComboBox>
<TextField id="txfAnoLancamento" caption="Ano de Lançamento" type="number" width="100%" required="true">
<validation>