aspect ratio picker
This commit is contained in:
parent
603354cc4b
commit
236b9324f5
@ -308,6 +308,7 @@
|
||||
"enum_content_type_external_storage_object_label": "Specify an existing directory relative to the following path",
|
||||
"enum_content_type_external_storage_flashdrive_label": "Path relative to a removeable device",
|
||||
"enum_content_type_composition": "Composition",
|
||||
"enum_content_type_composition_object_label": "Screen aspect ratio",
|
||||
"enum_content_type_text": "Text",
|
||||
"enum_content_type_text_object_label": "Displayed text",
|
||||
"enum_content_type_url": "URL",
|
||||
|
||||
@ -309,6 +309,7 @@
|
||||
"enum_content_type_external_storage_object_label": "Especifique un directorio existente relativo a la siguiente ruta",
|
||||
"enum_content_type_external_storage_flashdrive_label": "Ruta relativa a un dispositivo extraíble",
|
||||
"enum_content_type_composition": "Composición",
|
||||
"enum_content_type_composition_object_label": "Relación de aspecto de la pantalla",
|
||||
"enum_content_type_text": "Texto",
|
||||
"enum_content_type_text_object_label": "Texto mostrado",
|
||||
"enum_content_type_url": "URL",
|
||||
|
||||
@ -310,6 +310,7 @@
|
||||
"enum_content_type_external_storage_object_label": "Spécifiez un répertoire existant par rapport au chemin suivant",
|
||||
"enum_content_type_external_storage_flashdrive_label": "Chemin relatif à un périphérique amovible",
|
||||
"enum_content_type_composition": "Composition",
|
||||
"enum_content_type_composition_object_label": "Rapport hauteur/largeur de l'écran",
|
||||
"enum_content_type_text": "Texte",
|
||||
"enum_content_type_text_object_label": "Texte affiché",
|
||||
"enum_content_type_url": "URL",
|
||||
|
||||
@ -309,6 +309,7 @@
|
||||
"enum_content_type_external_storage_object_label": "Specificare una directory esistente relativi al seguente percorso",
|
||||
"enum_content_type_external_storage_flashdrive_label": "Percorso relativo ad un dispositivo rimovibile",
|
||||
"enum_content_type_composition": "Composizione",
|
||||
"enum_content_type_composition_object_label": "Rapporto di aspetto dello schermo",
|
||||
"enum_content_type_text": "Testo",
|
||||
"enum_content_type_text_object_label": "Testo visualizzato",
|
||||
"enum_content_type_url": "URL",
|
||||
|
||||
@ -11,8 +11,9 @@ class ContentInputType(Enum):
|
||||
|
||||
UPLOAD = 'upload'
|
||||
TEXT = 'text'
|
||||
STORAGE = 'storage'
|
||||
HIDDEN = 'hidden'
|
||||
STORAGE = 'storage'
|
||||
COMPOSITION = 'composition'
|
||||
|
||||
@staticmethod
|
||||
def is_editable(value: Enum) -> bool:
|
||||
@ -22,6 +23,8 @@ class ContentInputType(Enum):
|
||||
return True
|
||||
elif value == ContentInputType.STORAGE:
|
||||
return True
|
||||
elif value == ContentInputType.COMPOSITION:
|
||||
return True
|
||||
|
||||
|
||||
class ContentType(Enum):
|
||||
@ -66,7 +69,7 @@ class ContentType(Enum):
|
||||
elif value == ContentType.EXTERNAL_STORAGE:
|
||||
return ContentInputType.STORAGE
|
||||
elif value == ContentType.COMPOSITION:
|
||||
return ContentInputType.HIDDEN
|
||||
return ContentInputType.COMPOSITION
|
||||
elif value == ContentType.TEXT:
|
||||
return ContentInputType.TEXT
|
||||
|
||||
|
||||
@ -52,6 +52,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="from-group-condition hidden">
|
||||
<div class="form-group">
|
||||
<label for="" class="object-label"></label>
|
||||
<div class="widget">
|
||||
<select name="object" data-input-type="composition" class="content-object-input size-m">
|
||||
<option value="16/9">16/9</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="from-group-condition hidden">
|
||||
<div class="form-group">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user