one picto delivery option added

parent be6ea069
......@@ -162,6 +162,11 @@ module.exports = {
* picto_background: [#0000ff] Can be any valid HEX color. May be overriden by the
* category color
* tape_background: [#ff0000] Can be any valid HEX color
* one_picto_delivery: [true]/false
* delivery: 0
* // 0 -> delete strip after delivery
// 1 -> keep strip and on delivery
// 2 --> keep strip and several deliveries
*
* @TODO develop tts_engine, tts_voice and tts_options functionality
* @TODO discuss about picto_select
......@@ -193,6 +198,7 @@ module.exports = {
size: 'large',
picto_background: '#0000ff',
tape_background: '#00ffff',
one_picto_delivery: false,
delivery: 0
// 0 -> delete strip after delivery
// 1 -> keep strip and on delivery
......@@ -238,6 +244,9 @@ module.exports = {
delete validAttributes.delivery;
}
}
if (typeof validAttributes.one_picto_delivery !== 'boolean') {
delete validAttributes.one_picto_delivery;
}
if (!((/^(small|normal|large)$/).test(validAttributes.legend_size))) {
delete validAttributes.legend_size;
}
......
......@@ -299,6 +299,7 @@
"office_not_updated": "Office not updated",
"office_updated": "Office updated",
"offices": "Offices",
"one_picto_delivery": "Perform delivery on one pictogram selection",
"options": "Options",
"or": "or",
"own_instructions": "Own method templates",
......
......@@ -297,6 +297,7 @@
"office_not_updated": "El gabinete no se ha podido actualizar",
"office_updated": "Gabinete actualizado",
"offices": "Gabinetes",
"one_picto_delivery": "Realizar entrega al seleccionar un pictograma",
"options": "Opciones",
"or": "o",
"own_instructions": "Plantillas de métodos propias",
......
......@@ -319,6 +319,17 @@
{{ 'keep_strip_and_deliveries' | translate }}
</span>
</div>
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox"
id="onePictoDelivery"
ng-model="studentData.attributes.one_picto_delivery"
ng-change="update_attributes()">
</span>
<span class="form-control" for="onePictoDelivery">
{{ 'one_picto_delivery' | translate }}
</span>
</div>
</fieldset>
<div class="alert alert-warning" role="alert">
<p>
......
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 sign in to comment