Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SIGPUBLIC
unantes-orientation-active
Commits
2cf245f7
Commit
2cf245f7
authored
Sep 27, 2021
by
Kevin Robert
Browse files
UNAPLLYREC-7 : Ajout de la question ouverte.
parent
fc891225
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/unantes/orientactive/converter/bean/OpenQuestion.java
0 → 100644
View file @
2cf245f7
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
;
}
}
src/main/webapp/app/components/screen-toolbar/screen-toolbar.vue
View file @
2cf245f7
...
...
@@ -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.
butt
on')"
:title=
"$t('screen.toolbar.buttons.
openquesti
on')"
></oa-button>
<!-- Dropdown-->
<!--
<div
class=
"relative group ml-4"
>
-->
...
...
src/main/webapp/i18n/fr/screen.json
View file @
2cf245f7
...
...
@@ -232,7 +232,8 @@
"checkbox"
:
"Question à choix multiple"
,
"message"
:
"Message"
,
"picture"
:
"Image"
,
"button"
:
"Bouton"
"button"
:
"Bouton"
,
"openquestion"
:
"Question ouverte"
},
"addItem"
:
"Ajouter une section…"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment