mirror of
https://github.com/YunoHost-Apps/chatonsinfos_ynh.git
synced 2024-09-03 18:15:58 +02:00
[fix] Config panel display
This commit is contained in:
parent
631a207438
commit
574d5e458b
3 changed files with 16 additions and 25 deletions
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
[main]
|
[main]
|
||||||
|
name.en = "Organization"
|
||||||
|
name.fr = "Organisation"
|
||||||
bind = ":{{ install_dir }}/public/organization.properties"
|
bind = ":{{ install_dir }}/public/organization.properties"
|
||||||
|
|
||||||
services = []
|
services = []
|
||||||
|
@ -30,7 +32,7 @@ services = []
|
||||||
|
|
||||||
[main.organization.status-level]
|
[main.organization.status-level]
|
||||||
ask.fr = "Statut"
|
ask.fr = "Statut"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.ACTIVE = "Actif"
|
choices.ACTIVE = "Actif"
|
||||||
choices.IDLE = "En pause"
|
choices.IDLE = "En pause"
|
||||||
choices.AWAY = "Inactif"
|
choices.AWAY = "Inactif"
|
||||||
|
@ -45,18 +47,18 @@ services = []
|
||||||
[main.organization.startdate]
|
[main.organization.startdate]
|
||||||
ask.fr = "Date de création"
|
ask.fr = "Date de création"
|
||||||
type = "date"
|
type = "date"
|
||||||
bind = "organization.:"
|
bind = "organization.startdate:"
|
||||||
|
|
||||||
[main.organization.enddate]
|
[main.organization.enddate]
|
||||||
ask.fr = "Date de fermeture"
|
ask.fr = "Date de fermeture"
|
||||||
type = "date"
|
type = "date"
|
||||||
visible = "status-level == 'AWAY'"
|
visible = "status-level == 'AWAY'"
|
||||||
bind = "organization.:"
|
bind = "organization.enddate:"
|
||||||
|
|
||||||
|
|
||||||
[main.organization._type]
|
[main.organization._type]
|
||||||
ask.fr = "Type d'organisation"
|
ask.fr = "Type d'organisation"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.ASSOCIATION = "Association"
|
choices.ASSOCIATION = "Association"
|
||||||
choices.INFORMAL = "Informel"
|
choices.INFORMAL = "Informel"
|
||||||
choices.COOPERATIVE = "Coopérative"
|
choices.COOPERATIVE = "Coopérative"
|
||||||
|
@ -75,7 +77,7 @@ services = []
|
||||||
|
|
||||||
|
|
||||||
[main.organization.logo]
|
[main.organization.logo]
|
||||||
ask.fr = "Name of the project"
|
ask.fr = "Logo"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "organization.logo:"
|
bind = "organization.logo:"
|
||||||
|
|
||||||
|
@ -108,7 +110,7 @@ services = []
|
||||||
|
|
||||||
[main.organization.status-level-chatons]
|
[main.organization.status-level-chatons]
|
||||||
ask.fr = "Statut"
|
ask.fr = "Statut"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.ACTIVE = "Actif"
|
choices.ACTIVE = "Actif"
|
||||||
choices.IDLE = "En pause"
|
choices.IDLE = "En pause"
|
||||||
choices.AWAY = "Inactif"
|
choices.AWAY = "Inactif"
|
||||||
|
@ -233,7 +235,7 @@ services = []
|
||||||
[main.socialnetworks.pixelfed]
|
[main.socialnetworks.pixelfed]
|
||||||
ask.fr = "Pixelfed"
|
ask.fr = "Pixelfed"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "organization.socialnetworks.pixelfed:"
|
bind = "organization.socialnetworks.pixelfeld:"
|
||||||
|
|
||||||
[main.socialnetworks.twitter]
|
[main.socialnetworks.twitter]
|
||||||
ask.fr = "Twitter"
|
ask.fr = "Twitter"
|
||||||
|
@ -305,7 +307,7 @@ services = []
|
||||||
|
|
||||||
[host]
|
[host]
|
||||||
name = "Hébergement"
|
name = "Hébergement"
|
||||||
bind = "multi_file({% for app in apps.split(',') %}{{ install_dir }}/public/{{ app }}.properties {% endfor %})"
|
bind = "multi_file({% for app in apps.split(',') %}{{ install_dir }}/public/{{ app }}.properties,{% endfor %})"
|
||||||
|
|
||||||
[host.provider]
|
[host.provider]
|
||||||
name = "Fournisseur"
|
name = "Fournisseur"
|
||||||
|
@ -329,7 +331,7 @@ bind = "multi_file({% for app in apps.split(',') %}{{ install_dir }}/public/{{ a
|
||||||
|
|
||||||
[host.provider.host_provider_type]
|
[host.provider.host_provider_type]
|
||||||
ask.fr = "Type d'hébergement"
|
ask.fr = "Type d'hébergement"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.HOME = "hébergement à domicile"
|
choices.HOME = "hébergement à domicile"
|
||||||
choices.HOSTEDBAY = "serveur personnel hébergé dans une baie d'un fournisseur"
|
choices.HOSTEDBAY = "serveur personnel hébergé dans une baie d'un fournisseur"
|
||||||
choices.HOSTEDSERVER = "serveur d'un fournisseur"
|
choices.HOSTEDSERVER = "serveur d'un fournisseur"
|
||||||
|
@ -354,7 +356,7 @@ bind = "multi_file({% for app in apps.split(',') %}{{ install_dir }}/public/{{ a
|
||||||
|
|
||||||
[host.server.host_server_type]
|
[host.server.host_server_type]
|
||||||
ask.fr = "Type de serveur"
|
ask.fr = "Type de serveur"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.NANO = "nano-ordinateur (Raspberry Pi, Olimex…)"
|
choices.NANO = "nano-ordinateur (Raspberry Pi, Olimex…)"
|
||||||
choices.PHYSICAL = "machine physique"
|
choices.PHYSICAL = "machine physique"
|
||||||
choices.VIRTUAL = "machine virtuelle"
|
choices.VIRTUAL = "machine virtuelle"
|
||||||
|
@ -377,76 +379,65 @@ bind = ":{{ install_dir }}/public/{{ app }}.properties"
|
||||||
ask.fr = "Date d'ouverture"
|
ask.fr = "Date d'ouverture"
|
||||||
type = "date"
|
type = "date"
|
||||||
bind = "service.startdate:"
|
bind = "service.startdate:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_enddate]
|
[{{ app }}.service.{{ app }}_enddate]
|
||||||
ask.fr = "Date de fermeture"
|
ask.fr = "Date de fermeture"
|
||||||
type = "date"
|
type = "date"
|
||||||
optional = true
|
optional = true
|
||||||
bind = "service.enddate:"
|
bind = "service.enddate:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_description]
|
[{{ app }}.service.{{ app }}_description]
|
||||||
ask.fr = "Description"
|
ask.fr = "Description"
|
||||||
type = "string"
|
type = "string"
|
||||||
bind = "service.description:"
|
bind = "service.description:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_logo]
|
[{{ app }}.service.{{ app }}_logo]
|
||||||
ask.fr = "Logo"
|
ask.fr = "Logo"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "service.logo:"
|
bind = "service.logo:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_legal-url]
|
[{{ app }}.service.{{ app }}_legal-url]
|
||||||
ask.fr = "Mentions légales"
|
ask.fr = "Mentions légales"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "service.legal.url:"
|
bind = "service.legal.url:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_guide-technical]
|
[{{ app }}.service.{{ app }}_guide-technical]
|
||||||
ask.fr = "Documentation technique"
|
ask.fr = "Documentation technique"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "service.guide.technical:"
|
bind = "service.guide.technical:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_guide-user]
|
[{{ app }}.service.{{ app }}_guide-user]
|
||||||
ask.fr = "Documentation utilisateurices"
|
ask.fr = "Documentation utilisateurices"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "service.guide.user:"
|
bind = "service.guide.user:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_contact-url]
|
[{{ app }}.service.{{ app }}_contact-url]
|
||||||
ask.fr = "Page de support"
|
ask.fr = "Page de support"
|
||||||
type = "url"
|
type = "url"
|
||||||
bind = "service.contact.url:"
|
bind = "service.contact.url:"
|
||||||
optional = true
|
optional = true
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_contact-email]
|
[{{ app }}.service.{{ app }}_contact-email]
|
||||||
ask.fr = "Courriel de support"
|
ask.fr = "Courriel de support"
|
||||||
type = "email"
|
type = "email"
|
||||||
bind = "service.contact.email:"
|
bind = "service.contact.email:"
|
||||||
optional = true
|
optional = true
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_registration]
|
[{{ app }}.service.{{ app }}_registration]
|
||||||
ask.fr = "Inscription"
|
ask.fr = "Inscription"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.None = "Le service s'utilise sans inscription"
|
choices.None = "Le service s'utilise sans inscription"
|
||||||
choices.Free = "Inscription nécessaire mais ouverte à tout le monde et gratuite"
|
choices.Free = "Inscription nécessaire mais ouverte à tout le monde et gratuite"
|
||||||
choices.Member = "Inscription restreinte aux membres (la notion de membre pouvant être très relative, par exemple, une famille, un cercle d’amis, adhérents d'association…)"
|
choices.Member = "Inscription restreinte aux membres (la notion de membre pouvant être très relative, par exemple, une famille, un cercle d’amis, adhérents d'association…)"
|
||||||
choices.Client = "Inscription liée à une relation commerciale (facture…)"
|
choices.Client = "Inscription liée à une relation commerciale (facture…)"
|
||||||
bind = "service.registration:"
|
bind = "service.registration:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
[{{ app }}.service.{{ app }}_registration-load]
|
[{{ app }}.service.{{ app }}_registration-load]
|
||||||
ask.fr = "Capacité"
|
ask.fr = "Capacité"
|
||||||
type = "string"
|
type = "select"
|
||||||
choices.OPEN = "Le service accueille de nouveaux comptes"
|
choices.OPEN = "Le service accueille de nouveaux comptes"
|
||||||
choices.FULL = "Le service n'accueille plus de nouveau compte pour l'instant"
|
choices.FULL = "Le service n'accueille plus de nouveau compte pour l'instant"
|
||||||
bind = "service.registration.load:"
|
bind = "service.registration.load:"
|
||||||
visible = "{{ app }}.service.{{ app }}_published"
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ create_service_properties() {
|
||||||
ynh_write_var_in_file --file="$service_path" --key="service.website" --value="https://$(get_info 'domain_path')"
|
ynh_write_var_in_file --file="$service_path" --key="service.website" --value="https://$(get_info 'domain_path')"
|
||||||
ynh_write_var_in_file --file="$service_path" --key="service.logo" --value="https://$(get_info 'settings.domain')/yunohost/admin/appslogo/$(get_info 'logo')"
|
ynh_write_var_in_file --file="$service_path" --key="service.logo" --value="https://$(get_info 'settings.domain')/yunohost/admin/appslogo/$(get_info 'logo')"
|
||||||
|
|
||||||
ynh_write_var_in_file --file="$service_path" --key="service.startdate" --value="$(date '+%Y-%m-%dT%H:%M:%S')"
|
ynh_write_var_in_file --file="$service_path" --key="service.startdate" --value="$(date '+%d/%m/%Y')"
|
||||||
ynh_write_var_in_file --file="$service_path" --key="service.status.level" --value="OK"
|
ynh_write_var_in_file --file="$service_path" --key="service.status.level" --value="OK"
|
||||||
local ldap="$(get_info 'manifest.integration.ldap')"
|
local ldap="$(get_info 'manifest.integration.ldap')"
|
||||||
local sso="$(get_info 'manifest.integration.sso')"
|
local sso="$(get_info 'manifest.integration.sso')"
|
||||||
|
|
|
@ -45,7 +45,7 @@ set__multi_file() {
|
||||||
ynh_print_info --message="Configuration key '$short_setting' edited in app settings"
|
ynh_print_info --message="Configuration key '$short_setting' edited in app settings"
|
||||||
if [ "$bind_files" != "" ]
|
if [ "$bind_files" != "" ]
|
||||||
then
|
then
|
||||||
for bind_file in $bind_files
|
for bind_file in ${bind_files//,/ }
|
||||||
do
|
do
|
||||||
ynh_read_var_in_file --file="${bind_file}" --key="${short_settings}"
|
ynh_read_var_in_file --file="${bind_file}" --key="${short_settings}"
|
||||||
ynh_print_info --message="Configuration key '$short_setting' edited in '${bind_file}'"
|
ynh_print_info --message="Configuration key '$short_setting' edited in '${bind_file}'"
|
||||||
|
|
Loading…
Reference in a new issue