2022-03-12 12:28:28 +01:00
|
|
|
<?php echo template::formOpen('fontEditForm'); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('fontEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'theme/fonts',
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
2022-03-11 16:09:43 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="col1">
|
2023-02-18 22:47:01 +01:00
|
|
|
<?php /* echo template::button('fontEditHelp', [
|
2022-09-29 08:45:59 +02:00
|
|
|
'href' => 'https://doc.zwiicms.fr/fontes#add',
|
|
|
|
'target' => '_blank',
|
|
|
|
'value' => template::ico('help'),
|
|
|
|
'class' => 'buttonHelp'
|
2023-02-18 22:47:01 +01:00
|
|
|
]); */ ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('fontEditPublish', [
|
|
|
|
'value' => 'Valider',
|
|
|
|
'uniqueSubmission' => true
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2022-10-03 18:37:25 +02:00
|
|
|
<h4><?php echo helper::translate('Identité de la fonte'); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('fontEditFontImported', true, 'Fonte en ligne', [
|
|
|
|
'checked' => $this->getUrl(2) === 'imported' ? true : false
|
|
|
|
]); ?>
|
2022-03-11 16:09:43 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('fontEditFontFile', true, 'Fonte installée', [
|
|
|
|
'checked' => $this->getUrl(2) === 'files' ? true : false
|
|
|
|
]); ?>
|
2022-03-11 16:09:43 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('fontEditFontId', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Identifiant (sans espace ni majuscule)',
|
|
|
|
'value' => $this->getUrl(3)
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('fontEditFontName', [
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Nom',
|
|
|
|
'value' => $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'name'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2022-03-12 12:28:28 +01:00
|
|
|
<?php echo template::text('fontEditFontFamilyName', [
|
2022-09-29 08:45:59 +02:00
|
|
|
'autocomplete' => 'off',
|
|
|
|
'label' => 'Famille',
|
|
|
|
'value' => stripslashes($this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'font-family']))
|
|
|
|
]); ?>
|
2022-03-11 16:09:43 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="row" id="containerfontEditFile">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::file('fontEditFile', [
|
|
|
|
'label' => 'Fichier de fonte (Format WOFF)',
|
2022-10-23 17:27:57 +02:00
|
|
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
2022-09-29 08:45:59 +02:00
|
|
|
'value' => $this->getUrl(2) === 'files' ? $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'resource']) : ''
|
|
|
|
]); ?>
|
2022-03-13 10:09:49 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="row" id="containerfontEditUrl">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::text('fontEditUrl', [
|
|
|
|
'label' => 'Url du fichier de fonte',
|
|
|
|
'value' => $this->getUrl(2) === 'imported' ? $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'resource']) : ''
|
|
|
|
]); ?>
|
2022-03-11 16:09:43 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
2022-03-11 16:09:43 +01:00
|
|
|
<?php echo template::formClose(); ?>
|