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
May 27, 2017
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');
<div
class=
"form-group"
>
<label
class=
"col-md-4 control-label"
></label>
<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>
</fieldset>
...
...
js/index.js
View file @
2aafa79c
...
...
@@ -14,52 +14,47 @@
},
'json'
);
},
fields
:
{
first_
name
:
{
name
:
{
validators
:
{
stringLength
:
{
min
:
2
,
},
notEmpty
:
{
message
:
'Isi Nama Depan'
}
}
},
last_name
:
{
address
:
{
validators
:
{
stringLength
:
{
min
:
2
,
min
:
8
,
},
notEmpty
:
{
message
:
'Isi
Nama Belakang
'
message
:
'Isi
Alamat Anda
'
}
}
},
email
:
{
phone
:
{
validators
:
{
notEmpty
:
{
message
:
'Isi E-mail Anda'
},
emailAddress
:
{
message
:
'Isi E-mail Anda Dengan Benar'
stringLength
:
{
max
:
13
,
}
}
},
phone
:
{
}
email
:
{
validators
:
{
notEmpty
:
{
message
:
'Isi
Nomor Anda
'
emailAddress
:
{
message
:
'Isi
E-mail Anda Dengan Benar
'
}
}
},
address
:
{
username
:
{
validators
:
{
stringLength
:
{
min
:
8
,
stringLength
:
{
min
:
2
,
},
notEmpty
:
{
message
:
'Isi Alamat Anda'
}
}
},
password
:
{
...
...
@@ -67,32 +62,9 @@
stringLength
:
{
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
();
...
...
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