-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from C3BI-pasteur-fr/dev
- Loading branch information
Showing
93 changed files
with
12,334 additions
and
1,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# NG-Phylogeny.fr | ||
# NGPhylogeny.fr | ||
|
||
|
||
A Django web application to make Phylogeny analysis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,44 @@ | ||
# -*- coding: utf-8 -*- | ||
from crispy_forms.bootstrap import FormActions | ||
from crispy_forms.bootstrap import StrictButton | ||
from crispy_forms.helper import FormHelper | ||
from crispy_forms.layout import Submit, Layout | ||
from django import forms | ||
|
||
|
||
class UploadForm(forms.Form): | ||
file = forms.FileField(widget=forms.FileInput(attrs={'multiple': 'true'})) | ||
input_file = forms.FileField(widget=forms.FileInput()) | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(UploadForm, self).__init__(*args, **kwargs) | ||
self.helper = FormHelper(self) | ||
self.helper.form_method = 'POST' | ||
self.helper.layout = Layout('input_file', | ||
FormActions( | ||
Submit('submit', 'Submit'))) | ||
|
||
class Media: | ||
|
||
js = ("js/jquery.filer.min.js",) | ||
css= { | ||
'all':("css/jquery.filer.css",) | ||
} | ||
|
||
|
||
class PastedContentForm(forms.Form): | ||
pasted_text = forms.CharField(widget=forms.Textarea) | ||
textarea_id = "id_pasted_text" | ||
helper = FormHelper() | ||
helper.form_method = 'POST' | ||
helper.layout = Layout('file', | ||
FormActions(Submit('submit', 'Submit'))) | ||
helper.layout = Layout('pasted_text', | ||
FormActions( | ||
Submit('submit', 'Submit'), | ||
StrictButton( "<span class='glyphicon glyphicon-question-sign'></span> Example", | ||
css_class="btn btn-info", | ||
onclick="populateExample('"+textarea_id+"', FASTA_AA);"), | ||
StrictButton("<span class='glyphicon glyphicon-trash'></span>", | ||
css_class="btn btn-default", | ||
onclick="document.getElementById('"+textarea_id+"').value='';" ), | ||
)) | ||
class Media: | ||
js = ('js/form_examples.js',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.