forked from ZwiiCMS-Team/ZwiiCMS
Débordement dans inputfile
This commit is contained in:
parent
cddf3ab4a5
commit
0b400cdb35
@ -244,7 +244,7 @@ class template {
|
|||||||
'value' => $attributes['value']
|
'value' => $attributes['value']
|
||||||
]);
|
]);
|
||||||
// Champ d'upload
|
// Champ d'upload
|
||||||
$html .= '<div>';
|
$html .= '<div class="inputWrapper">';
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
'<a
|
'<a
|
||||||
href="' .
|
href="' .
|
||||||
|
@ -1019,6 +1019,16 @@ label {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Empêche le débordement et les sauts de ligne */
|
||||||
|
.inputWrapper {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.inputWrapper > .inputFile {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
/* Pagination */
|
/* Pagination */
|
||||||
.pagination {
|
.pagination {
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
||||||
): ?>
|
): ?>
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
<?php echo $this->getUser('group'); ?>
|
|
||||||
<?php echo template::button('blogEdit', [
|
<?php echo template::button('blogEdit', [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
|
||||||
'value' => 'Editer'
|
'value' => 'Editer'
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col4">
|
<div class="col6">
|
||||||
<?php echo template::file('blogEditPicture', [
|
<?php echo template::file('blogEditPicture', [
|
||||||
'help' => 'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.',
|
'help' => 'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.',
|
||||||
'label' => 'Image de couverture',
|
'label' => 'Image de couverture',
|
||||||
@ -44,13 +44,13 @@
|
|||||||
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picture'])
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picture'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col3">
|
||||||
<?php echo template::select('blogEditPictureSize', $module::$pictureSizes, [
|
<?php echo template::select('blogEditPictureSize', $module::$pictureSizes, [
|
||||||
'label' => 'Largeur de l\'image',
|
'label' => 'Largeur de l\'image',
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'pictureSize'])
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'pictureSize'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col3">
|
||||||
<?php echo template::select('blogEditPicturePosition', $module::$picturePositions, [
|
<?php echo template::select('blogEditPicturePosition', $module::$picturePositions, [
|
||||||
'label' => 'Position',
|
'label' => 'Position',
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picturePosition']),
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picturePosition']),
|
||||||
|
Loading…
Reference in New Issue
Block a user