Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Deep Dey
LaMartin-Webomagic
Commits
a262bc46
Commit
a262bc46
authored
Jul 02, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add dialog during form submission failure
parent
37d6a4b1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
105 deletions
+128
-105
lamartinFrontend/index.html
lamartinFrontend/index.html
+102
-87
lamartinFrontend/main.js
lamartinFrontend/main.js
+8
-4
lamartinFrontend/style.css
lamartinFrontend/style.css
+18
-14
No files found.
lamartinFrontend/index.html
View file @
a262bc46
This diff is collapsed.
Click to expand it.
lamartinFrontend/main.js
View file @
a262bc46
...
...
@@ -209,12 +209,16 @@ $(document).ready(function () {
$
(
'
#btn-sumbit
'
).
prop
(
'
disabled
'
,
false
);
if
(
xhr
.
responseText
)
{
console
.
log
(
xhr
.
responseText
);
console
.
log
(
JSON
.
parse
(
xhr
.
responseText
).
message
);
var
errorMessage
=
JSON
.
parse
(
xhr
.
responseText
).
message
;
console
.
error
(
'
Server Response:
'
,
errorMessage
);
alert
(
errorMessage
.
message
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
JSON
.
parse
(
xhr
.
responseText
).
message
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
}
else
{
console
.
error
(
'
No response from server
'
);
alert
(
'
No response from server
'
);
$
(
'
#messageModal .modal-title
'
).
html
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
html
(
'
No response from server
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
}
},
});
...
...
lamartinFrontend/style.css
View file @
a262bc46
...
...
@@ -56,28 +56,28 @@ body {
padding-bottom
:
30px
;
}
.form-group
{
.
la-
form-group
{
width
:
100%
;
margin-bottom
:
15px
;
}
.form-group
label
{
.
la-
form-group
label
{
display
:
block
;
margin-bottom
:
4px
;
font-size
:
13px
;
color
:
#706c6c
;
}
.form-group
label
.is-invalid
{
.
la-
form-group
label
.is-invalid
{
color
:
crimson
;
}
.form-group
label
span
{
.
la-
form-group
label
span
{
color
:
crimson
;
font-weight
:
600
;
}
.
form-group
.
form-control
{
.
la-form-group
.la-
form-control
{
width
:
100%
;
padding
:
8px
;
box-sizing
:
border-box
;
...
...
@@ -85,20 +85,20 @@ body {
outline
:
none
;
}
.
form-group
.
form-control.is-invalid
{
.
la-form-group
.la-
form-control.is-invalid
{
border
:
1px
solid
crimson
;
color
:
crimson
;
}
.form-group
.la-invalid-feedback
,
.form-group
small
{
.
la-
form-group
.la-invalid-feedback
,
.
la-
form-group
small
{
display
:
block
;
margin-top
:
3px
;
color
:
#3c3939
;
font-size
:
11px
;
}
.form-group
.la-invalid-feedback
{
.
la-
form-group
.la-invalid-feedback
{
color
:
crimson
;
}
...
...
@@ -152,7 +152,7 @@ body {
margin-top
:
30px
;
}
.form-image-group
.form-group
{
.form-image-group
.
la-
form-group
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
...
...
@@ -171,14 +171,18 @@ body {
.loader
{
display
:
none
;
border
:
5
px
solid
#f3f3f3
;
border-top
:
5
px
solid
#3498db
;
border
:
3
px
solid
#f3f3f3
;
border-top
:
3
px
solid
#3498db
;
border-radius
:
50%
;
width
:
16
px
;
height
:
16
px
;
width
:
25
px
;
height
:
25
px
;
animation
:
spin
2s
linear
infinite
;
}
input
[
type
=
"file"
]
{
font-size
:
12px
;
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment