-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
dfccf31
commit 705d293
Showing
7 changed files
with
134 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.0.3 on 2020-04-09 01:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0038_auto_20200407_0005'), | ||
('mdi', '0059_auto_20200405_0444'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='socialnetworks', | ||
field=models.ManyToManyField(blank=True, through='mdi.OrganizationSocialNetwork', to='accounts.SocialNetwork'), | ||
), | ||
migrations.AlterField( | ||
model_name='organizationsocialnetwork', | ||
name='identifier', | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='organizationsocialnetwork', | ||
name='socialnetwork', | ||
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='accounts.SocialNetwork'), | ||
), | ||
] |
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,8 @@ | ||
fieldset > label { | ||
line-height: 3rem; | ||
} | ||
|
||
select.multiple { | ||
height: 10rem; | ||
overflow-y: auto; | ||
} |
79 changes: 79 additions & 0 deletions
79
surveys/templates/surveys/ecosystem_2020/categories_challenges.html
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{% extends 'surveys/ecosystem_2020/base.html' %} | ||
{% load static %} | ||
{% load i18n %} | ||
{% load maps_extras %} | ||
{% block title %}{{ 'Categories & Challenges'|titlify }}{% endblock %} | ||
{% block content %} | ||
<div class="page-header"> | ||
<h1><span class="pc-ff--sans pc-fw--normal">2020 Ecosystem Survey </span><br/> Categories & Challenges</h1> | ||
</div> | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
{% if form.errors %} | ||
{{ form.errors }} | ||
{% endif %} | ||
{{ wizard.management_form }} | ||
{% include 'maps/profiles/back_and_steps.html' %} | ||
{% if wizard.form.forms %} | ||
{{ wizard.form.management_form }} | ||
{% for form in wizard.form.forms %} | ||
{{ form }} | ||
{% endfor %} | ||
{% else %} | ||
<fieldset> | ||
<legend><strong>Incorporation</strong></legend> | ||
<ul class="input-group"> | ||
<strong>{{ wizard.form.legal_status.label }}</strong> | ||
{% for checkbox in wizard.form.legal_status %} | ||
<li>{{ checkbox.tag }} | ||
<label for="{{ checkbox.id_for_label }}">{{ checkbox.choice_label }}</label> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</fieldset> | ||
<div class="spacer"></div> | ||
|
||
<fieldset> | ||
<legend><strong>Development stage and challenges</strong></legend> | ||
<ul class="input-group"> | ||
<strong>{{ wizard.form.stage.label }}</strong> | ||
{% for radio in wizard.form.stage %} | ||
<li>{{ radio.tag }} | ||
<label for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="spacer"></div> | ||
|
||
<strong>{{ wizard.form.challenges.label }}</strong> | ||
{{ wizard.form.challenges }} | ||
</fieldset> | ||
<div class="spacer"></div> | ||
|
||
<ul class="input-group"> | ||
<strong>{{ wizard.form.categories.label }}</strong> | ||
{% for checkbox in wizard.form.categories %} | ||
<li>{{ checkbox.tag }} | ||
<label for="{{ checkbox.id_for_label }}">{{ checkbox.choice_label }}</label> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="spacer"></div> | ||
<div class="spacer"></div> | ||
<ul class="input-group"> | ||
<strong>{{ wizard.form.sectors.label }}</strong> | ||
{% for checkbox in wizard.form.sectors %} | ||
<li>{{ checkbox.tag }} | ||
<label for="{{ checkbox.id_for_label }}">{{ checkbox.choice_label }}</label> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="spacer"></div> | ||
|
||
</fieldset> | ||
{% endif %} | ||
|
||
{% include 'maps/profiles/footer.html' %} | ||
</form> | ||
|
||
{% endblock %} |
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