From f0612934617b6e1a20d6a074b6b8790ddcf36662 Mon Sep 17 00:00:00 2001 From: komalsheth286 Date: Fri, 30 Sep 2016 14:32:59 +0530 Subject: Home page to be made live --- website/forms.py | 38 ++++++++-- website/models.py | 2 +- website/static/css/main.css | 2 +- website/static/img/poster_thumbnail.png | Bin 0 -> 68336 bytes website/static/img/sd.png | Bin 0 -> 1165570 bytes website/templates/base.html | 125 ++++++++++++++++++++++++++++---- website/templates/cfp.html | 21 ++++-- website/templates/submit-cfp.html | 3 +- website/templates/submit-cfw.html | 10 ++- 9 files changed, 163 insertions(+), 38 deletions(-) create mode 100644 website/static/img/poster_thumbnail.png create mode 100644 website/static/img/sd.png diff --git a/website/forms.py b/website/forms.py index b6bbc20..9972913 100755 --- a/website/forms.py +++ b/website/forms.py @@ -14,6 +14,16 @@ import floppyforms as forms from captcha.fields import ReCaptchaField +MY_CHOICES = ( + ('Beginner', 'Beginner'), + ('Advanced', 'Advanced'), +) + +ws_duration = ( + ('2', '2'), + ('3', '3'), + ('4', '4'), +) MY_CHOICES = ( ('Beginner', 'Beginner'), ('Advanced', 'Advanced'), @@ -65,11 +75,15 @@ class ProposalForm(forms.ModelForm): ) abstract = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'Abstract'}), required = True, + label = 'Abstract (Min. 300 char.)', error_messages = {'required':'Abstract field required.'}, ) proposal_type = forms.CharField(widget = forms.HiddenInput(), label = '', initial = 'ABSTRACT', required=False) - tags = forms.ChoiceField(choices=MY_CHOICES) + tags = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Tags'}), + required = False, + ) + class Meta: model = Proposal @@ -89,11 +103,16 @@ class ProposalForm(forms.ModelForm): ext = os.path.splitext(attachment.name)[1] valid_extensions = ['.pdf'] if not ext in valid_extensions: - raise forms.ValidationError(u'File not supported!') + raise forms.ValidationError(u'File not supported! Only .pdf file is accepted') if attachment.size > (5*1024*1024): raise forms.ValidationError('File size exceeds 5MB') return attachment + # def clean_abstract(self): + # about_me = self.cleaned_data['abstract'] + # if len(about_me) < 300: + # raise forms.ValidationError("Abstract me should contain min. 300 characteres") + class WorkshopForm(forms.ModelForm): about_me = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'About Me'}), @@ -111,7 +130,7 @@ class WorkshopForm(forms.ModelForm): ) abstract = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'Desciption'}), required = True, - label = 'Description', + label = 'Description (Min. 300 char.)', error_messages = {'required':'Abstract field required.'}, ) prerequisite = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'Prerequisite'}), @@ -120,9 +139,9 @@ class WorkshopForm(forms.ModelForm): ) proposal_type = forms.CharField(widget = forms.HiddenInput(), label = '', required=False, initial = 'WORKSHOP') - tags = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Tags'}), - required = False, - ) + duration = forms.ChoiceField(choices=ws_duration, label = 'Duration (Hrs.)') + + tags = forms.ChoiceField(choices=MY_CHOICES) class Meta: model = Proposal @@ -142,11 +161,16 @@ class WorkshopForm(forms.ModelForm): ext = os.path.splitext(attachment.name)[1] valid_extensions = ['.pdf',] if not ext in valid_extensions: - raise forms.ValidationError(u'File not supported!') + raise forms.ValidationError(u'File not supported! Only .pdf file is accepted') if attachment.size > (5*1024*1024): raise forms.ValidationError('File size exceeds 5MB') return attachment + def clean_abstract(self): + about_me = self.cleaned_data['abstract'] + if len(about_me) < 300: + raise forms.ValidationError("Abstract me should contain min. 300 characteres") + class UserRegisterForm(UserCreationForm): class Meta: model = User diff --git a/website/models.py b/website/models.py index d254e18..71de521 100755 --- a/website/models.py +++ b/website/models.py @@ -17,7 +17,7 @@ class Proposal(models.Model): title = models.CharField(max_length=250) abstract = models.TextField(max_length=700) prerequisite = models.CharField(max_length=750) - duration = models.DurationField() + duration = models.CharField(max_length = 100) attachment = models.FileField(upload_to=get_document_dir) date_created = models.DateTimeField(auto_now_add=True) date_modified = models.DateTimeField(auto_now=True) diff --git a/website/static/css/main.css b/website/static/css/main.css index f12f6c3..02c0cfe 100644 --- a/website/static/css/main.css +++ b/website/static/css/main.css @@ -3653,7 +3653,7 @@ @media screen and (max-width: 1280px) { #main > .main { - padding: 4em 4em 2em 4em ; + padding: 4em 4em 0em 4em ; } #main > .main > .image.main:first-child { diff --git a/website/static/img/poster_thumbnail.png b/website/static/img/poster_thumbnail.png new file mode 100644 index 0000000..663fcf5 Binary files /dev/null and b/website/static/img/poster_thumbnail.png differ diff --git a/website/static/img/sd.png b/website/static/img/sd.png new file mode 100644 index 0000000..4003fd9 Binary files /dev/null and b/website/static/img/sd.png differ diff --git a/website/templates/base.html b/website/templates/base.html index 4deed0d..2787a96 100755 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -25,7 +25,7 @@

DECEMBER 10 & 11



Register - Submit Proposals + Submit {% endblock %} @@ -44,10 +44,10 @@
  • Speakers
  • Register
  • COC
  • -
  • Submit proposals
  • +
  • Submit
  • Schedule
  • Venue
  • -
  • Sponsors
  • +
  • Poster
  • Contact
  • @@ -75,7 +75,6 @@ -
    @@ -86,24 +85,29 @@ + - + + + + + + - - + - - +
    -

    Dr. Ajith Kumar

    +
    + +

    Dr. Ajith Kumar

         -
    -

    Mr. S. Anand

    +

    Mr. S. Anand

        
    Dr. B. P. Ajith Kumar, a scientist working with the IUAC. His main area of work is development of instrumentation for particle accelerators and associated experiments, including radio-frequency accelerating structures, control and data acquisition systems, digital and radio frequency electronics modules. He initiated the Phoenix / expEYES project. ExpEYES is currently the cheapest educational system to teach science. Dr. B. P. Ajith Kumar, a scientist working with the IUAC. His main area of work is development of instrumentation for particle accelerators and associated experiments, including radio-frequency accelerating structures, control and data acquisition systems, digital and radio frequency electronics modules. He initiated the Phoenix / expEYES project. ExpEYES is currently the cheapest educational system to teach science. Anand is the Chief Executive Officer at Gramener. He leads a team of data enthusiasts with skills in analysis, design, programming and statistics. He studied at IIT Madras, IIM Bangalore and LBS, and worked at IBM, Infosys, Lehman Brothers and BCG. He and his team explore insights from data and communicate these as visual stories. These visual analyses and dashboards are built on the Gramener Visualisation Server -- Gramener's flagship product.
    @@ -202,7 +206,79 @@

    We appreciate your participation in SciPy 2016. We want you to have an enjoyable and enriching experience in the conference. For this all the attendees are required to conform to the following Code of Conduct. Organisers will ensure that it is enforced throughout the event.

    + +
    +
    +
    +

    + + + + +
    +

    SciPy India is dedicated to providing a harassment-free conference experience for everyone, regardless of age, gender, sexual orientation, physical appearance, disability, race, religion or employment. We don't tolerate harassment of attendees in any form.

    + +

    All communication should be appropriate for a professional audience, including people from many different backgrounds.

    + +

  • Code for Speakers:
  • + +

    Sexual language or imagery is inappropriate for your talks or slides. Refrain from using sexist, racist or exclusionary language anywhere in your content.

    + +

  • Code for Participants:
  • + +

    Be kind and sensitive to the people around you and avoid any kind of offensive behavior. Sexist, racist or any other form of exclusionary or offensive jokes or excessive public swearing are not appropriate at any venue of SciPy India. Attendees violating these rules may be asked to leave the conference without a refund at the sole discretion of the conference organizers. Thank you for your consideration and help in making SciPy India a welcoming, friendly event for all of us.

    +
    + +

    +
    +
    +

    + + + + + +

    SciPy India is dedicated to providing a harassment-free conference experience for everyone, regardless of age, gender, sexual orientation, physical appearance, disability, race, religion or employment.

    + +

    Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, religion, sexual images in public spaces, deliberate intimidation, stalking, following, harassing photography or recording, sustained disruption of talks or other events, inappropriate physical contact, and unwelcome sexual attention. We have zero tolerance on harassment of conference participants in any form, including, but not limited to the activities mentioned here.

    + +

    Participants asked to stop any harassing behavior are expected to comply immediately.

    + +

    All communication should be appropriate for a professional audience, including people from many different backgrounds. Sexual language or imagery is inappropriate for all aspects of the conference, including talks. Remember that sexist, racist or any other form of exclusionary or offensive jokes or excessive public swearing are not appropriate at any venue of SciPy India.

    + +

    Do not insult or put down attendees or engage in any action that violates the open, welcoming and sharing spirit of the conference. Be kind and sensitive to the people around you when you are attending the conference, and avoid any kind of offensive or degrading behavior.

    + +

    If a participant engages in behavior that violates this code of conduct, the conference organizers may take any action they deem appropriate, including warning the offender or expulsion from the conference with no refund.

    + +

    Thank you for helping to make SciPy 2016 a welcoming, friendly event for all.

    + +

  • Contact Information:
  • + +

    If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of conference staff. Conference staff will be wearing "SciPy India: Organiser" badges.

    + +

    Conference staff will be happy to help participants contact venue security or local law enforcement, provide escorts, or otherwise assist those experiencing harassment to feel safe for the duration of the conference. We value your attendance.

    + +

  • License:
  • + +

    This Code of Conduct was forked from PSF Code of Conduct by Python Software Foundation which is under a Creative Commons Attribution 3.0 Unported License.

    + +

    SciPy India Conference Code of Conduct is licensed under a Creative Commons Attribution 3.0 Unported License.

    +
    +

    +
    + + +
    + + + +
    +
    @@ -217,8 +293,8 @@