Histórico da Página
Índice
...
Index
Índice | ||||||
---|---|---|---|---|---|---|
|
Personalización de Temas de Formularios
En el editor de formularios, disponible en el editor de procesos, es posible seleccionar un template para el formulario que se está creando. Este estilo se puede personalizar por cualquier usuario que posee permiso al panel de control.
Siga, navegando en las pestañas a continuación, el paso a paso para la creación de un nuevo tema personalizad en el Fluig.
|
Form theme customization
In the form editor, available in the process editor, you can select a template for the form that is being created. This style can be customized by any user who has permission to access the control panel.
Now browse through the tabs below to follow the step-by-step instructions to create a new custom theme in TOTVS Fluig Platform.
Deck of Cards | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
Recomendaciones
Al hacer el upload de temas es importante seguir las siguientes reglas:
- El tema debe poseer siempre una regla por línea.
- Todas las propiedades de cada clase tienen que estar en la misma línea, no se debe saltar la línea, para una mejor interpretación del editor.
- El archivo .css debe poseer todas las líneas con selectores, no se debe poseer líneas en blanco.
- Todas las clases, elementos e identificadores se pueden modificar, siempre que se respeten las reglas anteriores.
Es posible obtener un ejemplo de una hoja de estilos accediendo a la página de Temas, en el Panel de Control.
...
|
Recommendations
When uploading themes, it is important to follow these rules:
- The theme must always have a rule per line.
- All the properties of each class have to be on the same line; for better interpretation of the editor, lines should not be skipped.
- The .CSS file should have all lines with selectors and it cannot have blank lines.
- All classes, elements and identifiers can be modified, provided that the rules mentioned above are followed.
It is possible to see an example of a style sheet by using the Themes page in the control panel.
Below are each of the classes and structure of a form generated from the editor.
Class | Description |
---|---|
. paragraph-is-required | Mandatory message |
.form-field | DIV that fits all form fields |
.form-input | Parent page DIV only for the field (does not fit the |
label) |
.is-required |
Class of the asterisk on mandatory fields. | |
.label-field-properties | Label |
of the fields |
. |
title-form-application |
Form title class |
In some cases, it is necessary to use the !important, as these are classes that are already used by TOTVS Fluig Platform and can be subscribedEm alguns casos é necessário utilizar do !important, pois são classes que já são utilizadas pelo fluig e podem ser sobescritas.
HTML
El HTML generado automáticamente por el editor de formularios con apenas un campo, queda con la siguiente estructuraThe HTML automatically generated by the form editor with only one field gets the following structure:
Bloco de código | ||||||
---|---|---|---|---|---|---|
| ||||||
<form name="formulario"> <h1 class="title-form-application">Formulario Exemplo</h1> <div class="form-field"> <label class="label-field-properties">Campo Nome</label> <span class="is-required"> <b>*</b> </span> <div class="form-input"> <input type="text" name="nome" /> </div> </div> </form> |
Ejemplo
A seguir crearemos un tema con:
- Campos del tipo input con fondo negro y color blanco.
- Labels en negrito y color bordó.
- Título del formulario con un margen, color y borde inferior.
- Cada bloque de campo tendrá margen inferior, con espaciamiento interno y un borde rojo.
- Color rojo y tamaño de la fuente para el asterisco de obligatorio.
Example
Now, we'll create a theme with:
- Input type fields with black background and white color.
- Labels in bold and maroon color.
- Form title with a margin, color and bottom edge.
- Each block of field will have a bottom margin, with internal spacing and a red border.
- Red color and font size for the mandatory asterisk.
For this result, the following CSS must be created and registered on the themesPara este resultado, el siguiente CSS se debe crear y registrar en los temas:
Bloco de código language css title exemplo.css linenumbers true input { padding:0 15px !important; background-color:#000; color:#fff; } label { font-weight:bold; color:#8B0000; } .title-form-application { margin:20px; padding: 0 0px 10px; font-size: 1.5em; color: #006699; border-bottom: 1px dashed #ccc; } .form-field { margin-bottom: 15px; border:1px solid red; padding:10px; } .is-required { color:red; font-size:2em; }