Commit 2cf245f7 authored by Kevin Robert's avatar Kevin Robert
Browse files

UNAPLLYREC-7 : Ajout de la question ouverte.

parent fc891225
package com.unantes.orientactive.converter.bean;
import com.unantes.orientactive.web.api.model.OpenQuestionItemAPI;
import org.apache.commons.lang3.StringUtils;
/**
* Représentation d'une question ouverte.
*/
public class OpenQuestion extends Item {
/**
* La question ouverte.
*/
private String question = StringUtils.EMPTY;
/**
* Constructeur vide.
*/
public OpenQuestion() {
super();
}
@Override
public OpenQuestionItemAPI convertToApiBean() {
final OpenQuestionItemAPI openQuestionItemAPI = new OpenQuestionItemAPI();
openQuestionItemAPI.setQuestion(question);
openQuestionItemAPI.setType(type);
openQuestionItemAPI.setReference(reference);
return openQuestionItemAPI;
}
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
}
......@@ -25,9 +25,9 @@
></oa-button>
<oa-button
variant="icon"
icon-name="text-box"
icon-name="form-select"
@click="addNewItem('openquestion')"
:title="$t('screen.toolbar.buttons.button')"
:title="$t('screen.toolbar.buttons.openquestion')"
></oa-button>
<!-- Dropdown-->
<!-- <div class="relative group ml-4">-->
......
......@@ -232,7 +232,8 @@
"checkbox": "Question à choix multiple",
"message": "Message",
"picture": "Image",
"button": "Bouton"
"button": "Bouton",
"openquestion": "Question ouverte"
},
"addItem": "Ajouter une section&mldr;"
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment