@@ -16,12 +16,23 @@ def MismatchModal(*args):
16
16
], id = 'mismatch-modal' , is_open = True )
17
17
18
18
19
+ def MismatchDatasetModal (fname , seq_fname ):
20
+ return dbc .Modal ([
21
+ ModalHeader ("Mismatch Detected" ),
22
+ dbc .ModalBody ([
23
+ html .P ("""We were unable to match the sequence at {} with the data at the file {}. Please
24
+ ensure that the file you attempt to upload corresponds with the protein sequence
25
+ in the provided FASTA file.""" .format (seq_fname , fname ), style = {'text-align' : "justify" }),
26
+ ])
27
+ ], id = 'mismatch-dataset-modal' , is_open = True )
28
+
29
+
19
30
def MismatchSequenceModal (* args ):
20
31
return dbc .Modal ([
21
32
ModalHeader ("Sequence Mismatch" ),
22
33
dbc .ModalBody ([
23
- html .P ("""We were unable to match the uploaded sequence with contact maps in the following files.
24
- Please ensure that the provided the sequence corresponds with the structure in these contact maps .""" ,
34
+ html .P ("""We were unable to match the uploaded sequence with datasets in the following files.
35
+ Please ensure that the provided sequence corresponds with the structure described in these datasets .""" ,
25
36
style = {'text-align' : "justify" }),
26
37
html .Ul ([html .Li ('File: %s' % arg ) for arg in args ], id = 'mismatched-maps-div' )
27
38
])
@@ -541,6 +552,23 @@ def TutorialFourModal():
541
552
autoFocus = True )
542
553
543
554
555
+ def TutorialFiveModal ():
556
+ return dbc .Modal ([
557
+ dbc .ModalHeader ('Tutorial 5: Video Tutorial' ),
558
+ dbc .ModalBody ([
559
+ 'Below there is a short video tutorial with an overview of the main ConPlot features. ' ,
560
+ html .Br (),
561
+ html .Br (),
562
+ html .Iframe (width = 1100 , height = 630 , src = UrlIndex .YOUTUBE_EMBED .value ,
563
+ style = {'frameborder' : 0 , 'allow' : "accelerometer; autoplay; clipboard-write; "
564
+ "encrypted-media; gyroscope; picture-in-picture" }),
565
+ html .Br (),
566
+ 'If you cannot see the video click ' , html .A (html .U ('here' ), href = UrlIndex .YOUTUBE_LINK .value ), '.'
567
+ ])
568
+ ], id = {'type' : 'tutorial-modal' , 'index' : 5 }, is_open = False , size = 'xl' , scrollable = True , centered = True ,
569
+ autoFocus = True )
570
+
571
+
544
572
def RedisConnectionErrorModal ():
545
573
return dbc .Modal ([
546
574
ModalHeader ("Redis connection error" ),
@@ -679,6 +707,7 @@ def FailureRecoverAccount():
679
707
),
680
708
], id = 'fail-recovery-modal' , is_open = True )
681
709
710
+
682
711
def InvalidPasswordRecoverAccount ():
683
712
return dbc .Modal ([
684
713
dbc .ModalHeader (
0 commit comments