Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
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
Mario Chirinos Colunga
GeoInt_SIDT
Commits
23298339
Commit
23298339
authored
Feb 05, 2019
by
Luis Ernesto Dominguez Uriostegui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit previo a migrate el nuevo modelo Process
parent
fd79fa26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
5 deletions
+34
-5
forms.py
catalog/forms.py
+3
-2
0010_process.py
catalog/migrations/0010_process.py
+22
-0
models.py
catalog/models.py
+6
-0
map.html
catalog/templates/map.html
+3
-3
db.sqlite3
db.sqlite3
+0
-0
No files found.
catalog/forms.py
View file @
23298339
...
@@ -5,9 +5,10 @@ import datetime
...
@@ -5,9 +5,10 @@ import datetime
#from django.contrib.auth.models import User
#from django.contrib.auth.models import User
#from buscador.models import Investigador, Reto
#from buscador.models import Investigador, Reto
platforms
=
[
platforms
=
[
(
"
vegIndex"
,
"Vegetation index
"
),
(
"
sentinel2"
,
"Classification scene
"
),
(
"waterBodies"
,
"Water bodies"
),
(
"waterBodies"
,
"Water bodies"
),
(
"urbanSprawl"
,
"Urban sprawl"
)
(
"urbanSprawl"
,
"Urban sprawl"
),
(
"vegIndex"
,
"Vegetation index"
)
]
]
#ALOS, A3, AIRSAR, AS, ERS-1, E1, ERS-2, E2, JERS-1, J1, RADARSAT-1, R1, SEASAT, SS, Sentinel-1A, SA, Sentinel-1B, SB, SMAP, SP, UAVSAR, UA.
#ALOS, A3, AIRSAR, AS, ERS-1, E1, ERS-2, E2, JERS-1, J1, RADARSAT-1, R1, SEASAT, SS, Sentinel-1A, SA, Sentinel-1B, SB, SMAP, SP, UAVSAR, UA.
class
ASFSearchForm
(
forms
.
Form
):
class
ASFSearchForm
(
forms
.
Form
):
...
...
catalog/migrations/0010_process.py
0 → 100644
View file @
23298339
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-02-05 16:22
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'catalog'
,
'0009_auto_20180831_2103'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Process'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'tag'
,
models
.
CharField
(
max_length
=
50
)),
],
),
]
catalog/models.py
View file @
23298339
...
@@ -48,6 +48,12 @@ class CartProduct(models.Model):
...
@@ -48,6 +48,12 @@ class CartProduct(models.Model):
purchased
=
models
.
NullBooleanField
()
purchased
=
models
.
NullBooleanField
()
# modelo para los procesos del sizebar del view map
class
Process
(
models
.
Model
):
tag
=
models
.
CharField
(
max_length
=
50
)
# class Purchase(models.Model):
# class Purchase(models.Model):
# user = models.ForeignKey(User, on_delete=models.CASCADE)
# user = models.ForeignKey(User, on_delete=models.CASCADE)
# pur_date = models.DateTimeField(auto_now=True) ## transaction date
# pur_date = models.DateTimeField(auto_now=True) ## transaction date
...
...
catalog/templates/map.html
View file @
23298339
...
@@ -191,9 +191,9 @@
...
@@ -191,9 +191,9 @@
</ul>
</ul>
</li>
</li>
<li>
<li>
<a
href=
"#"
>
<a
href=
"#"
>
<span>
<span>
<button
type=
"submit"
name=
"search"
id=
"search-btn"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
Search
</button>
<button
type=
"submit"
name=
"search"
id=
"search-btn"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
Search
</button>
<!-- <button name="search" id="search-btn" class="btn btn-primary">Search</button> -->
<!-- <button name="search" id="search-btn" class="btn btn-primary">Search</button> -->
</span>
</span>
</a>
</a>
...
...
db.sqlite3
View file @
23298339
No preview for this file type
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