Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
InSillyClo-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
InSillyClo
InSillyClo-web
Commits
00bf98b1
Commit
00bf98b1
authored
2 weeks ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
edition of restriction enzyme
parent
cc192cd2
No related branches found
Branches containing commit
No related tags found
2 merge requests
!13
Edit view job
,
!7
Simulator
Pipeline
#155028
passed
2 weeks ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/InSillyCloWeb/assemblies/forms.py
+7
-1
7 additions, 1 deletion
src/InSillyCloWeb/assemblies/forms.py
src/InSillyCloWeb/assemblies/urls.py
+5
-0
5 additions, 0 deletions
src/InSillyCloWeb/assemblies/urls.py
src/InSillyCloWeb/assemblies/views.py
+9
-0
9 additions, 0 deletions
src/InSillyCloWeb/assemblies/views.py
with
21 additions
and
1 deletion
src/InSillyCloWeb/assemblies/forms.py
+
7
−
1
View file @
00bf98b1
...
...
@@ -2,7 +2,7 @@ import insillyclo.main
from
crispy_forms
import
layout
from
crispy_forms.helper
import
FormHelper
from
django
import
forms
from
django.forms
import
modelformset_factory
from
django.forms
import
modelformset_factory
,
modelform_factory
from
django.utils.safestring
import
mark_safe
from
django.utils.translation
import
gettext
as
_
...
...
@@ -77,6 +77,12 @@ class PCRModelForm(forms.ModelForm):
return
instance
RestrictionEnzymeModelForm
=
modelform_factory
(
model
=
SimulatorJob
,
fields
=
(
'
restriction_enzyme_gel
'
,),
)
class
AssemblyForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Assembly
...
...
This diff is collapsed.
Click to expand it.
src/InSillyCloWeb/assemblies/urls.py
+
5
−
0
View file @
00bf98b1
...
...
@@ -69,6 +69,11 @@ urlpatterns = [
path
(
'
assembly-simulator/create/
'
,
simulator_wizard
,
name
=
'
simulator-create
'
),
path
(
'
assembly-simulator/<slug:uuid>/
'
,
views
.
JobSimulatorResult
.
as_view
(),
name
=
'
simulator-detail
'
),
path
(
'
assembly-simulator/<slug:uuid>/pcr-edit/
'
,
views
.
JobPCREdit
.
as_view
(),
name
=
'
simulator-pcr-edit
'
),
path
(
'
assembly-simulator/<slug:uuid>/enzyme-edit/
'
,
views
.
JobRestrictionEnzymeEdit
.
as_view
(),
name
=
'
simulator-enzyme-edit
'
,
),
path
(
'
assembly/<int:pk>/download/
'
,
views
.
AssemblyDetailDownloadView
.
as_view
(),
name
=
'
assembly-download
'
),
path
(
'
assembly/<int:pk>/delete/
'
,
views
.
AssemblyDeleteView
.
as_view
(),
name
=
'
assembly-delete
'
),
path
(
'
fragment
'
,
views
.
show_fragment
,
name
=
'
fragment
'
),
...
...
This diff is collapsed.
Click to expand it.
src/InSillyCloWeb/assemblies/views.py
+
9
−
0
View file @
00bf98b1
...
...
@@ -155,3 +155,12 @@ class JobPCREdit(
def
get_title
(
self
):
return
_
(
"
PCR primers to use for gel simulation
"
)
class
JobRestrictionEnzymeEdit
(
SimulatorJobEdit
,
):
form_class
=
forms
.
RestrictionEnzymeModelForm
def
get_title
(
self
):
return
_
(
"
Restriction enzyme to use for gel simulation
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment