Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
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
esi-data-scrapping
esi-table-data
Commits
001c857c
Commit
001c857c
authored
Jul 03, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new template for new job
parent
2ed8f4b5
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
datetimepicker.js
esi/static/js/datetimepicker.js
+4
-0
new_job.html
esi/templates/new_job.html
+22
-9
No files found.
esi/static/js/datetimepicker.js
0 → 100644
View file @
001c857c
This diff is collapsed.
Click to expand it.
esi/templates/new_job.html
View file @
001c857c
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block style %}
<link
rel=
"stylesheet"
href=
"{% static 'css/bootstrap.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/datetime.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/font-awesome.min.css' %}"
>
{% endblock %}
{% block content %}
{% block content %}
<main></main>
<main></main>
<div
class=
"container"
>
<div
class=
"container"
>
<h2
class=
"display-4"
>
New job
</h2>
<h2
class=
"display-4"
>
New job
</h2>
<section
class=
"mb-5 mt-5"
>
<form
class=
"mb-5 mt-5"
method=
"post"
>
{% csrf_token %}
<!-- Name -->
<!-- Name -->
<div
class=
"form-group row"
>
<div
class=
"form-group row"
>
<label
for=
"name"
class=
"offset-1 col-2 col-form-label"
><strong>
Name:
</strong></label>
<label
for=
"name"
class=
"offset-1 col-2 col-form-label"
><strong>
Name:
</strong></label>
...
@@ -16,8 +25,9 @@
...
@@ -16,8 +25,9 @@
<label
for=
"spider"
class=
"offset-1 col-2 col-form-label"
><strong>
Spider:
</strong></label>
<label
for=
"spider"
class=
"offset-1 col-2 col-form-label"
><strong>
Spider:
</strong></label>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<select
name=
"spider"
id=
"spider"
class=
"form-control"
>
<select
name=
"spider"
id=
"spider"
class=
"form-control"
>
<option
value=
"1"
>
MobileHealthNews
</option>
{% for i in spiders %}
<option
value=
"2"
>
Techcrunch
</option>
<option
value=
"{{ i.id }}"
>
{{ i.name }}
</option>
{% endfor %}
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -33,28 +43,29 @@
...
@@ -33,28 +43,29 @@
<div
class=
"form-group row"
>
<div
class=
"form-group row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio1"
name=
"interval"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio1"
name=
"interval"
value=
"Day"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Day
</span>
<span
class=
"custom-control-description"
>
Day
</span>
</label>
</label>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio2"
name=
"interval"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio2"
name=
"interval"
value=
"Week"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Week
</span>
<span
class=
"custom-control-description"
>
Week
</span>
</label>
</label>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio3"
name=
"interval"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio3"
name=
"interval"
value=
"Month"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Month
</span>
<span
class=
"custom-control-description"
>
Month
</span>
</label>
</label>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio4"
name=
"interval"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio4"
name=
"interval"
value=
"Finished"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
After finish
</span>
<span
class=
"custom-control-description"
>
After finish
</span>
</label>
</label>
...
@@ -85,11 +96,11 @@
...
@@ -85,11 +96,11 @@
<a
class=
"form-control btn btn-danger"
href=
"/job/"
>
Cancel
</a>
<a
class=
"form-control btn btn-danger"
href=
"/job/"
>
Cancel
</a>
</div>
</div>
</div>
</div>
</
section
>
</
form
>
</div>
</div>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"
></script>
<script
src=
"
js/datetimepicker.js
"
></script>
<script
src=
"
{% static 'js/datetimepicker.js' %}
"
></script>
<script>
<script>
$
(
'#date'
).
datetimepicker
();
$
(
'#date'
).
datetimepicker
();
$
(
'.custom-control'
).
on
(
'click'
,
function
()
{
$
(
'.custom-control'
).
on
(
'click'
,
function
()
{
...
@@ -119,5 +130,7 @@
...
@@ -119,5 +130,7 @@
}
}
});
});
</script>
</script>
{% endblock %}
{% endblock %}
\ No newline at end of file
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