Choice for color theme less buggy
This commit is contained in:
parent
3da7b70cd1
commit
a6ce2c5647
@ -30,9 +30,9 @@
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<label for="theme">Theme</label>
|
||||
<select id="theme" name="theme" required>
|
||||
<option value="" selected>Default</option>
|
||||
<label for="theme">Thème</label>
|
||||
<select id="theme" name="theme">
|
||||
<option value="" selected>Choisissez votre couleur</option>
|
||||
<option>amber</option>
|
||||
<option>blue</option>
|
||||
<option>cyan</option>
|
||||
|
||||
@ -68,7 +68,7 @@ def profile() :
|
||||
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",
|
||||
os.path.join(DOSSIER_PERSO, user ,'theme.min.css') )
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user