|
13 | 13 | <h:form id="question_edit" styleClass="survey-question bg-body-secondary mb-3 d-flex flex-nowrap" rendered="#{!question.deleted}"> |
14 | 14 | <div class="d-flex flex-column justify-content-center bg-primary" faces:rendered="#{not empty questionStatus}"> |
15 | 15 | <p:commandButton alt="#{msg['move_up']}" styleClass="ui-button-flat text-body mx-0" icon="fas fa-angle-up" rendered="#{!questionStatus.first}" |
16 | | - actionListener="#{surveyPageEditBean.onMoveQuestion(page, question, -1)}" update="questions" process="@this"/> |
| 16 | + actionListener="#{surveyPageEditBean.onMoveQuestion(page, question, -1)}" update="questions" process="@this" immediate="true"/> |
17 | 17 | <p:commandButton alt="#{msg['move_down']}" styleClass="ui-button-flat text-body mx-0" icon="fas fa-angle-down" rendered="#{!questionStatus.last}" |
18 | | - action="#{surveyPageEditBean.onMoveQuestion(page, question, 1)}" update="questions" process="@this"/> |
| 18 | + actionListener="#{surveyPageEditBean.onMoveQuestion(page, question, 1)}" update="questions" process="@this" immediate="true"/> |
19 | 19 | </div> |
20 | 20 |
|
21 | 21 | <div class="flex-grow-1 p-3"> |
|
28 | 28 | <p:message for="@previous"/> |
29 | 29 | </div> |
30 | 30 |
|
31 | | - <div class="field" faces:rendered="#{question.type eq 'INPUT_TEXT' or question.type eq 'INPUT_TEXTAREA'}"> |
32 | | - <p:outputLabel for="@next" value="#{msg['survey.mod_placeholder_text']}:" styleClass="fw-bold"/> |
33 | | - <p:inputTextarea value="#{question.placeholder}" rows="1"> |
34 | | - <p:ajax event="change" listener="#{surveyPageEditBean.onQuestionChange(question)}"/> |
35 | | - </p:inputTextarea> |
36 | | - <p:message for="@previous"/> |
37 | | - </div> |
38 | | - |
39 | 31 | <div class="field"> |
40 | 32 | <p:outputLabel for="@next" value="#{msg['survey.mod_description_text']}:" styleClass="fw-bold"/> |
41 | 33 | <p:textEditor value="#{question.description}" allowBlocks="false"> |
42 | 34 | <p:ajax event="change" listener="#{surveyPageEditBean.onQuestionChange(question)}"/> |
43 | 35 | <f:facet name="toolbar"> |
44 | | - <span class="ql-formats"> |
45 | | - <button class="ql-bold"></button> |
46 | | - <button class="ql-italic"></button> |
47 | | - <button class="ql-underline"></button> |
48 | | - <button class="ql-strike"></button> |
49 | | - </span> |
50 | 36 | <span class="ql-formats"> |
51 | | - <button class="ql-link" /> |
52 | | - <button class="ql-image" /> |
53 | | - <button class="ql-video" /> |
54 | | - <button class="ql-formula" /> |
55 | | - </span> |
| 37 | + <button class="ql-bold"></button> |
| 38 | + <button class="ql-italic"></button> |
| 39 | + <button class="ql-underline"></button> |
| 40 | + <button class="ql-strike"></button> |
| 41 | + </span> |
| 42 | + <span class="ql-formats"> |
| 43 | + <button class="ql-link" /> |
| 44 | + <button class="ql-image" /> |
| 45 | + <button class="ql-video" /> |
| 46 | + <button class="ql-formula" /> |
| 47 | + </span> |
56 | 48 | </f:facet> |
57 | 49 | </p:textEditor> |
58 | 50 | <p:message for="@previous"/> |
59 | 51 | </div> |
60 | 52 |
|
| 53 | + <div class="field" faces:rendered="#{question.type eq 'INPUT_TEXT' or question.type eq 'INPUT_TEXTAREA'}"> |
| 54 | + <p:outputLabel for="@next" value="#{msg['survey.mod_placeholder_text']}:" styleClass="fw-bold"/> |
| 55 | + <p:inputTextarea value="#{question.placeholder}" rows="1"> |
| 56 | + <p:ajax event="change" listener="#{surveyPageEditBean.onQuestionChange(question)}"/> |
| 57 | + </p:inputTextarea> |
| 58 | + <p:message for="@previous"/> |
| 59 | + </div> |
| 60 | + |
61 | 61 | <div faces:id="type_row" class="row field align-items-end" faces:rendered="#{question.type ne 'FULLWIDTH_HEADER'}"> |
62 | 62 | <p:outputPanel styleClass="col d-flex flex-column"> |
63 | 63 | <p:outputLabel for="@next" value="#{msg['survey.mod_question_type']}:" styleClass="fw-bold"/> |
|
115 | 115 |
|
116 | 116 | <p:tooltip for="@next" value="#{msg['survey.mod_delete_option']}"/> |
117 | 117 | <p:commandButton styleClass="rounded-button ui-button-flat ui-button-secondary align-self-center" icon="fas fa-minus" |
118 | | - action="#{surveyPageEditBean.onQuestionOptionDelete(question, answer)}" update="@form:options" process="@this"/> |
| 118 | + actionListener="#{surveyPageEditBean.onQuestionOptionDelete(question, answer)}" update="@form:options" process="@this"/> |
119 | 119 | </h:panelGroup> |
120 | 120 | </ui:repeat> |
121 | 121 |
|
122 | 122 | <p:tooltip for="@next" value="#{msg['survey.mod_add_answer']}"/> |
123 | 123 | <p:commandButton styleClass="rounded-button ui-button-flat ui-button-secondary align-self-center" icon="fas fa-plus" |
124 | | - action="#{surveyPageEditBean.onQuestionOptionAdd(question)}" update="@form:options" process="@this"/> |
| 124 | + actionListener="#{surveyPageEditBean.onQuestionOptionAdd(question)}" update="@form:options" process="@this"/> |
125 | 125 | </div> |
126 | 126 | </ui:fragment> |
127 | 127 | </p:outputPanel> |
|
0 commit comments