semi fixed move dbox, the input group is still not right, but it will suffice, more use of svg and ditching font awesome

This commit is contained in:
2021-07-22 00:50:45 +10:00
parent 6b6e7bc901
commit 915063a7a7
4 changed files with 189 additions and 75 deletions

View File

@@ -9,9 +9,9 @@ hostname = socket.gethostname()
PROD_HOST="pa_web"
ICON={}
ICON["Import"]="fa-file-upload"
ICON["Storage"]="fa-database"
ICON["Bin"]="fa-trash-alt"
ICON["Import"]="import"
ICON["Storage"]="db"
ICON["Bin"]="trash"
if hostname == "lappy":
PA_JOB_MANAGER_HOST="localhost"
@@ -40,8 +40,8 @@ def CreateSelect(name, selected, list, js="", add_class="" ):
str += '</select>'
return str
def CreateFoldersSelect(selected):
str = f'<select id="folders" name="folders" class="sm-txt bg-white text-info border-info border-1 p-1" onChange="this.form.submit()">'
def CreateFoldersSelect(selected, add_class=""):
str = f'<select id="folders" name="folders" class="{add_class} sm-txt bg-white text-info border-info border-1 p-1" onChange="this.form.submit()">'
# if selected is true, then folders == true, so make this the selected option
if( selected ):
str += '<option selected value="True">In Folders</option>'