Commit 3fd8a76b authored by Arno Töll's avatar Arno Töll
Browse files

Finish what paulproteus began: Convert social tags as well, put description...

Finish what paulproteus began: Convert social tags as well, put description before the list, swap technical with social tags
parent 59f2ef58
...@@ -197,10 +197,23 @@ allow_unsigned_uploads = 0 ...@@ -197,10 +197,23 @@ allow_unsigned_uploads = 0
<td>${ _('Type of packages you are interested in') }:</td> <td>${ _('Type of packages you are interested in') }:</td>
<td><br />${ h.html.tags.textarea('package_types', c.metrics.types, cols=82, rows=10) }</td> <td><br />${ h.html.tags.textarea('package_types', c.metrics.types, cols=82, rows=10) }</td>
</tr> </tr>
<% oneshot = "Technical choices within packages" %>
% for requirement in c.technical_tags:
<tr>
<td>Social requirements</td>
<td>
<ul>
<li><strong>-</strong> (first column) You are not accepting packages qualifying for that tag.</li>
<li><strong>0</strong> (middle column) You have no strong opinion on that tag.</li>
<li><strong>+</strong> (last column) You endorse usage of the implied meaning of the tag.</li>
<li>Please note, the personal pronouns in the long description address your sponsor. Please see ${ h.tags.link_to("the sponsoring page", h.url('sponsors')) }</li>
</ul>
</td>
</tr>
% for requirement in c.social_tags:
<tr> <tr>
<td>${ oneshot | n}<% oneshot = "&nbsp;" %></td> <td>&nbsp;</td>
<td> <td>
<dl> <dl>
<dt> <dt>
...@@ -217,18 +230,45 @@ allow_unsigned_uploads = 0 ...@@ -217,18 +230,45 @@ allow_unsigned_uploads = 0
</td> </td>
</tr> </tr>
% endfor % endfor
<tr>
<td>
${ _("Additional social notes") }
</td>
<td>
<br />${ h.html.tags.textarea('social_requirements', c.metrics.social_requirements, cols=82, rows=10) }
</td>
</tr>
<tr> <tr>
<td>&nbsp;</td> <td>Technical choices within packages</td>
<td> <td>
<ul> <ul>
<li><strong>undesirable</strong> (first column) You are not accepting packages qualifying for that tag.</li> <li><strong>-</strong> (first column) You are not accepting packages qualifying for that tag.</li>
<li><strong>undecided</strong> (middle column) You have no strong opinion on that tag.</li> <li><strong>0</strong> (middle column) You have no strong opinion on that tag.</li>
<li><strong>preferred</strong> (last column) You endorse usage of the implied meaning of the tag.</li> <li><strong>+</strong> (last column) You endorse usage of the implied meaning of the tag.</li>
<li>Please note, the personal pronouns in the long description address your sponsor. Please see ${ h.tags.link_to("the sponsoring page", h.url('sponsors')) }</li> <li>Please note, the personal pronouns in the long description address your sponsor. Please see ${ h.tags.link_to("the sponsoring page", h.url('sponsors')) }</li>
</ul> </ul>
</td> </td>
</tr> </tr>
% for requirement in c.technical_tags:
<tr>
<td>&nbsp;</td>
<td>
<dl>
<dt>
% for weight,label in [(-1, _("-")), \
(0, _("0")), \
(1, _("+")) ]:
${ h.html.tags.radio(requirement.tag, value=weight, label=label, checked=(c.metrics.get_tag_weight(requirement.tag) == weight)) }
% endfor
<span style="padding-left: 8px;">${ requirement.label }</span></dt>
<dd>"<em>${ requirement.long_description | n}</em>"</dd>
<dd>
</dd>
</dl>
</td>
</tr>
% endfor
<tr> <tr>
<td> <td>
${ _("Additional technical notes") } ${ _("Additional technical notes") }
...@@ -250,45 +290,6 @@ allow_unsigned_uploads = 0 ...@@ -250,45 +290,6 @@ allow_unsigned_uploads = 0
</td> </td>
</tr> </tr>
<% oneshot = "Social requirements" %>
% for requirement in c.social_tags:
<tr>
<td>${ oneshot | n}<% oneshot = "&nbsp;" %></td>
<td>
<dl>
<dt>${ requirement.label }</dt>
<dd>"<em>${ requirement.long_description | n}</em>"</dd>
<dd>
% for weight,label in [(-1, _("undesirable")), \
(0, _("undecided")), \
(1, _("preferred")) ]:
${ h.html.tags.radio(requirement.tag, value=weight, label=label, checked=(c.metrics.get_tag_weight(requirement.tag) == weight)) }
% endfor
</dd>
</dl>
</td>
</tr>
% endfor
<tr>
<td>&nbsp;</td>
<td>
<ul>
<li><strong>undesirable</strong> (first column) You are not accepting packages qualifying for that tag.</li>
<li><strong>undecided</strong> (middle column) You have no strong opinion on that tag.</li>
<li><strong>preferred</strong> (last column) You endorse usage of the implied meaning of the tag.</li>
<li>Please note, the personal pronouns in the long description address your sponsor. Please see ${ h.tags.link_to("the sponsoring page", h.url('sponsors')) }</li>
</ul>
</td>
</tr>
<tr>
<td>
${ _("Additional social notes") }
</td>
<td>
<br />${ h.html.tags.textarea('social_requirements', c.metrics.social_requirements, cols=82, rows=10) }
</td>
</tr>
<tr> <tr>
<td>${ h.html.tags.submit('commit', _('Submit')) }</td> <td>${ h.html.tags.submit('commit', _('Submit')) }</td>
</tr> </tr>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment