Skip to content

Commit 00b7b89

Browse files
committed
GENERICATT-138 : add entrytype radio button scale
1 parent 7f545a6 commit 00b7b89

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/java/fr/paris/lutece/plugins/genericattributes/service/entrytype/AbstractEntryTypeRadioButton.java

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public String getRequestData( Entry entry, HttpServletRequest request, Locale lo
7171
String strFieldInLine = request.getParameter( PARAMETER_FIELD_IN_LINE );
7272
String strCSSClass = request.getParameter( PARAMETER_CSS_CLASS );
7373
String strOnlyDisplayInBack = request.getParameter( PARAMETER_ONLY_DISPLAY_IN_BACK );
74+
String strFieldAlignment = request.getParameter( PARAMETER_ALIGNMENT_TEXT );
75+
String strFieldTextLeft = request.getParameter( PARAMETER_TEXT_LEFT );
76+
String strFieldTextRight = request.getParameter( PARAMETER_TEXT_RIGHT );
7477

7578
int nFieldInLine = -1;
7679

@@ -104,6 +107,10 @@ public String getRequestData( Entry entry, HttpServletRequest request, Locale lo
104107

105108
entry.setMandatory( strMandatory != null );
106109
entry.setOnlyDisplayInBack( strOnlyDisplayInBack != null );
110+
111+
GenericAttributesUtils.createOrUpdateField( entry, FIELD_ALIGNMENT, null, String.valueOf( strFieldAlignment != null ) );
112+
GenericAttributesUtils.createOrUpdateField( entry, FIELD_TEXT_LEFT, null, strFieldTextLeft );
113+
GenericAttributesUtils.createOrUpdateField( entry, FIELD_TEXT_RIGHT, null, strFieldTextRight );
107114

108115
try
109116
{

src/java/fr/paris/lutece/plugins/genericattributes/service/entrytype/IEntryTypeService.java

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ public interface IEntryTypeService
9292
String PARAMETER_USE_REF_LIST = "use_ref_list";
9393
String PARAMETER_REF_LIST_SELECT = "select_ref_list";
9494
String PARAMETER_PLACEHOLDER = "placeholder";
95+
String PARAMETER_ALIGNMENT_TEXT = "alignment_text";
96+
String PARAMETER_TEXT_LEFT = "left_text";
97+
String PARAMETER_TEXT_RIGHT = "right_text";
9598

9699
// Fields codes
97100
String FIELD_DATE_VALUE = "default_date_value";
@@ -133,6 +136,9 @@ public interface IEntryTypeService
133136
String FIELD_USE_REF_LIST = "use_ref_list";
134137
String FIELD_ANONYMIZABLE = "anonymizable";
135138
String FIELD_PLACEHOLDER = "placeholder";
139+
String FIELD_ALIGNMENT = "alignment_text";
140+
String FIELD_TEXT_LEFT = "left_text";
141+
String FIELD_TEXT_RIGHT = "right_text";
136142

137143
// attribute
138144
String ATTRIBUTE_RESPONSE_ITERATION_NUMBER = "response_iteration_number";

0 commit comments

Comments
 (0)