Skip to content

Commit

Permalink
[#1999] Update the helptexts for keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed May 19, 2016
1 parent 050e7d5 commit 9510897
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterField(
model_name='keyword',
name='label',
field=akvo.rsr.fields.ValidXMLCharField(help_text='Select keywords in case you are using an Akvo Page. Keywords linked to a project will determine if a project appears on the Akvo Page or not.', unique=True, max_length=30, verbose_name='label', db_index=True),
preserve_default=True,
),
migrations.AlterField(
model_name='sector',
name='sector_code',
Expand Down
6 changes: 5 additions & 1 deletion akvo/rsr/models/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ def logo_path(instance, file_name):


class Keyword(models.Model):
label = ValidXMLCharField(_(u'label'), max_length=30, unique=True, db_index=True)
label = ValidXMLCharField(
_(u'label'), max_length=30, unique=True, db_index=True,
help_text=_(u'Select keywords in case you are using an Akvo Page. Keywords linked to a '
u'project will determine if a project appears on the Akvo Page or not.')
)
logo = ImageField(
_('logo'), blank=True, upload_to=logo_path,
help_text=_(u'Add your keyword logo here. You can only add one logo. '
Expand Down
5 changes: 4 additions & 1 deletion akvo/templates/myrsr/project_editor/section_10.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
</div>
</div>
<div class="formBlock hidden">
<p class="help-block hidden" id="step-10-helptext">{% trans 'Fill in comments regarding the project. These are only for internal use and will not be displayed anywhere on the project page.' %}</p>
<p class="help-block hidden" id="step-10-helptext">
{% trans 'Fill in comments regarding the project. These are only for internal use and will not be displayed anywhere on the project page.' %}
{% trans 'Select keywords in case you are using an Akvo Page. Keywords linked to a project will determine if a project appears on the Akvo Page or not.' %}
</p>
<form role="form">
{% include textarea_input with obj=project field='notes' %}

Expand Down

0 comments on commit 9510897

Please sign in to comment.