Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
d014adcb
Commit
d014adcb
authored
6 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
ad75e20c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
venueAddForm.php
application/views/Venue/venueAddForm.php
+5
-5
custom-script.js
assets/js/custom-script.js
+5
-0
No files found.
application/views/Venue/venueAddForm.php
View file @
d014adcb
...
...
@@ -28,7 +28,7 @@
<div
class=
"col-md-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-body"
>
<form
role=
"form"
action=
"
<?=
base_url
(
$url
)
?>
"
method=
"post"
<form
name=
"venueForm"
role=
"form"
action=
"
<?=
base_url
(
$url
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<div
class=
"col-md-6"
>
<?php
if
(
!
empty
(
$regionData
)){
?>
...
...
@@ -155,10 +155,10 @@
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Venue Address
</label>
<input
type=
"text"
class=
"form-control
required"
data-parsley-trigger=
"change"
required
name=
"location"
placeholder=
"Venue Address"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
$venue_data
->
location
:
''
?>
"
>
<input
type=
"text"
class=
"form-control
"
data-parsley-trigger=
"change"
name=
"location"
placeholder=
"Venue Address"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
$venue_data
->
location
:
''
?>
"
>
</div>
<input
type=
"hidden"
id=
"gooLocLat"
value=
"
<?=
(
isset
(
$venue_data
->
location_lat
)
&&
!
empty
(
$venue_data
->
location_lat
))
?
$venue_data
->
location_lat
:
'
24.774265
'
?>
"
/>
<input
type=
"hidden"
id=
"gooLocLng"
value=
"
<?=
(
isset
(
$venue_data
->
location_lng
)
&&
!
empty
(
$venue_data
->
location_lng
))
?
$venue_data
->
location_lng
:
'
46.738586
'
?>
"
/>
<input
type=
"hidden"
id=
"gooLocLat"
value=
"
<?=
(
isset
(
$venue_data
->
location_lat
)
&&
!
empty
(
$venue_data
->
location_lat
))
?
$venue_data
->
location_lat
:
''
?>
"
/>
<input
type=
"hidden"
id=
"gooLocLng"
value=
"
<?=
(
isset
(
$venue_data
->
location_lng
)
&&
!
empty
(
$venue_data
->
location_lng
))
?
$venue_data
->
location_lng
:
''
?>
"
/>
<input
type=
"hidden"
id=
"gooLocZoom"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
15
:
0
?>
"
/>
<div
id=
"locPointerMap"
style=
"height:355px;"
></div>
</div>
...
...
@@ -259,7 +259,7 @@
</div>
<div
class=
"col-md-12 padTop10"
>
<div
class=
"box-footer textCenterAlign"
>
<button
type=
"submit
"
class=
"btn btn-primary"
>
Submit
</button>
<button
id=
"venueAddBtn"
type=
"button
"
class=
"btn btn-primary"
>
Submit
</button>
<a
href=
"
<?=
base_url
(
'Venue/listVenues'
)
?>
"
class=
"btn btn-primary"
>
Cancel
</a>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
assets/js/custom-script.js
View file @
d014adcb
...
...
@@ -939,3 +939,8 @@ function confirmDelete(thisObj,fnName,params){
updateStatus
(
thisObj
,
fnName
,
params
,
status
);
}
}
jQuery
(
'[id="venueAddBtn"]'
).
on
(
'click'
,
function
(
event
)
{
jQuery
(
'[name="location"]'
).
addClass
(
'required'
);
jQuery
(
'[name="venueForm"]'
).
submit
();
});
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