Unverified Commit a9acebd1 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

small fixes

parent 95f1bf48
...@@ -413,6 +413,7 @@ ...@@ -413,6 +413,7 @@
height: 2rem !important; height: 2rem !important;
line-height: 2rem !important; line-height: 2rem !important;
padding: 0 1.3rem !important; padding: 0 1.3rem !important;
p { margin: 0; }
} }
.btn-pick-file { .btn-pick-file {
......
...@@ -27,7 +27,7 @@ class ConfigurationStyleAdmin extends ConfigurationAbstractAdmin ...@@ -27,7 +27,7 @@ class ConfigurationStyleAdmin extends ConfigurationAbstractAdmin
$formMapper $formMapper
->tab('Style') ->tab('Style')
->with('Thème et polices', ['class' => 'col-md-6']) ->with('Thème et polices', ['class' => 'col-md-6'])
->add('theme', ChoiceType::class, ['label' => 'Thème', 'choices' => ['default' => 'faut', 'presdecheznous' => 'Près de chez Nous', 'transiscope' => 'Transiscope']]) ->add('theme', ChoiceType::class, ['label' => 'Thème', 'choices' => ['faut' => 'default', 'Près de chez Nous' => 'presdecheznous', 'Transiscope' => 'transiscope']])
->add('mainFont', null, ['label' => 'Police principale', 'attr' => ['class' => 'gogo-font-picker']]) ->add('mainFont', null, ['label' => 'Police principale', 'attr' => ['class' => 'gogo-font-picker']])
->add('titleFont', null, ['label' => 'Police de titre', 'attr' => ['class' => 'gogo-font-picker']]) ->add('titleFont', null, ['label' => 'Police de titre', 'attr' => ['class' => 'gogo-font-picker']])
......
...@@ -52,9 +52,13 @@ ...@@ -52,9 +52,13 @@
<div class="file-field input-field"> <div class="file-field input-field">
<div class="btn btn-pick-file btn-neutral"> <div class="btn btn-pick-file btn-neutral">
<span class="fa fa-upload"></span> <span class="fa fa-upload"></span>
{% set accept = field.type == 'images' ? 'image/*' : field.accept %} {% if field.type == 'images' %}
{% set accept = 'image/*' %}
{% elseif field.accept is defined %}
{% set accept = field.accept %}
{% endif %}
<input type="file" name="element[{{field.name}}][__count__][file][file]" <input type="file" name="element[{{field.name}}][__count__][file][file]"
{% if accept %}accept="{{ accept|replace({" ": ','}) }}"{% endif %}> {% if accept is defined %}accept="{{ accept|replace({" ": ','}) }}"{% endif %}>
</div> </div>
<div class="file-path-wrapper"> <div class="file-path-wrapper">
<input class="file-path validate" type="text"> <input class="file-path validate" type="text">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment