Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mei Romauli Sagala
RestoranPondokEdo
Commits
2aafa79c
Commit
2aafa79c
authored
7 years ago
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
d2e983a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
49 deletions
+21
-49
form_daftar.php
form_daftar.php
+1
-1
index.js
js/index.js
+20
-48
No files found.
form_daftar.php
View file @
2aafa79c
...
@@ -72,7 +72,7 @@ require_once(dirname(__FILE__).'/common/header.php');
...
@@ -72,7 +72,7 @@ require_once(dirname(__FILE__).'/common/header.php');
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-md-4 control-label"
></label>
<label
class=
"col-md-4 control-label"
></label>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-warning"
>
Daftar
<span
class=
"glyphicon glyphicon-send"
></span></button>
<button
type=
"submit"
class=
"btn btn-warning"
onclick=
"this.form.reset();"
>
Daftar
<span
class=
"glyphicon glyphicon-send"
></span></button>
</div>
</div>
</div>
</div>
</fieldset>
</fieldset>
...
...
This diff is collapsed.
Click to expand it.
js/index.js
View file @
2aafa79c
...
@@ -14,52 +14,47 @@
...
@@ -14,52 +14,47 @@
},
'json'
);
},
'json'
);
},
},
fields
:
{
fields
:
{
first_
name
:
{
name
:
{
validators
:
{
validators
:
{
stringLength
:
{
stringLength
:
{
min
:
2
,
min
:
2
,
},
},
notEmpty
:
{
message
:
'Isi Nama Depan'
}
}
}
},
},
last_name
:
{
address
:
{
validators
:
{
validators
:
{
stringLength
:
{
stringLength
:
{
min
:
2
,
min
:
8
,
},
},
notEmpty
:
{
notEmpty
:
{
message
:
'Isi
Nama Belakang
'
message
:
'Isi
Alamat Anda
'
}
}
}
}
},
},
email
:
{
phone
:
{
validators
:
{
validators
:
{
notEmpty
:
{
stringLength
:
{
message
:
'Isi E-mail Anda'
max
:
13
,
},
emailAddress
:
{
message
:
'Isi E-mail Anda Dengan Benar'
}
}
}
},
},
phone
:
{
}
email
:
{
validators
:
{
validators
:
{
notEmpty
:
{
emailAddress
:
{
message
:
'Isi
Nomor Anda
'
message
:
'Isi
E-mail Anda Dengan Benar
'
}
}
}
}
},
},
address
:
{
username
:
{
validators
:
{
validators
:
{
stringLength
:
{
stringLength
:
{
min
:
8
,
min
:
2
,
},
},
notEmpty
:
{
message
:
'Isi Alamat Anda'
}
}
}
},
},
password
:
{
password
:
{
...
@@ -67,32 +62,9 @@
...
@@ -67,32 +62,9 @@
stringLength
:
{
stringLength
:
{
min
:
4
,
min
:
4
,
},
},
notEmpty
:
{
message
:
'Isi password Anda'
}
}
}
},
},
state
:
{
validators
:
{
notEmpty
:
{
message
:
'Pilih Provinsi'
}
}
},
zip
:
{
validators
:
{
notEmpty
:
{
message
:
'Isi Zip kode'
},
}
},
sex
:{
validators
:{
notEmpty
:{
message
:
'Pilih Jenis Kelamin'
}
}
}
}
}
})
})
$
(
'#contact_form'
).
data
(
'bootstrapValidator'
).
resetForm
();
$
(
'#contact_form'
).
data
(
'bootstrapValidator'
).
resetForm
();
...
...
This diff is collapsed.
Click to expand it.
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