Choice for color theme less buggy
This commit is contained in:
parent
3da7b70cd1
commit
a6ce2c5647
@ -30,9 +30,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<label for="theme">Theme</label>
|
<label for="theme">Thème</label>
|
||||||
<select id="theme" name="theme" required>
|
<select id="theme" name="theme">
|
||||||
<option value="" selected>Default</option>
|
<option value="" selected>Choisissez votre couleur</option>
|
||||||
<option>amber</option>
|
<option>amber</option>
|
||||||
<option>blue</option>
|
<option>blue</option>
|
||||||
<option>cyan</option>
|
<option>cyan</option>
|
||||||
|
|||||||
@ -68,7 +68,7 @@ def profile() :
|
|||||||
f = request.files['fic']
|
f = request.files['fic']
|
||||||
|
|
||||||
|
|
||||||
if request.form['theme'] != "Default":
|
if request.form['theme']:
|
||||||
copy( "static/vendors/picocss/pico.fluid.classless."+request.form['theme']+".min.css",
|
copy( "static/vendors/picocss/pico.fluid.classless."+request.form['theme']+".min.css",
|
||||||
os.path.join(DOSSIER_PERSO, user ,'theme.min.css') )
|
os.path.join(DOSSIER_PERSO, user ,'theme.min.css') )
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user