ZwiiCMS/core/module/theme/view/fontEdit/fontEdit.php

88 lines
2.8 KiB
PHP
Raw Normal View History

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